| @@ -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 ); |