Skip to content

Commit 055c638

Browse files
Merge branch 'trunk' into skip-page-builder-dip
2 parents 3f563a1 + 63240d9 commit 055c638

29 files changed

Lines changed: 473 additions & 104 deletions

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://develop.svn.wordpress.org/trunk"
88
},
99
"gutenberg": {
10-
"ref": "022d8dd3d461f91b15c1f0410649d3ebb027207f"
10+
"ref": "7b7fa2bc97a8029a302bd6511cf0d206b5953172"
1111
},
1212
"engines": {
1313
"node": ">=20.10.0",
@@ -145,4 +145,4 @@
145145
"sync-gutenberg-packages": "grunt sync-gutenberg-packages",
146146
"postsync-gutenberg-packages": "grunt wp-packages:sync-stable-blocks && grunt build --dev && grunt build"
147147
}
148-
}
148+
}

src/wp-admin/comment.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
);
4949
}
5050
} else {
51-
$comment = null;
51+
$comment_id = 0;
52+
$comment = null;
5253
}
5354

5455
switch ( $action ) {

src/wp-admin/css/common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ th.action-links {
10861086

10871087
.filter-links .current {
10881088
box-shadow: none;
1089-
border-bottom: 4px solid #646970;
1089+
border-bottom: 4px solid var(--wp-admin-theme-color);
10901090
color: #1d2327;
10911091
}
10921092

@@ -1183,7 +1183,7 @@ th.action-links {
11831183
}
11841184

11851185
.wp-filter .button.drawer-toggle:focus {
1186-
border-color: #4f94d4;
1186+
border-color: var(--wp-admin-theme-color);
11871187
}
11881188

11891189
.wp-filter .button.drawer-toggle:active {

src/wp-admin/css/customize-controls.css

Lines changed: 1 addition & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@ body:not(.ready) #customize-save-button-wrapper .save {
8383
margin-top: 0;
8484
}
8585

86-
#customize-save-button-wrapper .save:focus, #publish-settings:focus {
87-
box-shadow: 0 1px 0 #2271b1, 0 0 2px 1px #72aee6; /* This is default box shadow for focus */
88-
}
89-
9086
#customize-save-button-wrapper .save.has-next-sibling {
9187
border-radius: 3px 0 0 3px;
9288
}
@@ -499,12 +495,6 @@ body.trashing #publish-settings {
499495
left: 6px;
500496
}
501497

502-
#customize-controls .customize-info.open .customize-help-toggle,
503-
#customize-controls .customize-info .customize-help-toggle:focus,
504-
#customize-controls .customize-info .customize-help-toggle:hover {
505-
color: #2271b1;
506-
}
507-
508498
#customize-controls .customize-info .customize-panel-description,
509499
#customize-controls .customize-info .customize-section-description,
510500
#customize-outer-theme-controls .customize-info .customize-section-description,
@@ -609,15 +599,6 @@ body.trashing #publish-settings {
609599
background: transparent;
610600
}
611601

612-
#customize-controls .control-section:hover > .accordion-section-title,
613-
#customize-controls .control-section .accordion-section-title button:hover,
614-
#customize-controls .control-section.open .accordion-section-title,
615-
#customize-controls .control-section .accordion-section-title button:focus {
616-
color: var(--wp-admin-theme-color, #3858e9);
617-
background: #f6f7f7;
618-
border-left-color: var(--wp-admin-theme-color, #3858e9);
619-
}
620-
621602
#accordion-section-themes + .control-section {
622603
border-top: 1px solid #dcdcde;
623604
}
@@ -629,17 +610,6 @@ body.trashing #publish-settings {
629610
background: #f6f7f7;
630611
}
631612

