WordPress.org

Make WordPress Core

Ticket #46964: 46964.1.diff

File 46964.1.diff, 10.6 KB (added by audrasjb, 23 months ago)

Patch refreshed

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

    diff --git a/src/js/_enqueues/admin/postbox.js b/src/js/_enqueues/admin/postbox.js
    index 9789518b65..ddcfac5d23 100644
    a b  
    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 a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css
    index eac01008e8..02cbf11db7 100644
    a b  
    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 { 
    11121112                width: 49.5%;
    11131113        }
    11141114
    1115         #wpbody-content #dashboard-widgets #postbox-container-2,
     1115        #wpbody-content #dashboard-widgets .postbox-container-2,
    11161116        #wpbody-content #dashboard-widgets #postbox-container-3,
    11171117        #wpbody-content #dashboard-widgets #postbox-container-4 {
    11181118                float: right;
  • src/wp-admin/css/edit.css

    diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
    index 20d4c4d27a..49cfd3de6d 100644
    a b  
    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 { 
    414414        padding-top: 20px;
    415415}
    416416
    417 #poststuff #post-body.columns-2 #side-sortables {
     417.poststuff #post-body.columns-2 #side-sortables {
    418418        width: 280px;
    419419}
    420420
    form#tags-filter { 
    596596        text-indent: 0;
    597597}
    598598
    599 #poststuff h3.hndle, /* Back-compat for pre-4.4 */
    600 #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    601 #poststuff h2 {
     599.poststuff h3.hndle, /* Back-compat for pre-4.4 */
     600.poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
     601.poststuff h2 {
    602602        font-size: 14px;
    603603        padding: 8px 12px;
    604604        margin: 0;
    605605        line-height: 1.4;
    606606}
    607607
    608 #poststuff .stuffbox h2 {
     608.poststuff .stuffbox h2 {
    609609        padding: 8px 10px;
    610610}
    611611
    612 #poststuff .inside {
     612.poststuff .inside {
    613613        margin: 6px 0 0 0;
    614614}
    615615
    616 #poststuff .stuffbox .inside {
     616.poststuff .stuffbox .inside {
    617617        margin: 0;
    618618}
    619619
    620 #poststuff .inside #parent_id,
    621 #poststuff .inside #page_template {
     620.poststuff .inside #parent_id,
     621.poststuff .inside #page_template {
    622622        max-width: 100%;
    623623}
    624624
    625 .ie8 #poststuff .inside #parent_id,
    626 .ie8 #poststuff .inside #page_template {
     625.ie8 .poststuff .inside #parent_id,
     626.ie8 .poststuff .inside #page_template {
    627627        width: 250px;
    628628}
    629629
    form#tags-filter { 
    642642}
    643643
    644644#linksubmitdiv .inside, /* Old Link Manager back-compat. */
    645 #poststuff #submitdiv .inside {
     645.poststuff #submitdiv .inside {
    646646        margin: 0;
    647647        padding: 0;
    648648}
    p.description code { 
    10681068  13.0 - Tags
    10691069------------------------------------------------------------------------------*/
    10701070
    1071 #poststuff .tagsdiv .ajaxtag {
     1071.poststuff .tagsdiv .ajaxtag {
    10721072        margin-top: 1em;
    10731073}
    10741074
    1075 #poststuff .tagsdiv .howto {
     1075.poststuff .tagsdiv .howto {
    10761076        margin: 1em 0 6px 0;
    10771077}
    10781078
    p.popular-tags a { 
    11171117        margin: 2px 0 12px;
    11181118}
    11191119
    1120 #poststuff .inside .the-tagcloud {
     1120.poststuff .inside .the-tagcloud {
    11211121        margin: 5px 0 10px;
    11221122        padding: 8px;
    11231123        border: 1px solid #ddd;
    table.links-table { 
    13891389
    13901390/* one column on the post write/edit screen */
    13911391@media only screen and (max-width: 850px) {
    1392         #poststuff {
     1392        .poststuff {
    13931393                min-width: 0;
    13941394        }
    13951395
    1396         #wpbody-content #poststuff #post-body {
     1396        #wpbody-content .poststuff #post-body {
    13971397                margin: 0;
    13981398        }
    13991399
    table.links-table { 
    14021402                width: 100%;
    14031403        }
    14041404
    1405         #poststuff #postbox-container-1 .empty-container,
    1406         #poststuff #postbox-container-1 #side-sortables:empty {
     1405        .poststuff #postbox-container-1 .empty-container,
     1406        .poststuff #postbox-container-1 #side-sortables:empty {
    14071407                border: 0 none;
    14081408                height: 0;
    14091409                min-height: 0;
    14101410        }
    14111411
    1412         #poststuff #post-body.columns-2 #side-sortables {
     1412        .poststuff #post-body.columns-2 #side-sortables {
    14131413                min-height: 0;
    14141414                width: auto;
    14151415        }
    table.links-table { 
    14341434                padding: 10px 10px;
    14351435        }
    14361436
    1437         #poststuff .stuffbox .inside {
     1437        .poststuff .stuffbox .inside {
    14381438                padding: 0 2px 4px 0;
    14391439        }
    14401440
    1441         #poststuff h3.hndle, /* Back-compat for pre-4.4 */
    1442         #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    1443         #poststuff h2 {
     1441        .poststuff h3.hndle, /* Back-compat for pre-4.4 */
     1442        .poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
     1443        .poststuff h2 {
    14441444                padding: 12px;
    14451445        }
    14461446
  • src/wp-admin/css/ie.css

    diff --git a/src/wp-admin/css/ie.css b/src/wp-admin/css/ie.css
    index 00853ab7c8..89a6d38629 100644
    a b  
    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 a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css
    index b945fa34cd..6906ef6467 100644
    a b border color while dragging a file over the uploader drop area */ 
    10331033        display: block;
    10341034}
    10351035
    1036 #poststuff .imgedit-group-top h2 {
     1036.poststuff .imgedit-group-top h2 {
    10371037        display: inline-block;
    10381038        margin: 0;
    10391039        padding: 0;
    border color while dragging a file over the uploader drop area */ 
    10411041        line-height: 1.4;
    10421042}
    10431043
    1044 #poststuff .imgedit-group-top .button-link {
     1044.poststuff .imgedit-group-top .button-link {
    10451045        text-decoration: none;
    10461046        color: #23282d;
    10471047}
  • src/wp-admin/edit-form-advanced.php

    diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php
    index e7127fbcb2..1739118da4 100644
    a b wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
    494494do_action( 'edit_form_top', $post );
    495495?>
    496496
    497 <div id="poststuff">
     497<div class="poststuff">
    498498<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
    499499<div id="post-body-content">
    500500
    do_meta_boxes( $post_type, 'side', $post ); 
    671671
    672672?>
    673673</div>
    674 <div id="postbox-container-2" class="postbox-container">
     674<div class="postbox-container-2 postbox-container">
    675675<?php
    676676
    677677do_meta_boxes( null, 'normal', $post );
  • src/wp-admin/edit-form-comment.php

    diff --git a/src/wp-admin/edit-form-comment.php b/src/wp-admin/edit-form-comment.php
    index aaed1f9fa4..cd422b8bfe 100644
    a b 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; 
    196196</div><!-- /submitdiv -->
    197197</div>
    198198
    199 <div id="postbox-container-2" class="postbox-container">
     199<div class="postbox-container-2 postbox-container">
    200200<?php
    201201/** This action is documented in wp-admin/includes/meta-boxes.php */
    202202do_action( 'add_meta_boxes', 'comment', $comment );
  • src/wp-admin/edit-link-form.php

    diff --git a/src/wp-admin/edit-link-form.php b/src/wp-admin/edit-link-form.php
    index 05c3751f72..f5de0437f7 100644
    a b wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); 
    106106wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false );
    107107?>
    108108
    109 <div id="poststuff">
     109<div class="poststuff">
    110110
    111111<div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
    112112<div id="post-body-content">
    $side_meta_boxes = do_meta_boxes( 'link', 'side', $link ); 
    144144
    145145?>
    146146</div>
    147 <div id="postbox-container-2" class="postbox-container">
     147<div class="postbox-container-2 postbox-container">
    148148<?php
    149149
    150150do_meta_boxes( null, 'normal', $link );
  • src/wp-admin/includes/dashboard.php

    diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
    index 6ecc49f8f1..1035f921dc 100644
    a b function wp_dashboard() { 
    245245        <div id="postbox-container-1" class="postbox-container">
    246246        <?php do_meta_boxes( $screen->id, 'normal', '' ); ?>
    247247        </div>
    248         <div id="postbox-container-2" class="postbox-container">
     248        <div class="postbox-container-2 postbox-container">
    249249        <?php do_meta_boxes( $screen->id, 'side', '' ); ?>
    250250        </div>
    251251        <div id="postbox-container-3" class="postbox-container">
  • src/wp-admin/includes/post.php

    diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php
    index 075edb159e..0f350d2fcb 100644
    a b function the_block_editor_meta_boxes() { 
    22642264        </form>
    22652265        <?php foreach ( $locations as $location ) : ?>
    22662266                <form class="metabox-location-<?php echo esc_attr( $location ); ?>" onsubmit="return false;">
    2267                         <div id="poststuff" class="sidebar-open">
    2268                                 <div id="postbox-container-2" class="postbox-container">
     2267                        <div class="poststuff" class="sidebar-open">
     2268                                <div class="postbox-container-2 postbox-container">
    22692269                                        <?php
    22702270                                        do_meta_boxes(
    22712271                                                $current_screen,