rebase from live enviornment

This commit is contained in:
Rachit Bhargava
2024-01-09 22:14:20 -05:00
parent ff0b49a046
commit 3a22fcaa4a
15968 changed files with 2344674 additions and 45234 deletions

View File

@@ -5,12 +5,12 @@
* @package Schema Pro
*/
if ( isset( $_REQUEST['wp_schema_pro_admin_page_nonce'] ) && ! wp_verify_nonce( $_REQUEST['wp_schema_pro_admin_page_nonce'], 'wp_schema_pro_admin_page' ) ) {
if ( isset( $_REQUEST['wp_schema_pro_admin_page_nonce'] ) && ! wp_verify_nonce( sanitize_text_field( $_REQUEST['wp_schema_pro_admin_page_nonce'] ), 'wp_schema_pro_admin_page' ) ) {
return;
}
$setting_url = self::get_page_url( 'settings' );
$wpsp_advanced_settings = self::get_page_url( 'wpsp-advanced-settings' );
$current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
$current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : 'general';
?>
<div id="wp-schema-pro-setting-links">
<a href="<?php echo esc_url( $setting_url ); ?>" <?php echo ( 'general' === $current_section ) ? 'class="active"' : ''; ?> ><?php esc_html_e( 'General', 'wp-schema-pro' ); ?></a> |
@@ -127,7 +127,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
foreach ( $option_list as $key => $value ) {
if ( '-- None --' !== $value ) {
?>
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $settings['organization'], $key ); ?>><?php echo esc_attr( $value ); ?></option>
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( $settings['organization'], $key ); ?>><?php echo esc_html( $value ); ?></option>
<?php
}
}
@@ -151,7 +151,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
</tr>
<tr>
<th colspan="2">
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
@@ -252,7 +252,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
<table class="form-table">
<tr>
<th colspan="2">
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
@@ -315,7 +315,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
<td>
<?php
if ( empty( $contact_settings['contact-page-id'] ) && ! empty( $contact_settings['url'] ) ) {
$contact_settings['contact-page-id'] = url_to_postid( $contact_settings['url'] );
$contact_settings['contact-page-id'] = wpcom_vip_url_to_postid( $contact_settings['url'] );
}
?>
<select class = ' wp-select2 wpsp-setup-configuration-settings' name="wp-schema-pro-corporate-contact[contact-page-id]">
@@ -387,7 +387,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
<tr>
<th colspan="2">
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
@@ -514,7 +514,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
</tr>
<tr>
<th colspan="2" id ="">
<input type="submit" class="button-primary" value="<?php esc_html_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
<input type="submit" class="button-primary" value="<?php esc_attr_e( 'Save Changes', 'wp-schema-pro' ); ?>" />
</th>
</tr>
</table>
@@ -594,7 +594,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'genera
id="wpsp-regenerate-schema"
data-nonce="<?php echo esc_attr( wp_create_nonce( 'regenerate_schema' ) ); ?>"
class="button button-primary"
value="<?php esc_html_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
value="<?php esc_attr_e( 'Regenerate Now', 'wp-schema-pro' ); ?> ">
<span class="spinner" ></span>
</div>
</div>