Make WordPress Core

Ticket #26399: 26399-2.diff

File 26399-2.diff, 2.0 KB (added by xavortm, 10 years ago)
  • wp-admin/css/common.css

    diff --git a/wp-admin/css/common.css b/wp-admin/css/common.css
    index c084b20..3323153 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;
    18081824}
    18091825
    18101826.metabox-holder.columns-1 .postbox-container .empty-container,
  • 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..fa2614e 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 panels 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(