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/class-option-tabs-formatter.php +6 -5 19.0 → trunk View file →
@@ -28,8 +28,10 @@
28 28 /**
29 29 * Outputs the option tabs.
30 30 *
31 31 * @param WPSEO_Option_Tabs $option_tabs Option Tabs to get tabs from.
32 + *
33 + * @return void
32 34 */
33 35 public function run( WPSEO_Option_Tabs $option_tabs ) {
34 36
35 37 echo '<h2 class="nav-tab-wrapper" id="wpseo-tabs">';
@@ -47,9 +49,9 @@
47 49 '<a class="nav-tab" id="%1$s" href="%2$s">%3$s</a>',
48 50 esc_attr( $tab->get_name() . '-tab' ),
49 51 esc_url( '#top#' . $tab->get_name() ),
50 52 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: we do this on purpose
51 - $label
53 + $label,
52 54 );
53 55 }
54 56 echo '</h2>';
55 57
@@ -65,12 +67,11 @@
65 67 * Allows to override the content that is display on the specific option tab.
66 68 *
67 69 * @internal For internal Yoast SEO use only.
68 70 *
69 - * @api string|null The content that should be displayed for this tab. Leave empty for default behaviour.
70 - *
71 - * @param WPSEO_Option_Tabs $option_tabs The registered option tabs.
72 - * @param WPSEO_Option_Tab $tab The tab that is being displayed.
71 + * @param string|null $tab_contents The content that should be displayed for this tab. Leave empty for default behaviour.
72 + * @param WPSEO_Option_Tabs $option_tabs The registered option tabs.
73 + * @param WPSEO_Option_Tab $tab The tab that is being displayed.
73 74 */
74 75 $option_tab_content = apply_filters( 'wpseo_option_tab-' . $tab_filter_name, null, $option_tabs, $tab );
75 76 if ( ! empty( $option_tab_content ) ) {
76 77 echo wp_kses_post( $option_tab_content );