mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Map old -width theme tags to new -layout tags for the purposes of translation in the admin.
see #21442. Built from https://develop.svn.wordpress.org/trunk@26725 git-svn-id: http://core.svn.wordpress.org/trunk@26614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b9bbf2e814
commit
9ecfa135d8
@ -7006,7 +7006,6 @@ body.folded .theme-overlay .theme-wrap {
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
margin: 30px 0 0 0;
|
margin: 30px 0 0 0;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
text-transform: capitalize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-overlay .theme-tags span {
|
.theme-overlay .theme-tags span {
|
||||||
|
2
wp-admin/css/wp-admin-rtl.min.css
vendored
2
wp-admin/css/wp-admin-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -7006,7 +7006,6 @@ body.folded .theme-overlay .theme-wrap {
|
|||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
margin: 30px 0 0 0;
|
margin: 30px 0 0 0;
|
||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
text-transform: capitalize;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-overlay .theme-tags span {
|
.theme-overlay .theme-tags span {
|
||||||
|
2
wp-admin/css/wp-admin.min.css
vendored
2
wp-admin/css/wp-admin.min.css
vendored
File diff suppressed because one or more lines are too long
@ -289,10 +289,7 @@ if ( ! is_multisite() && current_user_can('edit_themes') && $broken_themes = wp_
|
|||||||
<# } #>
|
<# } #>
|
||||||
|
|
||||||
<# if ( data.tags ) { #>
|
<# if ( data.tags ) { #>
|
||||||
<p class="theme-tags">
|
<p class="theme-tags"><span><?php _e( 'Tags:' ); ?></span> {{{ data.tags }}}</p>
|
||||||
<span><?php _e( 'Tags:' ); ?></span>
|
|
||||||
{{{ data.tags.replace( /-/g, ' ' ) }}}
|
|
||||||
</p>
|
|
||||||
<# } #>
|
<# } #>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,6 +46,14 @@ final class WP_Theme implements ArrayAccess {
|
|||||||
'twentyfourteen' => 'Twenty Fourteen',
|
'twentyfourteen' => 'Twenty Fourteen',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Renamed theme tags.
|
||||||
|
*/
|
||||||
|
private static $tag_map = array(
|
||||||
|
'fixed-width' => 'fixed-layout',
|
||||||
|
'flexible-width' => 'fluid-layout',
|
||||||
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Absolute path to the theme root, usually wp-content/themes
|
* Absolute path to the theme root, usually wp-content/themes
|
||||||
*
|
*
|
||||||
@ -706,8 +714,11 @@ final class WP_Theme implements ArrayAccess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
foreach ( $value as &$tag ) {
|
foreach ( $value as &$tag ) {
|
||||||
if ( isset( $tags_list[ $tag ] ) )
|
if ( isset( $tags_list[ $tag ] ) ) {
|
||||||
$tag = $tags_list[ $tag ];
|
$tag = $tags_list[ $tag ];
|
||||||
|
} elseif ( isset( self::$tag_map[ $tag ] ) ) {
|
||||||
|
$tag = $tags_list[ self::$tag_map[ $tag ] ];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $value;
|
return $value;
|
||||||
|
Loading…
Reference in New Issue
Block a user