WordPress.org

Make WordPress Core

Ticket #46964: 46964.diff

File 46964.diff, 10.6 KB (added by donmhico, 2 years ago)

Convert #poststuff and #postbox-container-2 to .poststuff and .postbox-container-2.

  • src/js/_enqueues/admin/postbox.js

    diff --git src/js/_enqueues/admin/postbox.js src/js/_enqueues/admin/postbox.js
    index 88facb1aee..a935bd02bf 100644
     
    411411                                        break;
    412412                                case 0:
    413413                                case 180:
    414                                         if ( $('#poststuff').length ) {
     414                                        if ( $('.poststuff').length ) {
    415415                                                this._pb_edit(1);
    416416                                        } else {
    417417                                                if ( !check.length || !check.is(':checked') )
  • src/wp-admin/css/dashboard.css

    diff --git src/wp-admin/css/dashboard.css src/wp-admin/css/dashboard.css
    index 8f562bd2a7..88d6e3829d 100644
     
    66        width: 49.5%;
    77}
    88
    9 #wpbody-content #dashboard-widgets.columns-2 #postbox-container-2,
     9#wpbody-content #dashboard-widgets.columns-2 .postbox-container-2,
    1010#wpbody-content #dashboard-widgets.columns-2 #postbox-container-3,
    1111#wpbody-content #dashboard-widgets.columns-2 #postbox-container-4 {
    1212        float: right;
     
    4242        width: 49.5%;
    4343}
    4444
    45 .ie8 #wpbody-content #dashboard-widgets #postbox-container-2,
     45.ie8 #wpbody-content #dashboard-widgets .postbox-container-2,
    4646.ie8 #wpbody-content #dashboard-widgets #postbox-container-3,
    4747.ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
    4848        float: right;
    a.rsswidget { 
    11011101                width: 49.5%;
    11021102        }
    11031103
    1104         #wpbody-content #dashboard-widgets #postbox-container-2,
     1104        #wpbody-content #dashboard-widgets .postbox-container-2,
    11051105        #wpbody-content #dashboard-widgets #postbox-container-3,
    11061106        #wpbody-content #dashboard-widgets #postbox-container-4 {
    11071107                float: right;
  • src/wp-admin/css/edit.css

    diff --git src/wp-admin/css/edit.css src/wp-admin/css/edit.css
    index 4b03870f22..f23614d82d 100644
     
    1 #poststuff {
     1.poststuff {
    22        padding-top: 10px;
    33        min-width: 763px;
    44}
    55
    6 #poststuff #post-body {
     6.poststuff #post-body {
    77        padding: 0;
    88}
    99
    10 #poststuff .postbox-container {
     10.poststuff .postbox-container {
    1111        width: 100%;
    1212}
    1313
    14 #poststuff #post-body.columns-2 {
     14.poststuff #post-body.columns-2 {
    1515        margin-right: 300px;
    1616}
    1717
     
    5151        margin: 0;
    5252}
    5353
    54 #poststuff #titlewrap {
     54.poststuff #titlewrap {
    5555        border: 0;
    5656        padding: 0;
    5757}
    form#tags-filter { 
    413413        padding-top: 20px;
    414414}
    415415
    416 #poststuff #post-body.columns-2 #side-sortables {
     416.poststuff #post-body.columns-2 #side-sortables {
    417417        width: 280px;
    418418}
    419419
    span.wp-media-buttons-icon:before { 
    599599        text-indent: 0;
    600600}
    601601
    602 #poststuff h3.hndle, /* Back-compat for pre-4.4 */
    603 #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    604 #poststuff h2 {
     602.poststuff h3.hndle, /* Back-compat for pre-4.4 */
     603.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
     604.poststuff h2 {
    605605        font-size: 14px;
    606606        padding: 8px 12px;
    607607        margin: 0;
    608608        line-height: 1.4;
    609609}
    610610
    611 #poststuff .stuffbox h2 {
     611.poststuff .stuffbox h2 {
    612612        padding: 8px 10px;
    613613}
    614614
    615 #poststuff .inside {
     615.poststuff .inside {
    616616        margin: 6px 0 0 0;
    617617}
    618618
    619 #poststuff .stuffbox .inside {
     619.poststuff .stuffbox .inside {
    620620        margin: 0;
    621621}
    622622
    623 #poststuff .inside #parent_id,
    624 #poststuff .inside #page_template {
     623.poststuff .inside #parent_id,
     624.poststuff .inside #page_template {
    625625        max-width: 100%;
    626626}
    627627
    628 .ie8 #poststuff .inside #parent_id,
    629 .ie8 #poststuff .inside #page_template {
     628.ie8 .poststuff .inside #parent_id,
     629.ie8 .poststuff .inside #page_template {
    630630        width: 250px;
    631631}
    632632
    span.wp-media-buttons-icon:before { 
    645645}
    646646
    647647#linksubmitdiv .inside, /* Old Link Manager back-compat. */
    648 #poststuff #submitdiv .inside {
     648.poststuff #submitdiv .inside {
    649649        margin: 0;
    650650        padding: 0;
    651651}
    p.description code { 
    10641064  13.0 - Tags
    10651065------------------------------------------------------------------------------*/
    10661066
    1067 #poststuff .tagsdiv .ajaxtag {
     1067.poststuff .tagsdiv .ajaxtag {
    10681068        margin-top: 1em;
    10691069}
    10701070
    1071 #poststuff .tagsdiv .howto {
     1071.poststuff .tagsdiv .howto {
    10721072        margin: 1em 0 6px 0;
    10731073}
    10741074
    p.popular-tags a { 
    11131113        margin: 2px 0 12px;
    11141114}
    11151115
    1116 #poststuff .inside .the-tagcloud {
     1116.poststuff .inside .the-tagcloud {
    11171117        margin: 5px 0 10px;
    11181118        padding: 8px;
    11191119        border: 1px solid #ddd;
    table.links-table { 
    13851385
    13861386/* one column on the post write/edit screen */
    13871387@media only screen and (max-width: 850px) {
    1388         #poststuff {
     1388        .poststuff {
    13891389                min-width: 0;
    13901390        }
    13911391
    1392         #wpbody-content #poststuff #post-body {
     1392        #wpbody-content .poststuff #post-body {
    13931393                margin: 0;
    13941394        }
    13951395
    table.links-table { 
    13981398                width: 100%;
    13991399        }
    14001400
    1401         #poststuff #postbox-container-1 .empty-container,
    1402         #poststuff #postbox-container-1 #side-sortables:empty {
     1401        .poststuff #postbox-container-1 .empty-container,
     1402        .poststuff #postbox-container-1 #side-sortables:empty {
    14031403                border: 0 none;
    14041404                height: 0;
    14051405                min-height: 0;
    14061406        }
    14071407
    1408         #poststuff #post-body.columns-2 #side-sortables {
     1408        .poststuff #post-body.columns-2 #side-sortables {
    14091409                min-height: 0;
    14101410                width: auto;
    14111411        }
    table.links-table { 
    14301430                padding: 10px 10px;
    14311431        }
    14321432
    1433         #poststuff .stuffbox .inside {
     1433        .poststuff .stuffbox .inside {
    14341434                padding: 0 2px 4px 0;
    14351435        }
    14361436
    1437         #poststuff h3.hndle, /* Back-compat for pre-4.4 */
    1438         #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    1439         #poststuff h2 {
     1437        .poststuff h3.hndle, /* Back-compat for pre-4.4 */
     1438        .poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
     1439        .poststuff h2 {
    14401440                padding: 12px;
    14411441        }
    14421442
  • src/wp-admin/css/ie.css

    diff --git src/wp-admin/css/ie.css src/wp-admin/css/ie.css
    index 00853ab7c8..89a6d38629 100644
     
    1313        width: 49.5%;
    1414}
    1515
    16 #wpbody-content #dashboard-widgets #postbox-container-2,
     16#wpbody-content #dashboard-widgets .postbox-container-2,
    1717#wpbody-content #dashboard-widgets #postbox-container-3,
    1818#wpbody-content #dashboard-widgets #postbox-container-4 {
    1919        float: right;
    a.button.button-small { 
    367367#wrap,
    368368#postdivrich,
    369369#postdiv,
    370 #poststuff,
     370.poststuff,
    371371.metabox-holder,
    372372#titlediv,
    373373#post-body,
    form#template div { 
    414414        padding: 0 4px;
    415415}
    416416
    417 #poststuff h2 {
     417.poststuff h2 {
    418418        font-size: 1.6em;
    419419}
    420420
    421 #poststuff .inside #parent_id,
    422 #poststuff .inside #page_template,
     421.poststuff .inside #parent_id,
     422.poststuff .inside #page_template,
    423423.inline-edit-row #post_parent,
    424424.inline-edit-row select[name="page_template"] {
    425425        width: 250px;
    input[type="password"], 
    677677        padding: 0;
    678678}
    679679
    680 * html #poststuff h2 {
     680* html .poststuff h2 {
    681681        margin-left: 0;
    682682}
    683683
  • src/wp-admin/css/media.css

    diff --git src/wp-admin/css/media.css src/wp-admin/css/media.css
    index 5c7242224d..b58ef51d21 100644
    border color while dragging a file over the uploader drop area */ 
    10261026        display: block;
    10271027}
    10281028
    1029 #poststuff .imgedit-group-top h2 {
     1029.poststuff .imgedit-group-top h2 {
    10301030        display: inline-block;
    10311031        margin: 0;
    10321032        padding: 0;
    border color while dragging a file over the uploader drop area */ 
    10341034        line-height: 1.4;
    10351035}
    10361036
    1037 #poststuff .imgedit-group-top .button-link {
     1037.poststuff .imgedit-group-top .button-link {
    10381038        text-decoration: none;
    10391039        color: #23282d;
    10401040}
  • src/wp-admin/edit-form-advanced.php

    diff --git src/wp-admin/edit-form-advanced.php src/wp-admin/edit-form-advanced.php
    index 977448aaf5..ab95a22290 100644
    wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
    475475do_action( 'edit_form_top', $post );
    476476?>
    477477
    478 <div id="poststuff">
     478<div class="poststuff">
    479479<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
    480480<div id="post-body-content">
    481481
    do_meta_boxes( $post_type, 'side', $post ); 
    644644
    645645?>
    646646</div>
    647 <div id="postbox-container-2" class="postbox-container">
     647<div class="postbox-container-2 postbox-container">
    648648<?php
    649649
    650650do_meta_boxes( null, 'normal', $post );
  • src/wp-admin/edit-form-comment.php

    diff --git src/wp-admin/edit-form-comment.php src/wp-admin/edit-form-comment.php
    index a64be9cf88..5da066c35d 100644
    if ( ! defined( 'ABSPATH' ) ) { 
    1616<div class="wrap">
    1717<h1><?php _e( 'Edit Comment' ); ?></h1>
    1818
    19 <div id="poststuff">
     19<div class="poststuff">
    2020<input type="hidden" name="action" value="editedcomment" />
    2121<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
    2222<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
    endif; 
    193193</div><!-- /submitdiv -->
    194194</div>
    195195
    196 <div id="postbox-container-2" class="postbox-container">
     196<div class="postbox-container-2 postbox-container">
    197197<?php
    198198/** This action is documented in wp-admin/includes/meta-boxes.php */
    199199do_action( 'add_meta_boxes', 'comment', $comment );
  • src/wp-admin/edit-link-form.php

    diff --git src/wp-admin/edit-link-form.php src/wp-admin/edit-link-form.php
    index f63d71b48e..a10f883f6d 100644
    wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
    104104wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
    105105?>
    106106
    107 <div id="poststuff">
     107<div class="poststuff">
    108108
    109109<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
    110110<div id="post-body-content">
    $side_meta_boxes = do_meta_boxes( 'link', 'side', $link ); 
    142142
    143143?>
    144144</div>
    145 <div id="postbox-container-2" class="postbox-container">
     145<div class="postbox-container-2 postbox-container">
    146146<?php
    147147
    148148do_meta_boxes( null, 'normal', $link );
  • src/wp-admin/includes/dashboard.php

    diff --git src/wp-admin/includes/dashboard.php src/wp-admin/includes/dashboard.php
    index d45f1e2477..316dcf3118 100644
    function wp_dashboard() { 
    231231        <div id="postbox-container-1" class="postbox-container">
    232232        <?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
    233233        </div>
    234         <div id="postbox-container-2" class="postbox-container">
     234        <div class="postbox-container-2 postbox-container">
    235235        <?php do_meta_boxes( $screen->id, 'side', '' ); ?>
    236236        </div>
    237237        <div id="postbox-container-3" class="postbox-container">
  • src/wp-admin/includes/post.php

    diff --git src/wp-admin/includes/post.php src/wp-admin/includes/post.php
    index ec083c569f..5b0cb1f4a3 100644
    function the_block_editor_meta_boxes() { 
    22562256        </form>
    22572257        <?php foreach ( $locations as $location ) : ?>
    22582258                <form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;">
    2259                         <div id="poststuff" class="sidebar-open">
    2260                                 <div id="postbox-container-2" class="postbox-container">
     2259                        <div class="poststuff sidebar-open">
     2260                                <div class="postbox-container-2 postbox-container">
    22612261                                        <?php
    22622262                                        do_meta_boxes(
    22632263                                                $current_screen,