rebase from live enviornment
This commit is contained in:
@@ -18,10 +18,10 @@ foreach ( $entries as $entry_page => $entry ) {
|
||||
$select_box .= "</select>\n";
|
||||
|
||||
$wpsp_advanced_settings = self::get_page_url( 'wpsp-advanced-settings' );
|
||||
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;
|
||||
}
|
||||
$current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
|
||||
$current_section = isset( $_GET['section'] ) ? sanitize_text_field( $_GET['section'] ) : 'general';
|
||||
?>
|
||||
<div class="wrap bsf-aiosrs-pro clear">
|
||||
<div id="poststuff">
|
||||
@@ -57,8 +57,8 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
|
||||
</th>
|
||||
<td>
|
||||
<select id="aiosrs-pro-settings-quick-test" name="aiosrs-pro-settings[quick-test]" >
|
||||
<option <?php selected( 1, $settings['quick-test'] ); ?> value="1"><?php esc_attr_e( 'Yes', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( 'disabled', $settings['quick-test'] ); ?> value="disabled"><?php esc_attr_e( 'No', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( 1, $settings['quick-test'] ); ?> value="1"><?php esc_html_e( 'Yes', 'wp-schema-pro' ); ?></option>
|
||||
<option <?php selected( 'disabled', $settings['quick-test'] ); ?> value="disabled"><?php esc_html_e( 'No', 'wp-schema-pro' ); ?></option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -206,7 +206,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
|
||||
<?php } ?>
|
||||
<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>
|
||||
@@ -276,7 +276,7 @@ $current_section = isset( $_GET['section'] ) ? $_GET['section'] : 'general';
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user