@@ -40,8 +40,8 @@ public static function is_yoast_option_group_name( $group_name ) {
4040 * @return string $admin_title The modified or original admin title.
4141 */
4242 public static function add_yoast_admin_document_title_errors ( $ admin_title ) {
43- $ errors = get_settings_errors ();
44- $ error_count = 0 ;
43+ $ errors = get_settings_errors ();
44+ $ error_count = 0 ;
4545
4646 foreach ( $ errors as $ error ) {
4747 // For now, filter the admin title only in the Yoast SEO settings pages.
@@ -106,6 +106,11 @@ public static function set_error_descriptions( $descriptions = array() ) {
106106 esc_html__ ( 'Baidu verification codes can only contain letters, numbers, hyphens, and underscores. %s ' , 'wordpress-seo ' ),
107107 self ::get_dirty_value_message ( 'baiduverify ' )
108108 ),
109+ 'facebook_site ' => sprintf (
110+ /* translators: %s: additional message with the submitted invalid value */
111+ esc_html__ ( 'Please check the format of the Facebook Page URL you entered. %s ' , 'wordpress-seo ' ),
112+ self ::get_dirty_value_message ( 'facebook_site ' )
113+ ),
109114 'fbadminapp ' => sprintf (
110115 /* translators: %s: additional message with the submitted invalid value */
111116 esc_html__ ( 'The Facebook App ID you entered doesn \'t exist. %s ' , 'wordpress-seo ' ),
@@ -116,11 +121,31 @@ public static function set_error_descriptions( $descriptions = array() ) {
116121 esc_html__ ( 'Google verification codes can only contain letters, numbers, hyphens, and underscores. %s ' , 'wordpress-seo ' ),
117122 self ::get_dirty_value_message ( 'googleverify ' )
118123 ),
124+ 'instagram_url ' => sprintf (
125+ /* translators: %s: additional message with the submitted invalid value */
126+ esc_html__ ( 'Please check the format of the Instagram URL you entered. %s ' , 'wordpress-seo ' ),
127+ self ::get_dirty_value_message ( 'instagram_url ' )
128+ ),
129+ 'linkedin_url ' => sprintf (
130+ /* translators: %s: additional message with the submitted invalid value */
131+ esc_html__ ( 'Please check the format of the Linkedin URL you entered. %s ' , 'wordpress-seo ' ),
132+ self ::get_dirty_value_message ( 'linkedin_url ' )
133+ ),
119134 'msverify ' => sprintf (
120135 /* translators: %s: additional message with the submitted invalid value */
121136 esc_html__ ( 'Bing confirmation codes can only contain letters from A to F, numbers, hyphens, and underscores. %s ' , 'wordpress-seo ' ),
122137 self ::get_dirty_value_message ( 'msverify ' )
123138 ),
139+ 'myspace_url ' => sprintf (
140+ /* translators: %s: additional message with the submitted invalid value */
141+ esc_html__ ( 'Please check the format of the MySpace URL you entered. %s ' , 'wordpress-seo ' ),
142+ self ::get_dirty_value_message ( 'myspace_url ' )
143+ ),
144+ 'pinterest_url ' => sprintf (
145+ /* translators: %s: additional message with the submitted invalid value */
146+ esc_html__ ( 'Please check the format of the Pinterest URL you entered. %s ' , 'wordpress-seo ' ),
147+ self ::get_dirty_value_message ( 'pinterest_url ' )
148+ ),
124149 'pinterestverify ' => sprintf (
125150 /* translators: %s: additional message with the submitted invalid value */
126151 esc_html__ ( 'Pinterest confirmation codes can only contain letters from A to F, numbers, hyphens, and underscores. %s ' , 'wordpress-seo ' ),
@@ -131,11 +156,21 @@ public static function set_error_descriptions( $descriptions = array() ) {
131156 esc_html__ ( 'Twitter usernames can only contain letters, numbers, and underscores. %s ' , 'wordpress-seo ' ),
132157 self ::get_dirty_value_message ( 'twitter_site ' )
133158 ),
159+ 'wikipedia_url ' => sprintf (
160+ /* translators: %s: additional message with the submitted invalid value */
161+ esc_html__ ( 'Please check the format of the Wikipedia URL you entered. %s ' , 'wordpress-seo ' ),
162+ self ::get_dirty_value_message ( 'wikipedia_url ' )
163+ ),
134164 'yandexverify ' => sprintf (
135165 /* translators: %s: additional message with the submitted invalid value */
136166 esc_html__ ( 'Yandex confirmation codes can only contain letters from A to F, numbers, hyphens, and underscores. %s ' , 'wordpress-seo ' ),
137167 self ::get_dirty_value_message ( 'yandexverify ' )
138168 ),
169+ 'youtube_url ' => sprintf (
170+ /* translators: %s: additional message with the submitted invalid value */
171+ esc_html__ ( 'Please check the format of the Youtube URL you entered. %s ' , 'wordpress-seo ' ),
172+ self ::get_dirty_value_message ( 'youtube_url ' )
173+ ),
139174 );
140175
141176 $ descriptions = wp_parse_args ( $ descriptions , $ defaults );
0 commit comments