| @@ -13,9 +13,10 @@ | ||
| 13 | 13 | |
| 14 | 14 | /* translators: %1$s expands to Yoast SEO */ |
| 15 | 15 | $submit_button_value = sprintf( __( 'Export your %1$s settings', 'wordpress-seo' ), 'Yoast SEO' ); |
| 16 | 16 | |
| 17 | -if ( filter_input( INPUT_POST, 'do_export' ) ) { | |
| 17 | +// phpcs:ignore WordPress.Security.NonceVerification.Missing,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized -- Reason: The nonce will be verified in WPSEO_Export below, We are only strictly comparing with '1'. | |
| 18 | +if ( isset( $_POST['do_export'] ) && wp_unslash( $_POST['do_export'] ) === '1' ) { | |
| 18 | 19 | $export = new WPSEO_Export(); |
| 19 | 20 | $export->export(); |
| 20 | 21 | return; |
| 21 | 22 | } |
| @@ -22,9 +23,9 @@ | ||
| 22 | 23 | |
| 23 | 24 | $wpseo_export_phrase = sprintf( |
| 24 | 25 | /* translators: %1$s expands to Yoast SEO */ |
| 25 | 26 | __( 'Export your %1$s settings here, to copy them on another site.', 'wordpress-seo' ), |
| 26 | - 'Yoast SEO' | |
| 27 | + 'Yoast SEO', | |
| 27 | 28 | ); |
| 28 | 29 | ?> |
| 29 | 30 | |
| 30 | 31 | <p><?php echo esc_html( $wpseo_export_phrase ); ?></p> |