Ticket #46964: 46964.3.diff
File 46964.3.diff, 17.4 KB (added by , 5 years ago) |
---|
-
src/js/_enqueues/admin/postbox.js
363 363 if ( side.length ) { 364 364 if ( side.children('.postbox:visible').length ) 365 365 side.removeClass('empty-container'); 366 else if ( $(' #postbox-container-1').css('width') == '280px' )366 else if ( $('.postbox-container-1').css('width') == '280px' ) 367 367 side.addClass('empty-container'); 368 368 } 369 369 }, -
src/js/_enqueues/wp/editor/dfw.js
31 31 $menuBar = $(), 32 32 $statusBar = $(), 33 33 $sideSortables = $( '#side-sortables' ), 34 $postboxContainer = $( ' #postbox-container-1' ),34 $postboxContainer = $( '.postbox-container-1' ), 35 35 $postBody = $('#post-body'), 36 36 fullscreen = window.wp.editor && window.wp.editor.fullscreen, 37 37 mceEditor, -
src/wp-admin/css/common.css
2009 2009 } 2010 2010 2011 2011 .metabox-holder.columns-1 .postbox-container .empty-container, 2012 .columns-2 #postbox-container-3 .empty-container, 2013 .columns-2 #postbox-container-4 .empty-container, 2014 .columns-3 #postbox-container-4 .empty-container { 2012 .columns-2 .postbox-container-3 .empty-container, 2013 .columns-2 .postbox-container-4 .empty-container, 2014 .columns-3 .postbox-container-4 .empty-container, 2015 .columns-2 #postbox-container-3 .empty-container, /* Back-compat for pre 5.4 */ 2016 .columns-2 #postbox-container-4 .empty-container, /* Back-compat for pre 5.4 */ 2017 .columns-3 #postbox-container-4 .empty-container { /* Back-compat for pre 5.4 */ 2015 2018 border: 0 none; 2016 2019 height: 0; 2017 2020 min-height: 0; … … 2023 2026 float: left; 2024 2027 } 2025 2028 2026 #post-body.columns-2 #postbox-container-1 { 2029 #post-body.columns-2 .postbox-container-1, 2030 #post-body.columns-2 #postbox-container-1 { /* Back-compat for pre 5.4 */ 2027 2031 float: right; 2028 2032 margin-right: -300px; 2029 2033 width: 280px; -
src/wp-admin/css/dashboard.css
7 7 } 8 8 9 9 #wpbody-content #dashboard-widgets.columns-2 .postbox-container-2, 10 #wpbody-content #dashboard-widgets.columns-2 #postbox-container-3, 11 #wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { 10 #wpbody-content #dashboard-widgets.columns-2 .postbox-container-3, 11 #wpbody-content #dashboard-widgets.columns-2 .postbox-container-4, 12 #wpbody-content #dashboard-widgets.columns-2 #postbox-container-2, /* Back-compat for pre 5.4 */ 13 #wpbody-content #dashboard-widgets.columns-2 #postbox-container-3, /* Back-compat for pre 5.4 */ 14 #wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 { /* Back-compat for pre 5.4 */ 12 15 float: right; 13 16 width: 50.5%; 14 17 } … … 17 20 width: 33.5%; 18 21 } 19 22 20 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-1 { 23 #wpbody-content #dashboard-widgets.columns-3 .postbox-container-1, 24 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-1 { /* Back-compat for pre 5.4 */ 21 25 width: 33%; 22 26 } 23 27 24 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-3, 25 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-4 { 28 #wpbody-content #dashboard-widgets.columns-3 .postbox-container-3, 29 #wpbody-content #dashboard-widgets.columns-3 .postbox-container-4, 30 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-3, /* Back-compat for pre 5.4 */ 31 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-4 { /* Back-compat for pre 5.4 */ 26 32 float: right; 27 33 } 28 34 … … 34 40 width: 25%; 35 41 } 36 42 37 #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { 43 #dashboard-widgets-wrap .columns-3 .postbox-container-4 .empty-container, 44 #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container { /* Back-compat for pre 5.4 */ 38 45 border: none !important; 39 46 } 40 47 … … 43 50 } 44 51 45 52 .ie8 #wpbody-content #dashboard-widgets .postbox-container-2, 46 .ie8 #wpbody-content #dashboard-widgets #postbox-container-3, 47 .ie8 #wpbody-content #dashboard-widgets #postbox-container-4 { 53 .ie8 #wpbody-content #dashboard-widgets .postbox-container-3, 54 .ie8 #wpbody-content #dashboard-widgets .postbox-container-4, 55 .ie8 #wpbody-content #dashboard-widgets #postbox-container-2, /* Back-compat for pre 5.4 */ 56 .ie8 #wpbody-content #dashboard-widgets #postbox-container-3, /* Back-compat for pre 5.4 */ 57 .ie8 #wpbody-content #dashboard-widgets #postbox-container-4 { /* Back-compat for pre 5.4 */ 48 58 float: right; 49 59 width: 50.5%; 50 60 } 51 61 52 .ie8 #dashboard-widgets #postbox-container-3 .empty-container, 53 .ie8 #dashboard-widgets #postbox-container-4 .empty-container { 62 .ie8 #dashboard-widgets .postbox-container-3 .empty-container, 63 .ie8 #dashboard-widgets .postbox-container-4 .empty-container, 64 .ie8 #dashboard-widgets #postbox-container-3 .empty-container, /* Back-compat for pre 5.4 */ 65 .ie8 #dashboard-widgets #postbox-container-4 .empty-container { /* Back-compat for pre 5.4 */ 54 66 border: 0 none; 55 67 height: 0; 56 68 min-height: 0; … … 1113 1125 } 1114 1126 1115 1127 #wpbody-content #dashboard-widgets .postbox-container-2, 1116 #wpbody-content #dashboard-widgets #postbox-container-3, 1117 #wpbody-content #dashboard-widgets #postbox-container-4 { 1128 #wpbody-content #dashboard-widgets .postbox-container-3, 1129 #wpbody-content #dashboard-widgets .postbox-container-4, 1130 #wpbody-content #dashboard-widgets #postbox-container-2, /* Back-compat for pre 5.4 */ 1131 #wpbody-content #dashboard-widgets #postbox-container-3, /* Back-compat for pre 5.4 */ 1132 #wpbody-content #dashboard-widgets #postbox-container-4 { /* Back-compat for pre 5.4 */ 1118 1133 float: right; 1119 1134 width: 50.5%; 1120 1135 } 1121 1136 1122 #dashboard-widgets #postbox-container-3 .empty-container, 1123 #dashboard-widgets #postbox-container-4 .empty-container { 1137 #dashboard-widgets .postbox-container-3 .empty-container, 1138 #dashboard-widgets .postbox-container-4 .empty-container, 1139 #dashboard-widgets #postbox-container-3 .empty-container, /* Back-compat for pre 5.4 */ 1140 #dashboard-widgets #postbox-container-4 .empty-container { /* Back-compat for pre 5.4 */ 1124 1141 border: 0 none; 1125 1142 height: 0; 1126 1143 min-height: 0; 1127 1144 } 1128 1145 1129 #dashboard-widgets #postbox-container-3 .empty-container:after, 1130 #dashboard-widgets #postbox-container-4 .empty-container:after { 1146 #dashboard-widgets .postbox-container-3 .empty-container:after, 1147 #dashboard-widgets .postbox-container-4 .empty-container:after, 1148 #dashboard-widgets #postbox-container-3 .empty-container:after, /* Back-compat for pre 5.4 */ 1149 #dashboard-widgets #postbox-container-4 .empty-container:after { /* Back-compat for pre 5.4 */ 1131 1150 display: none; 1132 1151 } 1133 1152 … … 1159 1178 1160 1179 /* three columns on the dash */ 1161 1180 @media only screen and (min-width: 1500px) and (max-width: 1800px) { 1162 #wpbody-content #dashboard-widgets .postbox-container {1181 #wpbody-content #dashboard-widgets .postbox-container { 1163 1182 width: 33.5%; 1164 1183 } 1165 1184 1166 #wpbody-content #dashboard-widgets #postbox-container-1 { 1185 #wpbody-content #dashboard-widgets .postbox-container-1, 1186 #wpbody-content #dashboard-widgets #postbox-container-1 { /* Back-compat for pre 5.4 */ 1167 1187 width: 33%; 1168 1188 } 1169 1189 1170 #wpbody-content #dashboard-widgets #postbox-container-3, 1171 #wpbody-content #dashboard-widgets #postbox-container-4 { 1190 #wpbody-content #dashboard-widgets .postbox-container-3, 1191 #wpbody-content #dashboard-widgets .postbox-container-4, 1192 #wpbody-content #dashboard-widgets #postbox-container-3, /* Back-compat for pre 5.4 */ 1193 #wpbody-content #dashboard-widgets #postbox-container-4 { /* Back-compat for pre 5.4 */ 1172 1194 float: right; 1173 1195 } 1174 1196 1175 #dashboard-widgets #postbox-container-4 .empty-container { 1197 #dashboard-widgets .postbox-container-4 .empty-container, 1198 #dashboard-widgets #postbox-container-4 .empty-container { /* Back-compat for pre 5.4 */ 1176 1199 border: 0 none; 1177 1200 height: 0; 1178 1201 min-height: 0; 1179 1202 } 1180 1203 1181 #dashboard-widgets #postbox-container-4 .empty-container:after { 1204 #dashboard-widgets .postbox-container-4 .empty-container:after, 1205 #dashboard-widgets #postbox-container-4 .empty-container:after { /* Back-compat for pre 5.4 */ 1182 1206 display: none; 1183 1207 } 1184 1208 -
src/wp-admin/css/edit.css
1 .poststuff { 1 .poststuff, 2 #poststuff { /* Back-compat for pre 5.4 */ 2 3 padding-top: 10px; 3 4 min-width: 763px; 4 5 } 5 6 6 .poststuff #post-body { 7 .poststuff #post-body, 8 #poststuff #post-body { /* Back-compat for pre 5.4 */ 7 9 padding: 0; 8 10 } 9 11 10 .poststuff .postbox-container { 12 .poststuff .postbox-container, 13 #poststuff .postbox-container { /* Back-compat for pre 5.4 */ 11 14 width: 100%; 12 15 } 13 16 14 .poststuff #post-body.columns-2 { 17 .poststuff #post-body.columns-2, 18 #poststuff #post-body.columns-2 { /* Back-compat for pre 5.4 */ 15 19 margin-right: 300px; 16 20 } 17 21 … … 51 55 margin: 0; 52 56 } 53 57 54 .poststuff #titlewrap { 58 .poststuff #titlewrap, 59 #poststuff #titlewrap { /* Back-compat for pre 5.4 */ 55 60 border: 0; 56 61 padding: 0; 57 62 } … … 414 419 padding-top: 20px; 415 420 } 416 421 417 .poststuff #post-body.columns-2 #side-sortables { 422 .poststuff #post-body.columns-2 #side-sortables, 423 #poststuff #post-body.columns-2 #side-sortables { /* Back-compat for pre 5.4 */ 418 424 width: 280px; 419 425 } 420 426 … … 598 604 599 605 .poststuff h3.hndle, /* Back-compat for pre-4.4 */ 600 606 .poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ 601 .poststuff h2 { 607 .poststuff h2, 608 #poststuff h3.hndle, /* Back-compat for pre-5.4 */ 609 #poststuff .stuffbox > h3, /* Back-compat for pre-5.4 */ 610 #poststuff h2 { 602 611 font-size: 14px; 603 612 padding: 8px 12px; 604 613 margin: 0; 605 614 line-height: 1.4; 606 615 } 607 616 608 .poststuff .stuffbox h2 { 617 .poststuff .stuffbox h2, 618 #poststuff .stuffbox h2 { /* Back-compat for pre-5.4 */ 609 619 padding: 8px 10px; 610 620 } 611 621 612 .poststuff .inside { 622 .poststuff .inside, 623 #poststuff .inside { /* Back-compat for pre-5.4 */ 613 624 margin: 6px 0 0 0; 614 625 } 615 626 616 .poststuff .stuffbox .inside { 627 .poststuff .stuffbox .inside, 628 #poststuff .stuffbox .inside { /* Back-compat for pre-5.4 */ 617 629 margin: 0; 618 630 } 619 631 620 632 .poststuff .inside #parent_id, 621 .poststuff .inside #page_template { 633 .poststuff .inside #page_template, 634 #poststuff .inside #parent_id, /* Back-compat for pre-5.4 */ 635 #poststuff .inside #page_template { /* Back-compat for pre-5.4 */ 622 636 max-width: 100%; 623 637 } 624 638 625 639 .ie8 .poststuff .inside #parent_id, 626 .ie8 .poststuff .inside #page_template { 640 .ie8 .poststuff .inside #page_template, 641 .ie8 #poststuff .inside #parent_id, /* Back-compat for pre-5.4 */ 642 .ie8 #poststuff .inside #page_template { /* Back-compat for pre-5.4 */ 627 643 width: 250px; 628 644 } 629 645 … … 642 658 } 643 659 644 660 #linksubmitdiv .inside, /* Old Link Manager back-compat. */ 645 .poststuff #submitdiv .inside { 661 .poststuff #submitdiv .inside, 662 #poststuff #submitdiv .inside { /* Back-compat for pre-5.4 */ 646 663 margin: 0; 647 664 padding: 0; 648 665 } … … 1090 1107 /*------------------------------------------------------------------------------ 1091 1108 13.0 - Tags 1092 1109 ------------------------------------------------------------------------------*/ 1093 1110 #poststuff .tagsdiv .ajaxtag, /* Back-compat for pre 5.4 */ 1094 1111 .poststuff .tagsdiv .ajaxtag { 1095 1112 margin-top: 1em; 1096 1113 } 1097 1114 1098 .poststuff .tagsdiv .howto { 1115 #poststuff .tagsdiv .howto, /* Back-compat for pre 5.4 */ 1116 .poststuff .tagsdiv .howto { 1099 1117 margin: 1em 0 6px 0; 1100 1118 } 1101 1119 … … 1140 1158 margin: 2px 0 12px; 1141 1159 } 1142 1160 1161 #poststuff .inside .the-tagcloud, /* Back-compat for pre 5.4 */ 1143 1162 .poststuff .inside .the-tagcloud { 1144 1163 margin: 5px 0 10px; 1145 1164 padding: 8px; … … 1412 1431 1413 1432 /* one column on the post write/edit screen */ 1414 1433 @media only screen and (max-width: 850px) { 1434 #poststuff, /* Back-compat for pre 5.4 */ 1415 1435 .poststuff { 1416 1436 min-width: 0; 1417 1437 } 1418 1438 1439 #wpbody-content #poststuff #post-body, /* Back-compat for pre 5.4 */ 1419 1440 #wpbody-content .poststuff #post-body { 1420 1441 margin: 0; 1421 1442 } 1422 1443 1423 #wpbody-content #post-body.columns-2 #postbox-container-1 { 1444 #wpbody-content #post-body.columns-2 #postbox-container-1, /* Back-compat for pre 5.4 */ 1445 #wpbody-content #post-body.columns-2 .postbox-container-1 { 1424 1446 margin-right: 0; 1425 1447 width: 100%; 1426 1448 } 1427 1449 1428 .poststuff #postbox-container-1 .empty-container, 1429 .poststuff #postbox-container-1 #side-sortables:empty { 1450 .poststuff #postbox-container-1 .empty-container, /* Back-compat for pre 5.4 */ 1451 .poststuff #postbox-container-1 #side-sortables:empty, /* Back-compat for pre 5.4 */ 1452 .poststuff .postbox-container-1 .empty-container, 1453 .poststuff .postbox-container-1 #side-sortables:empty { 1430 1454 border: 0 none; 1431 1455 height: 0; 1432 1456 min-height: 0; 1433 1457 } 1434 1458 1459 #poststuff #post-body.columns-2 #side-sortables, /* Back-compat for pre 5.4 */ 1435 1460 .poststuff #post-body.columns-2 #side-sortables { 1436 1461 min-height: 0; 1437 1462 width: auto; … … 1461 1486 padding: 0 2px 4px 0; 1462 1487 } 1463 1488 1489 #poststuff h2, /* Back-compat for pre 5.4 */ 1464 1490 .poststuff h3.hndle, /* Back-compat for pre-4.4 */ 1465 1491 .poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */ 1466 1492 .poststuff h2 { -
src/wp-admin/css/ie.css
13 13 width: 49.5%; 14 14 } 15 15 16 #wpbody-content #dashboard-widgets #postbox-container-2, /* Back-compat for pre 5.4 */ 17 #wpbody-content #dashboard-widgets #postbox-container-3, /* Back-compat for pre 5.4 */ 18 #wpbody-content #dashboard-widgets #postbox-container-4, /* Back-compat for pre 5.4 */ 16 19 #wpbody-content #dashboard-widgets .postbox-container-2, 17 #wpbody-content #dashboard-widgets #postbox-container-3,18 #wpbody-content #dashboard-widgets #postbox-container-4{20 #wpbody-content #dashboard-widgets .postbox-container-3, 21 #wpbody-content #dashboard-widgets .postbox-container-4 { 19 22 float: right; 20 23 width: 50.5%; 21 24 } 22 25 23 #dashboard-widgets #postbox-container-3 .empty-container, 24 #dashboard-widgets #postbox-container-4 .empty-container { 26 #dashboard-widgets #postbox-container-3 .empty-container, /* Back-compat for pre 5.4 */ 27 #dashboard-widgets #postbox-container-4 .empty-container, /* Back-compat for pre 5.4 */ 28 #dashboard-widgets .postbox-container-3 .empty-container, 29 #dashboard-widgets .postbox-container-4 .empty-container { 25 30 border: 0 none; 26 31 height: 0; 27 32 min-height: 0; … … 38 43 width: 97%; 39 44 } 40 45 41 #post-body.columns-2 #postbox-container-1 { 46 #post-body.columns-2 #postbox-container-1, /* Back-compat for pre 5.4 */ 47 #post-body.columns-2 .postbox-container-1 { 42 48 padding-left: 19px; 43 49 } 44 50 -
src/wp-admin/css/media.css
1033 1033 display: block; 1034 1034 } 1035 1035 1036 #poststuff .imgedit-group-top h2, /* Back-compat for pre 5.3 */ 1036 1037 .poststuff .imgedit-group-top h2 { 1037 1038 display: inline-block; 1038 1039 margin: 0; … … 1041 1042 line-height: 1.4; 1042 1043 } 1043 1044 1045 #poststuff .imgedit-group-top .button-link, /* Back-compat for pre 5.3 */ 1044 1046 .poststuff .imgedit-group-top .button-link { 1045 1047 text-decoration: none; 1046 1048 color: #23282d; -
src/wp-admin/edit-form-advanced.php
639 639 ?> 640 640 </div><!-- /post-body-content --> 641 641 642 <div id="postbox-container-1" class="postbox-container">642 <div class="postbox-container-1 postbox-container"> 643 643 <?php 644 644 645 645 if ( 'page' == $post_type ) { -
src/wp-admin/edit-form-comment.php
85 85 </div> 86 86 </div><!-- /post-body-content --> 87 87 88 <div id="postbox-container-1" class="postbox-container">88 <div class="postbox-container-1 postbox-container"> 89 89 <div id="submitdiv" class="stuffbox" > 90 90 <h2><?php _e( 'Status' ); ?></h2> 91 91 <div class="inside"> -
src/wp-admin/edit-link-form.php
135 135 </div> 136 136 </div><!-- /post-body-content --> 137 137 138 <div id="postbox-container-1" class="postbox-container">138 <div class="postbox-container-1 postbox-container"> 139 139 <?php 140 140 141 141 /** This action is documented in wp-admin/includes/meta-boxes.php */ -
src/wp-admin/includes/dashboard.php
242 242 243 243 ?> 244 244 <div id="dashboard-widgets" class="metabox-holder<?php echo $columns_css; ?>"> 245 <div id="postbox-container-1" class="postbox-container">245 <div class="postbox-container-1 postbox-container"> 246 246 <?php do_meta_boxes( $screen->id, 'normal', '' ); ?> 247 247 </div> 248 248 <div class="postbox-container-2 postbox-container"> 249 249 <?php do_meta_boxes( $screen->id, 'side', '' ); ?> 250 250 </div> 251 <div id="postbox-container-3" class="postbox-container">251 <div class="postbox-container-3 postbox-container"> 252 252 <?php do_meta_boxes( $screen->id, 'column3', '' ); ?> 253 253 </div> 254 <div id="postbox-container-4" class="postbox-container">254 <div class="postbox-container-4 postbox-container"> 255 255 <?php do_meta_boxes( $screen->id, 'column4', '' ); ?> 256 256 </div> 257 257 </div>