mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-01 10:59:33 +00:00
Theme Editor: Fix styling of child theme notice.
Props westonruter, melchoyce, ndiego. See #24048. Fixes #42491 for 4.9. Built from https://develop.svn.wordpress.org/branches/4.9@42156 git-svn-id: http://core.svn.wordpress.org/branches/4.9@41987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6cc5d01d17
commit
1b39843b11
@ -3240,17 +3240,21 @@ img {
|
|||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#templateside li a,
|
#templateside li:not(.howto) a,
|
||||||
.theme-editor-php .highlight {
|
.theme-editor-php .highlight {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 3px 12px 3px 0;
|
padding: 3px 12px 3px 0;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#templateside li > a:first-of-type {
|
#templateside li:not(.howto) > a:first-of-type {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#templateside li.howto {
|
||||||
|
padding: 6px 12px 12px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.theme-editor-php .highlight {
|
.theme-editor-php .highlight {
|
||||||
margin: -3px -12px -3px 3px;
|
margin: -3px -12px -3px 3px;
|
||||||
}
|
}
|
||||||
@ -3775,10 +3779,13 @@ img {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#templateside li a {
|
#templateside li:not(.howto) a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
#templateside li.howto {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
#templateside .highlight {
|
#templateside .highlight {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
4
wp-admin/css/common-rtl.min.css
vendored
4
wp-admin/css/common-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -3240,17 +3240,21 @@ img {
|
|||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#templateside li a,
|
#templateside li:not(.howto) a,
|
||||||
.theme-editor-php .highlight {
|
.theme-editor-php .highlight {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 3px 0 3px 12px;
|
padding: 3px 0 3px 12px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#templateside li > a:first-of-type {
|
#templateside li:not(.howto) > a:first-of-type {
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#templateside li.howto {
|
||||||
|
padding: 6px 12px 12px 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.theme-editor-php .highlight {
|
.theme-editor-php .highlight {
|
||||||
margin: -3px 3px -3px -12px;
|
margin: -3px 3px -3px -12px;
|
||||||
}
|
}
|
||||||
@ -3775,10 +3779,13 @@ img {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#templateside li a {
|
#templateside li:not(.howto) a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
#templateside li.howto {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
#templateside .highlight {
|
#templateside .highlight {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
4
wp-admin/css/common.min.css
vendored
4
wp-admin/css/common.min.css
vendored
File diff suppressed because one or more lines are too long
@ -229,20 +229,20 @@ if ( $theme->errors() )
|
|||||||
?>
|
?>
|
||||||
<div id="templateside">
|
<div id="templateside">
|
||||||
<h2 id="theme-files-label"><?php _e( 'Theme Files' ); ?></h2>
|
<h2 id="theme-files-label"><?php _e( 'Theme Files' ); ?></h2>
|
||||||
|
<ul role="tree" aria-labelledby="theme-files-label">
|
||||||
|
<?php if ( ( $has_templates || $theme->parent() ) && $theme->parent() ) : ?>
|
||||||
|
<li class="howto">
|
||||||
<?php
|
<?php
|
||||||
if ( $has_templates || $theme->parent() ) :
|
|
||||||
if ( $theme->parent() ) {
|
|
||||||
/* translators: %s: link to edit parent theme */
|
/* translators: %s: link to edit parent theme */
|
||||||
echo '<p class="howto">' . sprintf( __( 'This child theme inherits templates from a parent theme, %s.' ),
|
echo sprintf( __( 'This child theme inherits templates from a parent theme, %s.' ),
|
||||||
sprintf( '<a href="%s">%s</a>',
|
sprintf( '<a href="%s">%s</a>',
|
||||||
self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ),
|
self_admin_url( 'theme-editor.php?theme=' . urlencode( $theme->get_template() ) ),
|
||||||
$theme->parent()->display( 'Name' )
|
$theme->parent()->display( 'Name' )
|
||||||
)
|
)
|
||||||
) . "</p>\n";
|
);
|
||||||
}
|
|
||||||
endif;
|
|
||||||
?>
|
?>
|
||||||
<ul role="tree" aria-labelledby="theme-files-label">
|
</li>
|
||||||
|
<?php endif; ?>
|
||||||
<li role="treeitem" tabindex="-1" aria-expanded="true" aria-level="1" aria-posinset="1" aria-setsize="1">
|
<li role="treeitem" tabindex="-1" aria-expanded="true" aria-level="1" aria-posinset="1" aria-setsize="1">
|
||||||
<ul role="group">
|
<ul role="group">
|
||||||
<?php wp_print_theme_file_tree( wp_make_theme_file_tree( $allowed_files ) ); ?>
|
<?php wp_print_theme_file_tree( wp_make_theme_file_tree( $allowed_files ) ); ?>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-RC2-42154';
|
$wp_version = '4.9-RC2-42156';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user