Revert [31080] from the 4.1 branch and replace it with a small function in an already changed file.

By doing this, we avoid shipping 400KB of changed CSS for such a minor css addition.

See https://build.trac.wordpress.org/changeset/31061 for the full size of [31080] in build.
See #30895.

Built from https://develop.svn.wordpress.org/branches/4.1@31435


git-svn-id: http://core.svn.wordpress.org/branches/4.1@31416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2015-02-12 05:37:22 +00:00
parent f7eb6f17e3
commit 0c28c25442
5 changed files with 19 additions and 6 deletions

View File

@ -39,8 +39,7 @@
/* Position admin messages */
.themes-php div.updated,
.themes-php div.error,
.themes-php div.notice {
.themes-php div.error {
margin: 0 0 20px 0;
clear: both;
}

View File

@ -39,8 +39,7 @@
/* Position admin messages */
.themes-php div.updated,
.themes-php div.error,
.themes-php div.notice {
.themes-php div.error {
margin: 0 0 20px 0;
clear: both;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3126,3 +3126,18 @@ function wp_heartbeat_settings( $settings ) {
return $settings;
}
/**
* Temporary function to add a missing style rule to the themes page.
* This avoids the need to ship an entirely rebuilt wp-admin.css in partial builds.
*
* @since 4.1.1
* @ignore
*/
function _wp_add_themesphp_notice_styling() {
global $pagenow;
if ( 'themes.php' == $pagenow ) {
echo "<style type='text/css'>.themes-php div.notice { margin: 0 0 20px 0; clear: both; }</style>\n";
}
}
add_action( 'admin_head', '_wp_add_themesphp_notice_styling' );