Make WordPress Core

Ticket #32017: 17851.4.diff

File 17851.4.diff, 11.8 KB (added by palmiak, 7 years ago)

refreshed file with backward compatibility

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

    diff --git a/src/js/_enqueues/admin/postbox.js b/src/js/_enqueues/admin/postbox.js
    index a91b536..156b937 100644
    a b var postboxes; 
    100100                 * @returns {void}
    101101                 */
    102102                add_postbox_toggles : function (page, args) {
    103                         var $handles = $( '.postbox .hndle, .postbox .handlediv' );
     103                        var $handles = $( '.postbox .hndle, .postbox .handle, .postbox .handlediv' );
    104104
    105105                        this.page = page;
    106106                        this.init( page, args );
    var postboxes; 
    110110                        /**
    111111                         * @since 2.7.0
    112112                         */
    113                         $('.postbox .hndle a').click( function(e) {
     113                        $('.postbox .hndle a, .postbox .handle a').click( function(e) {
    114114                                e.stopPropagation();
    115115                        });
    116116
    var postboxes; 
    211211                                placeholder: 'sortable-placeholder',
    212212                                connectWith: '.meta-box-sortables',
    213213                                items: '.postbox',
    214                                 handle: '.hndle',
     214                                handle: '.hndle, .handle',
    215215                                cursor: 'move',
    216216                                delay: ( isMobile ? 200 : 0 ),
    217217                                distance: 2,
  • src/wp-admin/css/common.css

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index cf9c7ff..1c5c94e 100644
    a b img.emoji { 
    725725.widget .widget-top,
    726726.postbox .hndle,
    727727.stuffbox .hndle,
     728.postbox .handle,
     729.stuffbox .handle,
    728730.control-section .accordion-section-title,
    729731.sidebar-name,
    730732#nav-menu-header,
    img.emoji { 
    747749}
    748750
    749751.postbox .hndle,
    750 .stuffbox .hndle {
     752.stuffbox .hndle,
     753.postbox .handle,
     754.stuffbox .handle {
    751755        border-bottom: 1px solid #eee;
    752756}
    753757
    html.wp-toolbar { 
    20112015}
    20122016
    20132017.js .widget .widget-top,
    2014 .js .postbox .hndle {
     2018.js .postbox .hndle,
     2019.js .postbox .handle {
    20152020        cursor: move;
    20162021}
    20172022
    2018 .hndle a {
     2023.hndle a,
     2024.handle a {
    20192025        font-size: 11px;
    20202026        font-weight: 400;
    20212027}
    html.wp-toolbar { 
    20502056
    20512057/* user-select is not a part of the CSS standard - may change behavior in the future */
    20522058.postbox .hndle,
    2053 .stuffbox .hndle {
     2059.stuffbox .hndle,
     2060.postbox .handle,
     2061.stuffbox .handle {
    20542062        -webkit-user-select: none;
    20552063        -moz-user-select: none;
    20562064        -ms-user-select: none;
    h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */ 
    22502258.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
    22512259.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
    22522260.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
    2253 .metabox-holder h2.hndle {
     2261.metabox-holder h2.hndle,
     2262.metabox-holder h3.handle,
     2263.metabox-holder h2.handle {
    22542264        font-size: 14px;
    22552265        padding: 8px 12px;
    22562266        margin: 0;
    img { 
    37573767        }
    37583768
    37593769        .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
     3770        .metabox-holder h3.handle,
    37603771        .metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
    37613772        .metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
    37623773        .metabox-holder h2 {
  • src/wp-admin/css/dashboard.css

    diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css
    index 19c6bf2..08b020d 100644
    a b form.initial-form.quickpress-open input#title { 
    898898}
    899899
    900900.hndle:hover .edit-box,
     901.handle:hover .edit-box,
    901902.edit-box:focus {
    902903        opacity: 1;
    903904}
    form.initial-form.quickpress-open input#title { 
    930931        text-decoration: underline;
    931932}
    932933
    933 #dashboard-widgets .hndle .postbox-title-action {
     934#dashboard-widgets .hndle .postbox-title-action,
     935#dashboard-widgets .handle .postbox-title-action {
    934936        float: right;
    935937        line-height: 1.2;
    936938}
    a.rsswidget { 
    10991101        color: #fff;
    11001102}
    11011103
    1102 #dashboard_browser_nag h2.hndle {
     1104#dashboard_browser_nag h2.hndle,
     1105#dashboard_browser_nag h2.handle {
    11031106        border: none;
    11041107        font-weight: 600;
    11051108        font-size: 20px;
  • src/wp-admin/css/edit.css

    diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
    index 00c68e2..026a291 100644
    a b span.wp-media-buttons-icon:before { 
    599599}
    600600
    601601#poststuff h3.hndle, /* Back-compat for pre-4.4 */
     602#poststuff h3.handle,
    602603#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    603604#poststuff h2 {
    604605        font-size: 14px;
    table.links-table { 
    14401441        }
    14411442
    14421443        #poststuff h3.hndle, /* Back-compat for pre-4.4 */
     1444        #poststuff h3.handle,
    14431445        #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    14441446        #poststuff h2 {
    14451447                padding: 12px;
  • src/wp-admin/css/ie.css

    diff --git a/src/wp-admin/css/ie.css b/src/wp-admin/css/ie.css
    index ceb02a8..afa9748 100644
    a b table.fixed td { 
    246246        border: 1px solid #ddd;
    247247}
    248248
    249 #wpbody-content .postbox .hndle {
     249#wpbody-content .postbox .hndle,
     250#wpbody-content .postbox .handle {
    250251        margin-bottom: -1px;
    251252}
    252253
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index b89a899..1e4a19b 100644
    a b function do_meta_boxes( $screen, $context, $object ) { 
    11401140                                                echo '<span class="toggle-indicator" aria-hidden="true"></span>';
    11411141                                                echo '</button>';
    11421142                                        }
    1143                                         echo '<h2 class="hndle">';
     1143                                        echo '<h2 class="handle">';
    11441144                                        if ( 'dashboard_php_nag' === $box['id'] ) {
    11451145                                                echo '<span aria-hidden="true" class="dashicons dashicons-warning"></span>';
    11461146                                                echo '<span class="screen-reader-text">' . __( 'Warning:' ) . ' </span>';
    function do_accordion_sections( $screen, $context, $object ) { 
    12681268                                        }
    12691269                                        ?>
    12701270                                        <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
    1271                                                 <h3 class="accordion-section-title hndle" tabindex="0">
     1271                                                <h3 class="accordion-section-title handle" tabindex="0">
    12721272                                                        <?php echo esc_html( $box['title'] ); ?>
    12731273                                                        <span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span>
    12741274                                                </h3>