diff --git a/wp-admin/css/common.css b/wp-admin/css/common.css
index c084b20..89fee73 100644
a
|
b
|
html.wp-toolbar { |
1805 | 1805 | .metabox-holder .postbox-container .empty-container { |
1806 | 1806 | border: 3px dashed #b4b9be; |
1807 | 1807 | 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; |
1808 | 1825 | } |
1809 | 1826 | |
1810 | 1827 | .metabox-holder.columns-1 .postbox-container .empty-container, |
diff --git a/wp-admin/css/dashboard.css b/wp-admin/css/dashboard.css
index 6f4f53b..7771fba 100644
a
|
b
|
a.rsswidget { |
1013 | 1013 | min-height: 0; |
1014 | 1014 | } |
1015 | 1015 | |
| 1016 | #dashboard-widgets #postbox-container-3 .empty-container:after, |
| 1017 | #dashboard-widgets #postbox-container-4 .empty-container:after { |
| 1018 | display: none; |
| 1019 | } |
| 1020 | |
1016 | 1021 | #wpbody #wpbody-content #dashboard-widgets.columns-1 .postbox-container { |
1017 | 1022 | width: 100%; |
1018 | 1023 | } |
… |
… |
a.rsswidget { |
1033 | 1038 | .columns-prefs .columns-prefs-4 { |
1034 | 1039 | display: none; |
1035 | 1040 | } |
| 1041 | |
| 1042 | .metabox-holder .postbox-container .empty-container:after { |
| 1043 | display: block; |
| 1044 | } |
1036 | 1045 | } |
1037 | 1046 | |
1038 | 1047 | /* three columns on the dash */ |
… |
… |
a.rsswidget { |
1055 | 1064 | height: 0; |
1056 | 1065 | min-height: 0; |
1057 | 1066 | } |
| 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 | } |
1058 | 1075 | } |
1059 | 1076 | |
1060 | 1077 | @media screen and (max-width: 870px) { |
diff --git a/wp-admin/js/postbox.js b/wp-admin/js/postbox.js
index 4fe7419..0096980 100644
a
|
b
|
var postboxes; |
177 | 177 | $( '#dashboard-widgets .meta-box-sortables:visible' ).each( function() { |
178 | 178 | var t = $(this); |
179 | 179 | |
180 | | if ( visible == 1 || t.children('.postbox:visible').length ) |
| 180 | if ( visible == 1 || t.children('.postbox:visible').length ) { |
181 | 181 | t.removeClass('empty-container'); |
182 | | else |
| 182 | } |
| 183 | else { |
183 | 184 | t.addClass('empty-container'); |
| 185 | t.attr('data-emptyString', postBoxL10n.postBoxEmptyString); |
| 186 | } |
184 | 187 | }); |
185 | 188 | |
186 | 189 | if ( side.length ) { |
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 ) { |
492 | 492 | $scripts->add( 'xfn', "/wp-admin/js/xfn$suffix.js", array('jquery'), false, 1 ); |
493 | 493 | |
494 | 494 | $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 | ) ); |
495 | 498 | |
496 | 499 | $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'suggest' ), false, 1 ); |
497 | 500 | did_action( 'init' ) && $scripts->localize( 'tags-box', 'tagsBoxL10n', array( |