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 | inc/language-utils.php +0 -35 18.628.5 View file →
@@ -35,27 +35,8 @@
35 35 return $language;
36 36 }
37 37
38 38 /**
39 - * Returns the user locale for the language to be used in the admin.
40 - *
41 - * WordPress 4.7 introduced the ability for users to specify an Admin language
42 - * different from the language used on the front end. This checks if the feature
43 - * is available and returns the user's language, with a fallback to the site's language.
44 - * Can be removed when support for WordPress 4.6 will be dropped, in favor
45 - * of WordPress get_user_locale() that already fallbacks to the site's locale.
46 - *
47 - * @deprecated 15.6
48 - * @codeCoverageIgnore
49 - *
50 - * @return string The locale.
51 - */
52 - public static function get_user_locale() {
53 - _deprecated_function( __METHOD__, 'WPSEO 15.5', 'get_user_locale' );
54 - return get_user_locale();
55 - }
56 -
57 - /**
58 39 * Returns the full name for the sites' language.
59 40 *
60 41 * @return string The language name.
61 42 */
@@ -66,22 +47,6 @@
66 47 $locale = get_locale();
67 48 $language = isset( $translations[ $locale ] ) ? $translations[ $locale ]['native_name'] : 'English (US)';
68 49
69 50 return $language;
70 - }
71 -
72 - /**
73 - * Returns the l10n array for the knowledge graph company info missing.
74 - *
75 - * @return array The l10n array.
76 - */
77 - public static function get_knowledge_graph_company_info_missing_l10n() {
78 - return [
79 - 'URL' => esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/3r3' ) ),
80 - /* translators: 1: expands to a link opening tag; 2: expands to a link closing tag */
81 - 'message' => esc_html__(
82 - 'A company name and logo need to be set for structured data to work properly. %1$sLearn more about the importance of structured data.%2$s',
83 - 'wordpress-seo'
84 - ),
85 - ];
86 51 }
87 52 }