Make WordPress Core

Ticket #32017: 32017.4.patch

File 32017.4.patch, 5.8 KB (added by bookdude13, 5 years ago)

Refreshed patch (last one corrupt?)

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

     
    9999                 * @return {void}
    100100                 */
    101101                add_postbox_toggles : function (page, args) {
    102                         var $handles = $( '.postbox .hndle, .postbox .handlediv' );
     102                        var $handles = $( '.postbox .hndle, .postbox .handle, .postbox .handlediv' );
    103103
    104104                        this.page = page;
    105105                        this.init( page, args );
     
    109109                        /**
    110110                         * @since 2.7.0
    111111                         */
    112                         $('.postbox .hndle a').click( function(e) {
     112                        $('.postbox .hndle a, .postbox .handle a').click( function(e) {
    113113                                e.stopPropagation();
    114114                        });
    115115
     
    210210                                placeholder: 'sortable-placeholder',
    211211                                connectWith: '.meta-box-sortables',
    212212                                items: '.postbox',
    213                                 handle: '.hndle',
     213                                handle: '.hndle, .handle',
    214214                                cursor: 'move',
    215215                                delay: ( isMobile ? 200 : 0 ),
    216216                                distance: 2,
  • src/wp-admin/css/common.css

     
    755755.widget .widget-top,
    756756.postbox .hndle,
    757757.stuffbox .hndle,
     758.postbox .handle,
     759.stuffbox .handle,
    758760.control-section .accordion-section-title,
    759761.sidebar-name,
    760762#nav-menu-header,
     
    777779}
    778780
    779781.postbox .hndle,
    780 .stuffbox .hndle {
     782.stuffbox .hndle,
     783.postbox .handle,
     784.stuffbox .handle {
    781785        border-bottom: 1px solid #ccd0d4;
    782786}
    783787
     
    20432047}
    20442048
    20452049.js .widget .widget-top,
    2046 .js .postbox .hndle {
     2050.js .postbox .hndle,
     2051.js .postbox .handle {
    20472052        cursor: move;
    20482053}
    20492054
    20502055.js .widget .widget-top.is-non-sortable,
    2051 .js .postbox .hndle.is-non-sortable {
     2056.js .postbox .hndle.is-non-sortable,
     2057.js .postbox .handle.is-non-sortable {
    20522058        cursor: auto;
    20532059}
    20542060
    2055 .hndle a {
     2061.hndle a,
     2062.handle a {
    20562063        font-size: 11px;
    20572064        font-weight: 400;
    20582065}
     
    20872094
    20882095/* user-select is not a part of the CSS standard - may change behavior in the future */
    20892096.postbox .hndle,
    2090 .stuffbox .hndle {
     2097.stuffbox .hndle,
     2098.postbox .handle,
     2099.stuffbox .handle {
    20912100        -webkit-user-select: none;
    20922101        -moz-user-select: none;
    20932102        -ms-user-select: none;
     
    22932302.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
    22942303.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
    22952304.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
    2296 .metabox-holder h2.hndle {
     2305.metabox-holder h3.handle, /* Back-compat for pre-4.4 */
     2306.metabox-holder h2.hndle,
     2307.metabox-holder h2.handle {
    22972308        font-size: 14px;
    22982309        padding: 8px 12px;
    22992310        margin: 0;
     
    38103821        }
    38113822
    38123823        .metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
     3824        .metabox-holder h3.handle, /* Back-compat for pre-4.4 */
    38133825        .metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
    38143826        .metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
    38153827        .metabox-holder h2 {
  • src/wp-admin/css/dashboard.css

     
    873873}
    874874
    875875.hndle:hover .edit-box,
     876.handle:hover .edit-box,
    876877.edit-box:focus {
    877878        opacity: 1;
    878879}
     
    906907        text-decoration: underline;
    907908}
    908909
    909 #dashboard-widgets .hndle .postbox-title-action {
     910#dashboard-widgets .hndle .postbox-title-action,
     911#dashboard-widgets .handle .postbox-title-action {
    910912        float: right;
    911913        line-height: 1.2;
    912914}
     
    10571059        color: #fff;
    10581060}
    10591061
    1060 #dashboard_browser_nag h2.hndle {
     1062#dashboard_browser_nag h2.hndle,
     1063#dashboard_browser_nag h2.handle {
    10611064        border: none;
    10621065        font-weight: 600;
    10631066        font-size: 20px;
  • src/wp-admin/css/edit.css

     
    597597}
    598598
    599599#poststuff h3.hndle, /* Back-compat for pre-4.4 */
     600#poststuff h3.handle, /* Back-compat for pre-4.4 */
    600601#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    601602#poststuff h2 {
    602603        font-size: 14px;
     
    14391440        }
    14401441
    14411442        #poststuff h3.hndle, /* Back-compat for pre-4.4 */
     1443        #poststuff h3.handle, /* Back-compat for pre-4.4 */
    14421444        #poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
    14431445        #poststuff h2 {
    14441446                padding: 12px;
  • src/wp-admin/css/ie.css

     
    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

     
    13161316                                                echo '<span class="toggle-indicator" aria-hidden="true"></span>';
    13171317                                                echo '</button>';
    13181318                                        }
    1319                                         echo '<h2 class="hndle">';
     1319                                        echo '<h2 class="hndle handle">';
    13201320                                        if ( 'dashboard_php_nag' === $box['id'] ) {
    13211321                                                echo '<span aria-hidden="true" class="dashicons dashicons-warning"></span>';
    13221322                                                echo '<span class="screen-reader-text">' . __( 'Warning:' ) . ' </span>';
     
    14611461                                        }
    14621462                                        ?>
    14631463                                        <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'] ); ?>">
    1464                                                 <h3 class="accordion-section-title hndle" tabindex="0">
     1464                                                <h3 class="accordion-section-title hndle handle" tabindex="0">
    14651465                                                        <?php echo esc_html( $box['title'] ); ?>
    14661466                                                        <span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span>
    14671467                                                </h3>