Skip to content

Commit 3804199

Browse files
Administration: Fix typo in class name from hndle to handle.
1 parent 972da8c commit 3804199

File tree

5 files changed

+31
-15
lines changed

5 files changed

+31
-15
lines changed

src/js/_enqueues/admin/postbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
* @return {void}
254254
*/
255255
add_postbox_toggles : function (page, args) {
256-
var $handles = $( '.postbox .hndle, .postbox .handlediv' ),
256+
var $handles = $( '.postbox .hndle, .postbox .handle, .postbox .handlediv' ),
257257
$orderButtons = $( '.postbox .handle-order-higher, .postbox .handle-order-lower' );
258258

259259
this.page = page;
@@ -267,7 +267,7 @@
267267
/**
268268
* @since 2.7.0
269269
*/
270-
$('.postbox .hndle a').on( 'click', function(e) {
270+
$( '.postbox .hndle a, .postbox .handle a' ).on( 'click', function(e) {
271271
e.stopPropagation();
272272
});
273273

@@ -370,7 +370,7 @@
370370
placeholder: 'sortable-placeholder',
371371
connectWith: '.meta-box-sortables',
372372
items: '.postbox',
373-
handle: '.hndle',
373+
handle: '.hndle, .handle',
374374
cursor: 'move',
375375
delay: ( isMobile ? 200 : 0 ),
376376
distance: 2,

src/wp-admin/css/common.css

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ img.emoji {
763763
.widget .widget-top,
764764
.postbox .hndle,
765765
.stuffbox .hndle,
766+
.postbox .handle,
767+
.stuffbox .handle,
766768
.control-section .accordion-section-title,
767769
.sidebar-name,
768770
#nav-menu-header,
@@ -784,7 +786,8 @@ img.emoji {
784786
color: #1d2327;
785787
}
786788

787-
.stuffbox .hndle {
789+
.stuffbox .hndle,
790+
.stuffbox .handle {
788791
border-bottom: 1px solid #c3c4c7;
789792
}
790793

@@ -2139,17 +2142,20 @@ html.wp-toolbar {
21392142
}
21402143

21412144
.js .widget .widget-top,
2142-
.js .postbox .hndle {
2145+
.js .postbox .hndle,
2146+
.js .postbox .handle {
21432147
cursor: move;
21442148
}
21452149

21462150
.js .widget .widget-top.is-non-sortable,
2147-
.js .postbox .hndle.is-non-sortable {
2151+
.js .postbox .hndle.is-non-sortable,
2152+
.js .postbox .handle.is-non-sortable {
21482153
cursor: auto;
21492154
}
21502155

21512156
/* Configurable dashboard widgets "Configure" edit-box link. */
2152-
.hndle a {
2157+
.hndle a,
2158+
.handle a {
21532159
font-size: 12px;
21542160
font-weight: 400;
21552161
}
@@ -2161,7 +2167,8 @@ html.wp-toolbar {
21612167
border-bottom: 1px solid #c3c4c7;
21622168
}
21632169

2164-
.postbox-header .hndle {
2170+
.postbox-header .hndle,
2171+
.postbox-header .handle {
21652172
flex-grow: 1;
21662173
/* Handle the alignment for the configurable dashboard widgets "Configure" edit-box link. */
21672174
display: flex;
@@ -2224,7 +2231,9 @@ html.wp-toolbar {
22242231

22252232
/* user-select is not a part of the CSS standard - may change behavior in the future */
22262233
.postbox .hndle,
2227-
.stuffbox .hndle {
2234+
.stuffbox .hndle,
2235+
.postbox .handle,
2236+
.stuffbox .handle {
22282237
-webkit-user-select: none;
22292238
user-select: none;
22302239
}
@@ -2422,7 +2431,9 @@ h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */
24222431
.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
24232432
.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
24242433
.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
2425-
.metabox-holder h2.hndle {
2434+
.metabox-holder h3.handle, /* Back-compat for pre-4.4 */
2435+
.metabox-holder h2.hndle,
2436+
.metabox-holder h2.handle {
24262437
font-size: 14px;
24272438
padding: 8px 12px;
24282439
margin: 0;
@@ -4004,13 +4015,13 @@ img {
40044015
word-wrap: anywhere; /* Firefox. Allow breaking long words anywhere */
40054016
word-break: break-word; /* Webkit: Treated similarly to word-wrap: break-word */
40064017
}
4007-
40084018
/* General Metabox */
40094019
.postbox {
40104020
font-size: 14px;
40114021
}
40124022

40134023
.metabox-holder h3.hndle, /* Back-compat for pre-4.4 */
4024+
.metabox-holder h3.handle, /* Back-compat for pre-4.4 */
40144025
.metabox-holder .stuffbox > h3, /* Back-compat for pre-4.4 */
40154026
.metabox-holder .postbox > h3, /* Back-compat for pre-4.4 */
40164027
.metabox-holder h2 {

src/wp-admin/css/dashboard.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ body #dashboard-widgets .postbox form .submit {
10031003
}
10041004

10051005
.hndle:hover .edit-box,
1006+
.handle:hover .edit-box,
10061007
.edit-box:focus {
10071008
opacity: 1;
10081009
}
@@ -1036,7 +1037,8 @@ body #dashboard-widgets .postbox form .submit {
10361037
text-decoration: underline;
10371038
}
10381039

1039-
#dashboard-widgets .hndle .postbox-title-action {
1040+
#dashboard-widgets .hndle .postbox-title-action,
1041+
#dashboard-widgets .handle .postbox-title-action {
10401042
float: right;
10411043
line-height: 1.2;
10421044
}
@@ -1181,7 +1183,8 @@ a.rsswidget {
11811183
border-color: transparent;
11821184
}
11831185

1184-
#dashboard_browser_nag h2.hndle {
1186+
#dashboard_browser_nag h2.hndle,
1187+
#dashboard_browser_nag h2.handle {
11851188
border: none;
11861189
font-weight: 600;
11871190
font-size: 20px;

src/wp-admin/css/edit.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ form#tags-filter {
651651
}
652652

653653
#poststuff h3.hndle, /* Back-compat for pre-4.4 */
654+
#poststuff h3.handle, /* Back-compat for pre-4.4 */
654655
#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
655656
#poststuff h2 {
656657
font-size: 14px;
@@ -1822,6 +1823,7 @@ table.links-table {
18221823
}
18231824

18241825
#poststuff h3.hndle, /* Back-compat for pre-4.4 */
1826+
#poststuff h3.handle, /* Back-compat for pre-4.4 */
18251827
#poststuff .stuffbox > h3, /* Back-compat for pre-4.4 */
18261828
#poststuff h2 {
18271829
padding: 12px;

src/wp-admin/includes/template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,7 +1370,7 @@ function do_meta_boxes( $screen, $context, $data_object ) {
13701370
echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes( $box['id'], $page ) . $hidden_class . '" ' . '>' . "\n";
13711371

13721372
echo '<div class="postbox-header">';
1373-
echo '<h2 class="hndle">';
1373+
echo '<h2 class="hndle handle">';
13741374
if ( 'dashboard_php_nag' === $box['id'] ) {
13751375
echo '<span aria-hidden="true" class="dashicons dashicons-warning"></span>';
13761376
echo '<span class="screen-reader-text">' .
@@ -1572,7 +1572,7 @@ function do_accordion_sections( $screen, $context, $data_object ) {
15721572
}
15731573
?>
15741574
<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'] ); ?>">
1575-
<h3 class="accordion-section-title hndle">
1575+
<h3 class="accordion-section-title hndle handle">
15761576
<button type="button" class="accordion-trigger" aria-expanded="<?php echo $aria_expanded; ?>" aria-controls="<?php echo esc_attr( $box['id'] ); ?>-content">
15771577
<span class="accordion-title">
15781578
<?php echo esc_html( $box['title'] ); ?>

0 commit comments

Comments
 (0)