Make WordPress Core

Changeset 31435 for branches/4.1


Ignore:
Timestamp:
02/12/2015 05:36:59 AM (9 years ago)
Author:
dd32
Message:

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.

Location:
branches/4.1
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1

    • Property svn:mergeinfo changed
      /trunkreverse-merged: 31054
  • branches/4.1/src/wp-admin/css/themes.css

    r31080 r31435  
    4040/* Position admin messages */
    4141.themes-php div.updated,
    42 .themes-php div.error,
    43 .themes-php div.notice {
     42.themes-php div.error {
    4443    margin: 0 0 20px 0;
    4544    clear: both;
  • branches/4.1/src/wp-includes/general-template.php

    r31433 r31435  
    31273127    return $settings;
    31283128}
     3129
     3130/**
     3131 * Temporary function to add a missing style rule to the themes page.
     3132 * This avoids the need to ship an entirely rebuilt wp-admin.css in partial builds.
     3133 *
     3134 * @since 4.1.1
     3135 * @ignore
     3136 */
     3137function _wp_add_themesphp_notice_styling() {
     3138    global $pagenow;
     3139    if ( 'themes.php' == $pagenow ) {
     3140        echo "<style type='text/css'>.themes-php div.notice { margin: 0 0 20px 0; clear: both; }</style>\n";
     3141    }
     3142}
     3143add_action( 'admin_head', '_wp_add_themesphp_notice_styling' );
Note: See TracChangeset for help on using the changeset viewer.