Submit
Path:
~
/
home
/
getwphos
/
public_html
/
cytogenx
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
File Content:
language-utils.php
<?php /** * WPSEO plugin file. * * @package WPSEO\Internals * @since 5.9.0 */ /** * Group of language utility methods for use by WPSEO. * All methods are static, this is just a sort of namespacing class wrapper. */ class WPSEO_Language_Utils { /** * Returns the language part of a given locale, defaults to english when the $locale is empty. * * @param string|null $locale The locale to get the language of. * * @return string The language part of the locale. */ public static function get_language( $locale = null ) { $language = 'en'; if ( empty( $locale ) || ! is_string( $locale ) ) { return $language; } $locale_parts = explode( '_', $locale ); if ( ! empty( $locale_parts[0] ) && ( strlen( $locale_parts[0] ) === 2 || strlen( $locale_parts[0] ) === 3 ) ) { $language = $locale_parts[0]; } return $language; } /** * Returns the full name for the sites' language. * * @return string The language name. */ public static function get_site_language_name() { require_once ABSPATH . 'wp-admin/includes/translation-install.php'; $translations = wp_get_available_translations(); $locale = get_locale(); $language = isset( $translations[ $locale ] ) ? $translations[ $locale ]['native_name'] : 'English (US)'; return $language; } /** * Returns the l10n array for the knowledge graph company info missing. * * @deprecated 20.3 * @codeCoverageIgnore * * @return array The l10n array. */ public static function get_knowledge_graph_company_info_missing_l10n() { _deprecated_function( __METHOD__, 'Yoast SEO 20.3' ); return [ 'URL' => esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/3r3' ) ), /* translators: 1: expands to a link opening tag; 2: expands to a link closing tag */ 'message' => esc_html__( 'A company name and logo need to be set for structured data to work properly. Since you haven’t set these yet, we are using the site name and logo as default values. %1$sLearn more about the importance of structured data.%2$s', 'wordpress-seo' ), ]; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
exceptions
---
0755
options
---
0755
sitemaps
---
0755
class-addon-manager.php
26694 bytes
0644
class-my-yoast-api-request.php
4890 bytes
0644
class-post-type.php
3918 bytes
0644
class-rewrite.php
6951 bytes
0644
class-upgrade-history.php
3126 bytes
0644
class-upgrade.php
55647 bytes
0644
class-wpseo-admin-bar-menu.php
27135 bytes
0644
class-wpseo-content-images.php
2716 bytes
0644
class-wpseo-custom-fields.php
1766 bytes
0644
class-wpseo-custom-taxonomies.php
1628 bytes
0644
class-wpseo-image-utils.php
15453 bytes
0644
class-wpseo-installation.php
1139 bytes
0644
class-wpseo-meta.php
37807 bytes
0644
class-wpseo-primary-term.php
1739 bytes
0644
class-wpseo-rank.php
7350 bytes
0644
class-wpseo-replace-vars.php
52681 bytes
0644
class-wpseo-replacement-variable.php
1375 bytes
0644
class-wpseo-shortlinker.php
1132 bytes
0644
class-wpseo-statistics.php
1443 bytes
0644
class-wpseo-utils.php
29390 bytes
0644
date-helper.php
1752 bytes
0644
index.php
38 bytes
0644
interface-wpseo-wordpress-ajax-integration.php
294 bytes
0644
interface-wpseo-wordpress-integration.php
348 bytes
0644
language-utils.php
2086 bytes
0644
wpseo-functions-deprecated.php
68 bytes
0644
wpseo-functions.php
9218 bytes
0644
wpseo-non-ajax-functions.php
1593 bytes
0644
N4ST4R_ID | Naxtarrr