Submit
Path:
~
/
home
/
getwphos
/
public_html
/
brueggemann
/
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; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
exceptions
---
0755
options
---
0755
sitemaps
---
0755
class-addon-manager.php
27223 bytes
0644
class-my-yoast-api-request.php
5516 bytes
0644
class-post-type.php
3986 bytes
0644
class-rewrite.php
7761 bytes
0644
class-upgrade-history.php
3116 bytes
0644
class-upgrade.php
56620 bytes
0644
class-wpseo-admin-bar-menu.php
28973 bytes
0644
class-wpseo-content-images.php
2684 bytes
0644
class-wpseo-custom-fields.php
1767 bytes
0644
class-wpseo-custom-taxonomies.php
1629 bytes
0644
class-wpseo-image-utils.php
15453 bytes
0644
class-wpseo-installation.php
1201 bytes
0644
class-wpseo-meta.php
34989 bytes
0644
class-wpseo-primary-term.php
1739 bytes
0644
class-wpseo-rank.php
7548 bytes
0644
class-wpseo-replace-vars.php
52692 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
29172 bytes
0644
class-yoast-dynamic-rewrites.php
5361 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
1313 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