| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
if ( ! defined( 'ABSPATH' ) ) { |
| 6 |
exit; |
| 7 |
} |
| 8 |
|
| 9 |
/** |
| 10 |
* Deprecated: Get the output for using the links to the translations in your code. |
| 11 |
* |
| 12 |
* @deprecated 2.10.1 Use msls_get_switcher() |
| 13 |
* |
| 14 |
* @param mixed $attr |
| 15 |
* |
| 16 |
* @return string |
| 17 |
*/ |
| 18 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound |
| 19 |
function get_the_msls( $attr ): string { |
| 20 |
_deprecated_function( __FUNCTION__, '2.10.1', 'msls_get_switcher' ); |
| 21 |
|
| 22 |
return msls_get_switcher( $attr ); |
| 23 |
} |
| 24 |
|
| 25 |
/** |
| 26 |
* Deprecated: Output the links to the translations in your template. |
| 27 |
* |
| 28 |
* @deprecated 2.10.1 Use msls_the_switcher() |
| 29 |
* |
| 30 |
* @param string[] $arr |
| 31 |
*/ |
| 32 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound |
| 33 |
function the_msls( array $arr = array() ): void { |
| 34 |
_deprecated_function( __FUNCTION__, '2.10.1', 'msls_the_switcher' ); |
| 35 |
msls_the_switcher( $arr ); |
| 36 |
} |
| 37 |
|
| 38 |
/** |
| 39 |
* Deprecated: Gets the URL of the country flag-icon for a specific locale. |
| 40 |
* |
| 41 |
* @deprecated 2.10.1 Use msls_get_flag_url() |
| 42 |
* |
| 43 |
* @param string $locale |
| 44 |
* |
| 45 |
* @return string |
| 46 |
*/ |
| 47 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound |
| 48 |
function get_msls_flag_url( string $locale ): string { |
| 49 |
_deprecated_function( __FUNCTION__, '2.10.1', 'msls_get_flag_url' ); |
| 50 |
|
| 51 |
return msls_get_flag_url( $locale ); |
| 52 |
} |
| 53 |
|
| 54 |
/** |
| 55 |
* Deprecated: Gets the description for a blog for a specific locale. |
| 56 |
* |
| 57 |
* @deprecated 2.10.1 Use msls_get_blog_description() |
| 58 |
* |
| 59 |
* @param string $locale |
| 60 |
* @param string $preset |
| 61 |
* |
| 62 |
* @return string |
| 63 |
*/ |
| 64 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound |
| 65 |
function get_msls_blog_description( string $locale, string $preset = '' ): string { |
| 66 |
_deprecated_function( __FUNCTION__, '2.10.1', 'msls_get_blog_description' ); |
| 67 |
|
| 68 |
return msls_get_blog_description( $locale, $preset ); |
| 69 |
} |
| 70 |
|
| 71 |
/** |
| 72 |
* Deprecated: Gets the permalink for a translation of the current post in a given language. |
| 73 |
* |
| 74 |
* @deprecated 2.10.1 Use msls_get_permalink() |
| 75 |
* |
| 76 |
* @param string $locale |
| 77 |
* @param string $preset |
| 78 |
* |
| 79 |
* @return string |
| 80 |
*/ |
| 81 |
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound |
| 82 |
function get_msls_permalink( string $locale, string $preset = '' ): string { |
| 83 |
_deprecated_function( __FUNCTION__, '2.10.1', 'msls_get_permalink' ); |
| 84 |
|
| 85 |
return msls_get_permalink( $locale, $preset ); |
| 86 |
} |
| 87 |
|