Skip to content

Commit

Permalink
Merge branch 'trunk' into add/62503-speculative-loading
Browse files Browse the repository at this point in the history
  • Loading branch information
felixarntz committed Feb 18, 2025
2 parents 029324e + f89ea16 commit 57fd8c1
Show file tree
Hide file tree
Showing 73 changed files with 1,860 additions and 301 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable-performance-report-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
fetch-depth: ${{ github.event_name == 'workflow_dispatch' && '2' || '1' }}
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/reusable-performance-test-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> "$GITHUB_ENV"
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
fetch-depth: ${{ github.event_name == 'workflow_dispatch' && '2' || '1' }}
persist-credentials: false

- name: Set up Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: '.nvmrc'
cache: npm
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:
TEST_RESULTS_PREFIX: ${{ inputs.subject != 'current' && inputs.subject || '' }}

- name: Archive artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
if: always()
with:
name: performance-${{ inputs.multisite && 'multisite' || 'single' }}-${{ inputs.memcached && 'memcached' || 'default' }}-${{ inputs.subject }}
Expand Down
1 change: 0 additions & 1 deletion src/wp-admin/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
.screen-reader-text span,
.ui-helper-hidden-accessible {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand Down
29 changes: 28 additions & 1 deletion src/wp-admin/css/customize-controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,9 @@ body.trashing #publish-settings {
#customize-controls .customize-info .preview-notice {
font-size: 13px;
line-height: 1.9;
margin: 0;
font-weight: 400;
color: #50575e;
}

#customize-controls .customize-pane-child .customize-section-title h3,
Expand Down Expand Up @@ -2641,6 +2644,19 @@ body.adding-widget .add-new-widget:before,

#available-widgets .customize-section-title,
#available-menu-items .customize-section-title {
border: 0;
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}

#available-widgets .customize-section-title button,
#available-menu-items .customize-section-title button {
display: none;
}

Expand Down Expand Up @@ -2977,8 +2993,19 @@ body.adding-widget .add-new-widget:before,

#available-widgets .customize-section-title,
#available-menu-items .customize-section-title {
display: block;
border: 0;
clip-path: none;
height: inherit;
margin: 0;
overflow: hidden;
padding: 0;
width: auto;
position: static;
}

#available-widgets .customize-section-title button,
#available-menu-items .customize-section-title button {
display: block;
}

