PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
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/class-option-tabs.php +4 -1 18.428.5 View file →
@@ -41,9 +41,10 @@
41 41 */
42 42 public function __construct( $base, $active_tab = '' ) {
43 43 $this->base = sanitize_title( $base );
44 44
45 - $tab = filter_input( INPUT_GET, 'tab' );
45 + // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are not processing form information.
46 + $tab = isset( $_GET['tab'] ) && is_string( $_GET['tab'] ) ? sanitize_text_field( wp_unslash( $_GET['tab'] ) ) : '';
46 47 $this->active_tab = empty( $tab ) ? $active_tab : $tab;
47 48 }
48 49
49 50 /**
@@ -112,8 +113,10 @@
112 113 /**
113 114 * Display the tabs.
114 115 *
115 116 * @param Yoast_Form $yform Yoast Form needed in the views.
117 + *
118 + * @return void
116 119 */
117 120 public function display( Yoast_Form $yform ) {
118 121 $formatter = new WPSEO_Option_Tabs_Formatter();
119 122 $formatter->run( $this, $yform );