WordPress.org

Make WordPress Core

Ticket #46964: 46964.2.diff

File 46964.2.diff, 9.5 KB (added by SergeyBiryukov, 20 months ago)
  • src/js/_enqueues/admin/postbox.js

     
    363363                        if ( side.length ) {
    364364                                if ( side.children('.postbox:visible').length )
    365365                                        side.removeClass('empty-container');
    366                                 else if ( $('#postbox-container-1').css('width') == '280px' )
     366                                else if ( $('.postbox-container-1').css('width') == '280px' )
    367367                                        side.addClass('empty-container');
    368368                        }
    369369                },
  • src/js/_enqueues/wp/editor/dfw.js

     
    3131                        $menuBar = $(),
    3232                        $statusBar = $(),
    3333                        $sideSortables = $( '#side-sortables' ),
    34                         $postboxContainer = $( '#postbox-container-1' ),
     34                        $postboxContainer = $( '.postbox-container-1' ),
    3535                        $postBody = $('#post-body'),
    3636                        fullscreen = window.wp.editor && window.wp.editor.fullscreen,
    3737                        mceEditor,
  • src/wp-admin/css/common.css

     
    20092009}
    20102010
    20112011.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 {
    20152015        border: 0 none;
    20162016        height: 0;
    20172017        min-height: 0;
     
    20232023        float: left;
    20242024}
    20252025
    2026 #post-body.columns-2 #postbox-container-1 {
     2026#post-body.columns-2 .postbox-container-1 {
    20272027        float: right;
    20282028        margin-right: -300px;
    20292029        width: 280px;
  • src/wp-admin/css/dashboard.css

     
    77}
    88
    99#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 {
    1212        float: right;
    1313        width: 50.5%;
    1414}
     
    1717        width: 33.5%;
    1818}
    1919
    20 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-1 {
     20#wpbody-content #dashboard-widgets.columns-3 .postbox-container-1 {
    2121        width: 33%;
    2222}
    2323
    24 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-3,
    25 #wpbody-content #dashboard-widgets.columns-3 #postbox-container-4 {
     24#wpbody-content #dashboard-widgets.columns-3 .postbox-container-3,
     25#wpbody-content #dashboard-widgets.columns-3 .postbox-container-4 {
    2626        float: right;
    2727}
    2828
     
    3434        width: 25%;
    3535}
    3636
    37 #dashboard-widgets-wrap .columns-3 #postbox-container-4 .empty-container {
     37#dashboard-widgets-wrap .columns-3 .postbox-container-4 .empty-container {
    3838        border: none !important;
    3939}
    4040
     
    4343}
    4444
    4545.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 {
     46.ie8 #wpbody-content #dashboard-widgets .postbox-container-3,
     47.ie8 #wpbody-content #dashboard-widgets .postbox-container-4 {
    4848        float: right;
    4949        width: 50.5%;
    5050}
    5151
    52 .ie8 #dashboard-widgets #postbox-container-3 .empty-container,
    53 .ie8 #dashboard-widgets #postbox-container-4 .empty-container {
     52.ie8 #dashboard-widgets .postbox-container-3 .empty-container,
     53.ie8 #dashboard-widgets .postbox-container-4 .empty-container {
    5454        border: 0 none;
    5555        height: 0;
    5656        min-height: 0;
     
    11131113        }
    11141114
    11151115        #wpbody-content #dashboard-widgets .postbox-container-2,
    1116         #wpbody-content #dashboard-widgets #postbox-container-3,
    1117         #wpbody-content #dashboard-widgets #postbox-container-4 {
     1116        #wpbody-content #dashboard-widgets .postbox-container-3,
     1117        #wpbody-content #dashboard-widgets .postbox-container-4 {
    11181118                float: right;
    11191119                width: 50.5%;
    11201120        }
    11211121
    1122         #dashboard-widgets #postbox-container-3 .empty-container,
    1123         #dashboard-widgets #postbox-container-4 .empty-container {
     1122        #dashboard-widgets .postbox-container-3 .empty-container,
     1123        #dashboard-widgets .postbox-container-4 .empty-container {
    11241124                border: 0 none;
    11251125                height: 0;
    11261126                min-height: 0;
    11271127        }
    11281128
    1129         #dashboard-widgets #postbox-container-3 .empty-container:after,
    1130         #dashboard-widgets #postbox-container-4 .empty-container:after {
     1129        #dashboard-widgets .postbox-container-3 .empty-container:after,
     1130        #dashboard-widgets .postbox-container-4 .empty-container:after {
    11311131                display: none;
    11321132        }
    11331133
     
    11631163                width: 33.5%;
    11641164        }
    11651165
    1166         #wpbody-content #dashboard-widgets #postbox-container-1 {
     1166        #wpbody-content #dashboard-widgets .postbox-container-1 {
    11671167                width: 33%;
    11681168        }
    11691169
    1170         #wpbody-content #dashboard-widgets #postbox-container-3,
    1171         #wpbody-content #dashboard-widgets #postbox-container-4 {
     1170        #wpbody-content #dashboard-widgets .postbox-container-3,
     1171        #wpbody-content #dashboard-widgets .postbox-container-4 {
    11721172                float: right;
    11731173        }
    11741174
    1175         #dashboard-widgets #postbox-container-4 .empty-container {
     1175        #dashboard-widgets .postbox-container-4 .empty-container {
    11761176                border: 0 none;
    11771177                height: 0;
    11781178                min-height: 0;
    11791179        }
    11801180
    1181         #dashboard-widgets #postbox-container-4 .empty-container:after {
     1181        #dashboard-widgets .postbox-container-4 .empty-container:after {
    11821182                display: none;
    11831183        }
    11841184
  • src/wp-admin/css/edit.css

     
    14201420                margin: 0;
    14211421        }
    14221422
    1423         #wpbody-content #post-body.columns-2 #postbox-container-1 {
     1423        #wpbody-content #post-body.columns-2 .postbox-container-1 {
    14241424                margin-right: 0;
    14251425                width: 100%;
    14261426        }
    14271427
    1428         .poststuff #postbox-container-1 .empty-container,
    1429         .poststuff #postbox-container-1 #side-sortables:empty {
     1428        .poststuff .postbox-container-1 .empty-container,
     1429        .poststuff .postbox-container-1 #side-sortables:empty {
    14301430                border: 0 none;
    14311431                height: 0;
    14321432                min-height: 0;
  • src/wp-admin/css/ie.css

     
    1414}
    1515
    1616#wpbody-content #dashboard-widgets .postbox-container-2,
    17 #wpbody-content #dashboard-widgets #postbox-container-3,
    18 #wpbody-content #dashboard-widgets #postbox-container-4 {
     17#wpbody-content #dashboard-widgets .postbox-container-3,
     18#wpbody-content #dashboard-widgets .postbox-container-4 {
    1919        float: right;
    2020        width: 50.5%;
    2121}
    2222
    23 #dashboard-widgets #postbox-container-3 .empty-container,
    24 #dashboard-widgets #postbox-container-4 .empty-container {
     23#dashboard-widgets .postbox-container-3 .empty-container,
     24#dashboard-widgets .postbox-container-4 .empty-container {
    2525        border: 0 none;
    2626        height: 0;
    2727        min-height: 0;
     
    3838        width: 97%;
    3939}
    4040
    41 #post-body.columns-2 #postbox-container-1 {
     41#post-body.columns-2 .postbox-container-1 {
    4242        padding-left: 19px;
    4343}
    4444
  • src/wp-admin/edit-form-advanced.php

     
    639639?>
    640640</div><!-- /post-body-content -->
    641641
    642 <div id="postbox-container-1" class="postbox-container">
     642<div class="postbox-container-1 postbox-container">
    643643<?php
    644644
    645645if ( 'page' == $post_type ) {
  • src/wp-admin/edit-form-comment.php

     
    8585</div>
    8686</div><!-- /post-body-content -->
    8787
    88 <div id="postbox-container-1" class="postbox-container">
     88<div class="postbox-container-1 postbox-container">
    8989<div id="submitdiv" class="stuffbox" >
    9090<h2><?php _e( 'Status' ); ?></h2>
    9191<div class="inside">
  • src/wp-admin/edit-link-form.php

     
    135135</div>
    136136</div><!-- /post-body-content -->
    137137
    138 <div id="postbox-container-1" class="postbox-container">
     138<div class="postbox-container-1 postbox-container">
    139139<?php
    140140
    141141/** This action is documented in wp-admin/includes/meta-boxes.php */
  • src/wp-admin/includes/dashboard.php

     
    242242
    243243        ?>
    244244<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">
    246246        <?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
    247247        </div>
    248248        <div class="postbox-container-2 postbox-container">
    249249        <?php do_meta_boxes( $screen->id, 'side', '' ); ?>
    250250        </div>
    251         <div id="postbox-container-3" class="postbox-container">
     251        <div class="postbox-container-3 postbox-container">
    252252        <?php do_meta_boxes( $screen->id, 'column3', '' ); ?>
    253253        </div>
    254         <div id="postbox-container-4" class="postbox-container">
     254        <div class="postbox-container-4 postbox-container">
    255255        <?php do_meta_boxes( $screen->id, 'column4', '' ); ?>
    256256        </div>
    257257</div>