Make WordPress Core

Ticket #26399: 26399.4.diff

File 26399.4.diff, 3.0 KB (added by xavortm, 9 years ago)
  • wp-admin/css/common.css

    diff --git a/wp-admin/css/common.css b/wp-admin/css/common.css
    index c084b20..89fee73 100644
    a b html.wp-toolbar { 
    18051805.metabox-holder .postbox-container .empty-container {
    18061806        border: 3px dashed #b4b9be;
    18071807        height: 250px;
     1808        position: relative;
     1809}
     1810
     1811.metabox-holder .postbox-container .empty-container:after {
     1812        content: attr(data-emptystring);
     1813        margin: auto;
     1814        position: absolute;
     1815        top: 0;
     1816        left: 0;
     1817        bottom: 0;
     1818        right: 0;
     1819        height: 1em;
     1820        width: 200px;
     1821        text-align: center;
     1822        color: #ccc;
     1823        font-size:18px;
     1824        display: none;
    18081825}
    18091826
    18101827.metabox-holder.columns-1 .postbox-container .empty-container,
  • wp-admin/css/dashboard.css

    diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css
    index 6f4f53b..7771fba 100644
    a b a.rsswidget { 
    10131013                min-height: 0;
    10141014        }
    10151015
     1016        #dashboard-widgets #postbox-container-3 .empty-container:after,
     1017        #dashboard-widgets #postbox-container-4 .empty-container:after {
     1018                display: none;
     1019        }
     1020
    10161021        #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container {
    10171022                width: 100%;
    10181023        }
    a.rsswidget { 
    10331038        .columns-prefs .columns-prefs-4 {
    10341039                display: none;
    10351040        }
     1041
     1042        .metabox-holder .postbox-container .empty-container:after {
     1043                display: block;
     1044        }
    10361045}
    10371046
    10381047/* three columns on the dash */
    a.rsswidget { 
    10551064                height: 0;
    10561065                min-height: 0;
    10571066        }
     1067
     1068        #dashboard-widgets #postbox-container-4 .empty-container:after {
     1069                display: none;
     1070        }
     1071
     1072        .metabox-holder .postbox-container .empty-container:after {
     1073                display: block;
     1074        }
    10581075}
    10591076
    10601077@media screen and (max-width: 870px) {
  • wp-admin/js/postbox.js

    diff --git a/wp-admin/js/postbox.js b/wp-admin/js/postbox.js
    index 4fe7419..0096980 100644
    a b var postboxes; 
    177177                        $( '#dashboard-widgets .meta-box-sortables:visible' ).each( function() {
    178178                                var t = $(this);
    179179
    180                                 if ( visible == 1 || t.children('.postbox:visible').length )
     180                                if ( visible == 1 || t.children('.postbox:visible').length ) {
    181181                                        t.removeClass('empty-container');
    182                                 else
     182                                }
     183                                else {
    183184                                        t.addClass('empty-container');
     185                                        t.attr('data-emptyString', postBoxL10n.postBoxEmptyString);
     186                                }
    184187                        });
    185188
    186189                        if ( side.length ) {
  • wp-includes/script-loader.php

    diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
    index 72a7575..9ad31da 100644
    a b function wp_default_scripts( &$scripts ) { 
    492492                $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array('jquery'), false, 1 );
    493493
    494494                $scripts->add( 'postbox', "/wp-admin/js/postbox$suffix.js", array('jquery-ui-sortable'), false, 1 );
     495                did_action( 'init' ) && $scripts->localize( 'postbox', 'postBoxL10n', array(
     496                        'postBoxEmptyString' => __( 'Drag boxes here' ),
     497                ) );
    495498
    496499                $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'suggest' ), false, 1 );
    497500                did_action( 'init' ) && $scripts->localize( 'tags-box', 'tagsBoxL10n', array(