632-
#customize-theme-controls .control-section:hover > .accordion-section-title:after,
633-
#customize-theme-controls .control-section .accordion-section-title:hover:after,
634-
#customize-theme-controls .control-section.open .accordion-section-title:after,
635-
#customize-theme-controls .control-section .accordion-section-title:focus:after,
636-
#customize-outer-theme-controls .control-section:hover > .accordion-section-title:after,
637-
#customize-outer-theme-controls .control-section .accordion-section-title:hover:after,
638-
#customize-outer-theme-controls .control-section.open .accordion-section-title:after,
639-
#customize-outer-theme-controls .control-section .accordion-section-title:focus:after {
640-
color: #2271b1;
641-
}
642-
643613
#customize-theme-controls .control-section.open {
644614
border-bottom: 1px solid #f0f0f1;
645615
}
@@ -907,8 +877,6 @@ h3.customize-section-title {
907877
.customize-controls-preview-toggle:focus,
908878
.customize-controls-preview-toggle:hover {
909879
background: #fff;
910-
color: #2271b1;
911-
border-top-color: #2271b1;
912880
box-shadow: none;
913881
/* Only visible in Windows High Contrast mode */
914882
outline: 1px solid transparent;
@@ -924,9 +892,7 @@ h3.customize-section-title {
924892
.customize-panel-back:focus,
925893
.customize-section-back:hover,
926894
.customize-section-back:focus {
927-
color: #2271b1;
928895
background: #f6f7f7;
929-
border-left-color: #2271b1;
930896
box-shadow: none;
931897
/* Only visible in Windows High Contrast mode */
932898
outline: 2px solid transparent;
@@ -2033,8 +1999,6 @@ p.customize-section-description {
20331999

20342000
.control-panel-themes .customize-themes-section-title:focus,
20352001
.control-panel-themes .customize-themes-section-title:hover {
2036-
border-left-color: #2271b1;
2037-
color: #2271b1;
20382002
background: #f6f7f7;
20392003
}
20402004

@@ -2063,14 +2027,9 @@ p.customize-section-description {
20632027
position: absolute;
20642028
top: 9px;
20652029
right: 15px;
2066-
background: #2271b1;
20672030
color: #fff;
20682031
}
20692032

2070-
.control-panel-themes .customize-themes-section-title.selected {
2071-
color: #2271b1;
2072-
}
2073-
20742033
#customize-theme-controls .themes.accordion-section-content {
20752034
position: relative;
20762035
left: 0;
@@ -2373,9 +2332,7 @@ p.customize-section-description {
23732332

23742333
.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:hover,
23752334
.wp-customizer .showing-themes .control-panel-themes .customize-themes-mobile-back:focus {
2376-
color: #2271b1;
23772335
background: #f6f7f7;
2378-
border-left-color: #2271b1;
23792336
box-shadow: none;
23802337
/* Only visible in Windows High Contrast mode */
23812338
outline: 2px solid transparent;
@@ -2471,13 +2428,11 @@ p.customize-section-description {
24712428
.wp-customizer .theme-overlay .theme-header .left:focus,
24722429
.wp-customizer .theme-overlay .theme-header .left:hover {
24732430
background: #fff;
2474-
border-bottom: 4px solid #2271b1;
2475-
color: #2271b1;
24762431
}
24772432

24782433
.wp-customizer .theme-overlay .theme-header .close:focus:before,
24792434
.wp-customizer .theme-overlay .theme-header .close:hover:before {
2480-
color: #2271b1;
2435+
color: var(--wp-admin-theme-color);
24812436
}
24822437

24832438
.wp-customizer .theme-overlay .theme-header button.disabled,

src/wp-admin/css/customize-nav-menus.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,
269269
#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
270270
#customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
271-
color: #2271b1;
271+
color: var(--wp-admin-theme-color);
272272
}
273273

274274
.customize-screen-options-toggle:focus,
@@ -836,13 +836,13 @@ li.assigned-to-menu-location .add-new-menu-item {
836836
.menu-item-handle:hover {
837837
position: relative;
838838
z-index: 10;
839-
color: #2271b1;
839+
color: var(--wp-admin-theme-color);
840840
}
841841

842842
.menu-item-handle:hover .item-type,
843843
.menu-item-handle:hover .item-edit,
844844
#available-menu-items .menu-item-handle:hover .item-add {
845-
color: #2271b1;
845+
color: var(--wp-admin-theme-color);
846846
}
847847

848848
.menu-item-edit-active .menu-item-handle {

src/wp-admin/css/customize-widgets.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188
#customize-theme-controls .widget-area-select .selected {
189189
color: #fff;
190-
background: #2271b1;
190+
background: var(--wp-admin-theme-color);
191191
}
192192

193193
#customize-theme-controls .widget-area-select .selected:before {
@@ -245,8 +245,8 @@
245245
#available-widgets .widget-tpl.selected {
246246
background: #f6f7f7;
247247
border-bottom-color: #c3c4c7;
248-
color: #2271b1;
249-
border-left: 4px solid #2271b1;
248+
color: var(--wp-admin-theme-color);;
249+
border-left: 4px solid var(--wp-admin-theme-color);
250250
}
251251

252252
#customize-controls .widget-title h3 {

src/wp-admin/css/dashboard.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,15 @@
533533
.community-events-form .regular-text {
534534
width: 40%;
535535
margin: 0;
536+
min-height: 32px;
537+
line-height: 2.14285714;
538+
padding: 0 8px;
539+
}
540+
541+
#dashboard-widgets .community-events-form .button {
542+
min-height: 32px;
543+
line-height: 2.30769231;
544+
padding: 0 12px;
536545
}
537546

538547
.community-events li.event-none {
@@ -544,7 +553,7 @@
544553
}
545554

546555
.community-events-form label {
547-
line-height: 2.15384615;
556+
line-height: 2.14285714;
548557
}
549558

550559
.community-events .activity-block > p {

src/wp-admin/css/list-tables.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,8 @@ tr.inline-edit-row td {
922922
}
923923

924924
.inline-edit-wrapper:focus {
925-
border-color: #2271b1;
926-
box-shadow: 0 0 0 1px #2271b1;
925+
border-color: var(--wp-admin-theme-color, #3858e9);
926+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
927927
/* Only visible in Windows High Contrast mode */
928928
outline: 2px solid transparent;
929929
}

src/wp-admin/includes/admin-filters.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
// Prerendering.
5555
if ( ! is_customize_preview() ) {
56-
add_filter( 'admin_print_styles', 'wp_resource_hints', 1 );
56+
add_action( 'admin_print_styles', 'wp_resource_hints', 1 );
5757
}
5858

5959
add_action( 'admin_print_scripts', 'print_emoji_detection_script' );
@@ -85,7 +85,7 @@
8585

8686
add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
8787

88-
add_action( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
88+
add_filter( 'use_block_editor_for_post_type', '_disable_block_editor_for_navigation_post_type', 10, 2 );
8989
add_action( 'edit_form_after_title', '_disable_content_editor_for_navigation_post_type' );
9090
add_action( 'edit_form_after_editor', '_enable_content_editor_for_navigation_post_type' );
9191

src/wp-admin/includes/menu.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
do_action( '_admin_menu' );
4242
}
4343

44+
/**
45+
* @global array $menu
46+
* @global array $submenu
47+
* @global array $compat
48+
*/
49+
global $menu, $submenu, $compat;
50+
4451
// Create list of page plugin hook names.
4552
foreach ( $menu as $menu_page ) {
4653
$pos = strpos( $menu_page[2], '?' );

0 commit comments

Comments
 (0)