mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Docs: Add @since notes for theme features added or removed in get_theme_feature_list() after its introduction in WordPress 3.1.
See #50165. git-svn-id: https://develop.svn.wordpress.org/trunk@47794 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -934,8 +934,10 @@ final class WP_Theme implements ArrayAccess {
|
||||
if ( isset( $this->name_translated ) ) {
|
||||
return $this->name_translated;
|
||||
}
|
||||
|
||||
// phpcs:ignore WordPress.WP.I18n.LowLevelTranslationFunction,WordPress.WP.I18n.NonSingularStringLiteralText,WordPress.WP.I18n.NonSingularStringLiteralDomain
|
||||
$this->name_translated = translate( $value, $this->get( 'TextDomain' ) );
|
||||
|
||||
return $this->name_translated;
|
||||
case 'Tags':
|
||||
if ( empty( $value ) || ! function_exists( 'get_theme_feature_list' ) ) {
|
||||
@@ -970,6 +972,7 @@ final class WP_Theme implements ArrayAccess {
|
||||
);
|
||||
|
||||
$feature_list = get_theme_feature_list( false ); // No API.
|
||||
|
||||
foreach ( $feature_list as $tags ) {
|
||||
$tags_list += $tags;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user