#available-widgets .customize-section-back,
Expand Down
1 change: 0 additions & 1 deletion src/wp-admin/css/install.css
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ body.language-chooser {
.screen-reader-input,
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand Down
1 change: 0 additions & 1 deletion src/wp-admin/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,6 @@ body.interim-login {
.screen-reader-text,
.screen-reader-text span {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand Down
5 changes: 5 additions & 0 deletions src/wp-admin/css/themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
overflow-y: scroll;
}

.themes-php #adminmenuwrap {
z-index: 10001; /* above Theme Overlay */
}

body.js .theme-browser.search-loading {
display: none;
}
Expand Down Expand Up @@ -372,6 +376,7 @@ body.js .theme-browser.search-loading {
background: #f0f0f1;
background: rgba(240, 240, 241, 0.9);
z-index: 10000; /* Over WP Pointers. */
min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
}

.theme-overlay .theme-header {
Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@
<div class="wp-full-overlay-sidebar-content" tabindex="-1">
<div id="customize-info" class="accordion-section customize-info" data-block-theme="<?php echo (int) wp_is_block_theme(); ?>">
<div class="accordion-section-title">
<span class="preview-notice">
<h2 class="preview-notice">
<?php
/* translators: %s: The site/panel title in the Customizer. */
printf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name', 'display' ) . '</strong>' );
?>
</span>
</h2>
<button type="button" class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text">
<?php
/* translators: Hidden accessibility text. */
Expand Down
8 changes: 1 addition & 7 deletions src/wp-admin/includes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -980,6 +980,7 @@ function upgrade_101() {
*
* @ignore
* @since 1.2.0
* @since 6.8.0 User passwords are no longer hashed with md5.
*
* @global wpdb $wpdb WordPress database abstraction object.
*/
Expand All @@ -995,13 +996,6 @@ function upgrade_110() {
}
}

$users = $wpdb->get_results( "SELECT ID, user_pass from $wpdb->users" );
foreach ( $users as $row ) {
if ( ! preg_match( '/^[A-Fa-f0-9]{32}$/', $row->user_pass ) ) {
$wpdb->update( $wpdb->users, array( 'user_pass' => md5( $row->user_pass ) ), array( 'ID' => $row->ID ) );
}
}

// Get the GMT offset, we'll use that later on.
$all_options = get_alloptions_110();

Expand Down
3 changes: 1 addition & 2 deletions src/wp-content/themes/twentyeleven/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ function twentyeleven_header_style() {
#site-title,
#site-description {
position: absolute;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
}
<?php
// If the user has set a custom color for the text, use that.
Expand Down
6 changes: 3 additions & 3 deletions src/wp-content/themes/twentyeleven/inc/theme-customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
value.bind( function( to ) {
if ( 'blank' === to ) {
$( '#site-title, #site-title a, #site-description' ).css( {
'clip': 'rect(1px, 1px, 1px, 1px)',
'clip-path': 'inset(50%)',
'position': 'absolute'
} );
} else {
$( '#site-title, #site-title a, #site-description' ).css( {
'clip': 'auto',
'clip-path': 'none',
'color': to,
'position': 'relative'
} );
}
} );
} );
} )( jQuery );
} )( jQuery );
10 changes: 3 additions & 7 deletions src/wp-content/themes/twentyeleven/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,7 @@ a:hover {
.assistive-text,
.screen-reader-text {
position: absolute !important;
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
overflow: hidden;
height: 1px;
width: 1px;
Expand All @@ -515,7 +514,6 @@ a.assistive-text:focus,
.screen-reader-text:focus {
background-color: #f1f1f1;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
clip-path: none;
color: #21759b;
display: block;
Expand Down Expand Up @@ -747,8 +745,7 @@ a.assistive-text:focus,
border-bottom: none;
}
.blog .sticky .entry-header .entry-meta {
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
position: absolute !important;
}
.entry-title,
Expand Down Expand Up @@ -1445,8 +1442,7 @@ section.featured-post .hentry {
margin: 0;
}
section.featured-post .entry-meta {
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
position: absolute !important;
}

Expand Down
2 changes: 1 addition & 1 deletion src/wp-content/themes/twentyfifteen/inc/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function twentyfifteen_header_style() {
?>
.site-title,
.site-description {
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
position: absolute;
}
<?php endif; ?>
Expand Down
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentyfifteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ a:focus {
/* Text meant only for screen readers */
.says,
.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute !important;
Expand Down Expand Up @@ -1199,7 +1199,7 @@ a:focus {
}

.site .skip-link:focus {
clip: auto;
clip-path: none;
height: auto;
left: 6px;
top: 7px;
Expand Down
3 changes: 1 addition & 2 deletions src/wp-content/themes/twentyfourteen/inc/custom-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ function twentyfourteen_header_style() {
?>
.site-title,
.site-description {
clip: rect(1px 1px 1px 1px); /* IE7 */
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
position: absolute;
}
<?php
Expand Down
6 changes: 3 additions & 3 deletions src/wp-content/themes/twentyfourteen/js/customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
value.bind( function( to ) {
if ( 'blank' === to ) {
$( '.site-title, .site-description' ).css( {
'clip': 'rect(1px, 1px, 1px, 1px)',
'clip-path': 'inset(50%)',
'position': 'absolute'
} );
} else {
$( '.site-title, .site-description' ).css( {
'clip': 'auto',
'clip-path': 'none',
'position': 'static'
} );

Expand All @@ -35,4 +35,4 @@
}
} );
} );
} )( jQuery );
} )( jQuery );
4 changes: 2 additions & 2 deletions src/wp-content/themes/twentyfourteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ div.wp-caption.alignright .wp-caption-text {
/* Assistive text */

.screen-reader-text {
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
overflow: hidden;
position: absolute !important;
height: 1px;
Expand All @@ -731,7 +731,7 @@ div.wp-caption.alignright .wp-caption-text {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto;
clip-path: none;
color: #21759b;
display: block;
font-size: 14px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Text meant only for screen readers. */
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand All @@ -15,7 +14,6 @@
background-color: $color__background-screen;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
clip-path: none;
color: $color__text-screen;
display: block;
Expand Down
2 changes: 0 additions & 2 deletions src/wp-content/themes/twentynineteen/style-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,6 @@ body.page .main-navigation {
/* Text meant only for screen readers. */
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand All @@ -3632,7 +3631,6 @@ body.page .main-navigation {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
clip-path: none;
color: #21759b;
display: block;
Expand Down
2 changes: 0 additions & 2 deletions src/wp-content/themes/twentynineteen/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3616,7 +3616,6 @@ body.page .main-navigation {
/* Text meant only for screen readers. */
.screen-reader-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
Expand All @@ -3632,7 +3631,6 @@ body.page .main-navigation {
background-color: #f1f1f1;
border-radius: 3px;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
clip-path: none;
color: #21759b;
display: block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function twentyseventeen_header_style() {
.site-title,
.site-description {
position: absolute;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
}
<?php
// If the user has set a custom color for the text use that.
Expand Down
Loading

0 comments on commit 57fd8c1

Please sign in to comment.