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 | src/presenters/meta-description-presenter.php +9 -10 18.7 → trunk View file →
@@ -28,16 +28,16 @@
28 28 return $output;
29 29 }
30 30
31 31 if ( \current_user_can( 'wpseo_manage_options' ) ) {
32 - return '<!-- ' .
33 - \sprintf(
34 - /* Translators: %1$s resolves to the SEO menu item, %2$s resolves to the Search Appearance submenu item. */
32 + return '<!-- '
33 + . \sprintf(
34 + /* translators: %1$s resolves to Yoast SEO, %2$s resolves to the Settings submenu item. */
35 35 \esc_html__( 'Admin only notice: this page does not show a meta description because it does not have one, either write it for this page specifically or go into the [%1$s - %2$s] menu and set up a template.', 'wordpress-seo' ),
36 - \esc_html__( 'SEO', 'wordpress-seo' ),
37 - \esc_html__( 'Search Appearance', 'wordpress-seo' )
38 - ) .
39 - ' -->';
36 + \esc_html__( 'Yoast SEO', 'wordpress-seo' ),
37 + \esc_html__( 'Settings', 'wordpress-seo' ),
38 + )
39 + . ' -->';
40 40 }
41 41
42 42 return '';
43 43 }
@@ -52,11 +52,10 @@
52 52
53 53 /**
54 54 * Filter: 'wpseo_metadesc' - Allow changing the Yoast SEO meta description sentence.
55 55 *
56 - * @api string $meta_description The description sentence.
57 - *
58 - * @param Indexable_Presentation $presentation The presentation of an indexable.
56 + * @param string $meta_description The description sentence.
57 + * @param Indexable_Presentation $presentation The presentation of an indexable.
59 58 */
60 59 $meta_description = \apply_filters( 'wpseo_metadesc', $meta_description, $this->presentation );
61 60 $meta_description = $this->helpers->string->strip_all_tags( \stripslashes( $meta_description ) );
62 61 return \trim( $meta_description );