Skip to content

Commit 4fef0f5

Browse files
Merge branch 'trunk' into dependabot/composer/composer-packages-853032ace6
2 parents 5de34ea + d3474a5 commit 4fef0f5

12 files changed

Lines changed: 51 additions & 126 deletions

File tree

src/js/_enqueues/admin/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ jQuery( function($) {
10281028
revert_e = $el.html();
10291029

10301030
buttons.html(
1031-
'<button type="button" class="save button button-small">' + __( 'OK' ) + '</button> ' +
1031+
'<button type="button" class="save button button-compact">' + __( 'OK' ) + '</button> ' +
10321032
'<button type="button" class="cancel button-link">' + __( 'Cancel' ) + '</button>'
10331033
);
10341034

src/wp-admin/css/edit.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ input#link_url {
121121
#edit-slug-box .cancel {
122122
margin-right: 10px;
123123
padding: 0;
124-
font-size: 11px;
125124
}
126125

127126
#comment-link-box {
@@ -140,7 +139,7 @@ input#link_url {
140139
#editable-post-name input {
141140
font-size: 13px;
142141
font-weight: 400;
143-
height: 24px;
142+
min-height: 32px;
144143
margin: 0;
145144
width: 16em;
146145
}
@@ -1068,6 +1067,10 @@ form#tags-filter {
10681067
#edit-slug-box {
10691068
padding: 0;
10701069
}
1070+
1071+
#editable-post-name input {
1072+
min-height: 40px;
1073+
}
10711074
}
10721075

