PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/views/tabs/tool/wpseo-export.php +3 -2 18.5.1 → trunk View file →
@@ -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>