10731076
@media only screen and (max-width: 1004px) {

src/wp-admin/css/forms.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,11 @@ input[type="number"].tiny-text {
583583
vertical-align: middle;
584584
}
585585

586+
.button.wp-hide-pw.user-new-password-toggle > .dashicons {
587+
line-height: 1.85;
588+
vertical-align: top;
589+
}
590+
586591
.wp-cancel-pw .dashicons-no {
587592
display: none;
588593
}

src/wp-admin/includes/class-wp-screen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,7 @@ public function render_per_page_options() {
12801280
<legend><?php _e( 'Pagination' ); ?></legend>
12811281
<?php if ( $per_page_label ) : ?>
12821282
<label for="<?php echo esc_attr( $option ); ?>"><?php echo $per_page_label; ?></label>
1283-
<input type="number" step="1" min="1" max="999" class="screen-per-page" name="wp_screen_options[value]"
1283+
<input type="number" step="1" min="1" max="999" class="screen-per-page small-text" name="wp_screen_options[value]"
12841284
id="<?php echo esc_attr( $option ); ?>"
12851285
value="<?php echo esc_attr( $per_page ); ?>" />
12861286
<?php endif; ?>

src/wp-admin/user-edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@
695695
<input type="password" name="pass1" id="pass1" class="regular-text ltr" value="" autocomplete="new-password" spellcheck="false" data-pw="<?php echo esc_attr( wp_generate_password( 24 ) ); ?>" aria-describedby="pass-strength-result" />
696696
<div style="display:none" id="pass-strength-result" aria-live="polite"></div>
697697
</div>
698-
<button type="button" class="button wp-hide-pw hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
698+
<button type="button" class="button wp-hide-pw user-new-password-toggle hide-if-no-js" data-toggle="0" aria-label="<?php esc_attr_e( 'Hide password' ); ?>">
699699
<span class="dashicons dashicons-hidden" aria-hidden="true"></span>
700700
<span class="text"><?php _e( 'Hide' ); ?></span>
701701
</button>

src/wp-includes/css/buttons.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ TABLE OF CONTENTS:
380380

381381
.wp-core-ui .button,
382382
.wp-core-ui .button.button-large,
383+
.wp-core-ui .button.button-compact,
383384
.wp-core-ui .button.button-small,
384385
input#publish,
385386
input#save-post,

tests/phpunit/tests/blocks/getHookedBlocks.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*
1010
* @group blocks
1111
* @group block-hooks
12+
*
13+
* @covers ::get_hooked_blocks
1214
*/
1315
class Tests_Blocks_GetHookedBlocks extends WP_UnitTestCase {
1416

@@ -58,8 +60,6 @@ private function switch_to_block_theme_hooked_blocks() {
5860

5961
/**
6062
* @ticket 59383
61-
*
62-
* @covers ::get_hooked_blocks
6363
*/
6464
public function test_get_hooked_blocks_no_match_found() {
6565
$result = get_hooked_blocks();
@@ -69,8 +69,6 @@ public function test_get_hooked_blocks_no_match_found() {
6969

7070
/**
7171
* @ticket 59383
72-
*
73-
* @covers ::get_hooked_blocks
7472
*/
7573
public function test_get_hooked_blocks_matches_found() {
7674
register_block_type(
@@ -138,7 +136,6 @@ public function test_get_hooked_blocks_matches_found() {
138136
* @ticket 60008
139137
* @ticket 60506
140138
*
141-
* @covers ::get_hooked_blocks
142139
* @covers ::get_block_file_template
143140
*/
144141
public function test_loading_template_with_hooked_blocks() {
@@ -170,7 +167,6 @@ public function test_loading_template_with_hooked_blocks() {
170167
* @ticket 60008
171168
* @ticket 60506
172169
*
173-
* @covers ::get_hooked_blocks
174170
* @covers ::get_block_file_template
175171
*/
176172
public function test_loading_template_part_with_hooked_blocks() {
@@ -202,7 +198,6 @@ public function test_loading_template_part_with_hooked_blocks() {
202198
* @ticket 60008
203199
* @ticket 60506
204200
*
205-
* @covers ::get_hooked_blocks
206201
* @covers WP_Block_Patterns_Registry::get_registered
207202
*/
208203
public function test_loading_pattern_with_hooked_blocks() {

tests/phpunit/tests/blocks/insertHookedBlocks.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
*
1010
* @group blocks
1111
* @group block-hooks
12+
*
13+
* @covers ::insert_hooked_blocks
1214
*/
1315
class Tests_Blocks_InsertHookedBlocks extends WP_UnitTestCase {
1416
const ANCHOR_BLOCK_TYPE = 'tests/anchor-block';
@@ -26,8 +28,6 @@ class Tests_Blocks_InsertHookedBlocks extends WP_UnitTestCase {
2628
* @ticket 59572
2729
* @ticket 60126
2830
* @ticket 60506
29-
*
30-
* @covers ::insert_hooked_blocks
3131
*/
3232
public function test_insert_hooked_blocks_returns_correct_markup() {
3333
$anchor_block = array(
@@ -46,8 +46,6 @@ public function test_insert_hooked_blocks_returns_correct_markup() {
4646
* @ticket 59572
4747
* @ticket 60126
4848
* @ticket 60506
49-
*
50-
* @covers ::insert_hooked_blocks
5149
*/
5250
public function test_insert_hooked_blocks_if_block_is_ignored() {
5351
$anchor_block = array(
@@ -71,8 +69,6 @@ public function test_insert_hooked_blocks_if_block_is_ignored() {
7169
* @ticket 59572
7270
* @ticket 60126
7371
* @ticket 60506
74-
*
75-
* @covers ::insert_hooked_blocks
7672
*/
7773
public function test_insert_hooked_blocks_if_other_block_is_ignored() {
7874
$anchor_block = array(
@@ -96,8 +92,6 @@ public function test_insert_hooked_blocks_if_other_block_is_ignored() {
9692
* @ticket 59572
9793
* @ticket 60126
9894
* @ticket 60506
99-
*
100-
* @covers ::insert_hooked_blocks
10195
*/
10296
public function test_insert_hooked_blocks_filter_can_set_attributes() {
10397
$anchor_block = array(
@@ -139,8 +133,6 @@ public function test_insert_hooked_blocks_filter_can_set_attributes() {
139133
* @ticket 59572
140134
* @ticket 60126
141135
* @ticket 60506
142-
*
143-
* @covers ::insert_hooked_blocks
144136
*/
145137
public function test_insert_hooked_blocks_filter_can_wrap_block() {
146138
$anchor_block = array(
@@ -184,7 +176,6 @@ public function test_insert_hooked_blocks_filter_can_wrap_block() {
184176
/**
185177
* @ticket 60580
186178
*
187-
* @covers ::insert_hooked_blocks
188179
*/
189180
public function test_insert_hooked_blocks_filter_can_suppress_hooked_block() {
190181
$anchor_block = array(

tests/phpunit/tests/blocks/insertHookedBlocksAndSetIgnoredHookedBlocksMetadata.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*
1010
* @group blocks
1111
* @group block-hooks
12+
*
1213
* @covers ::insert_hooked_blocks_and_set_ignored_hooked_blocks_metadata
1314
*/
1415
class Tests_Blocks_InsertHookedBlocksAndSetIgnoredHookedBlocksMetadata extends WP_UnitTestCase {

tests/phpunit/tests/blocks/registerBlockTypeFromMetadataWithRegistry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Tests for WP_Block_Metadata_Registry integration with register_block_type_from_metadata().
44
*
55
* @group blocks
6+
*
7+
* @covers ::register_block_type_from_metadata
68
*/
79
class Tests_Blocks_RegisterBlockTypeFromMetadataWithRegistry extends WP_UnitTestCase {
810
private $temp_manifest_file;

0 commit comments

Comments
 (0)