Skip to content

Commit

Permalink
Update to WordPress 6.6.2. For more information, see https://wordpres…
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantheon Automation committed Sep 10, 2024
1 parent 76c981f commit a7140e5
Show file tree
Hide file tree
Showing 81 changed files with 2,794 additions and 183 deletions.
27 changes: 26 additions & 1 deletion wp-admin/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,32 @@

<div class="about__section changelog has-subtle-background-color">
<div class="column">
<h2><?php _e( 'Maintenance and Security Release' ); ?></h2>
<h2><?php _e( 'Maintenance and Security Releases' ); ?></h2>
<p>
<?php
printf(
/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n(
'<strong>Version %1$s</strong> addressed %2$s bug.',
'<strong>Version %1$s</strong> addressed %2$s bugs.',
26
),
'6.6.2',
'26'
);
?>
<?php
printf(
/* translators: %s: HelpHub URL. */
__( 'For more information, see <a href="%s">the release notes</a>.' ),
sprintf(
/* translators: %s: WordPress version. */
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
sanitize_title( '6.6.2' )
)
);
?>
</p>
<p>
<?php
printf(
Expand Down
6 changes: 5 additions & 1 deletion wp-admin/css/about-rtl.css
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,14 @@
.about__container h2,
.about__container h3,
.about__container h4 {
text-wrap: balance;
text-wrap: pretty;
color: inherit;
}

.about__container :is(h1, h2, h3, h4):lang(en) {
text-wrap: balance;
}

.about__container p {
text-wrap: pretty;
}
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/about-rtl.min.css

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion wp-admin/css/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,14 @@
.about__container h2,
.about__container h3,
.about__container h4 {
text-wrap: balance;
text-wrap: pretty;
color: inherit;
}

.about__container :is(h1, h2, h3, h4):lang(en) {
text-wrap: balance;
}

.about__container p {
text-wrap: pretty;
}
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/css/about.min.css

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions wp-admin/customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,20 @@
}
}

$url = ! empty( $_REQUEST['url'] ) ? sanitize_text_field( $_REQUEST['url'] ) : '';
$return = ! empty( $_REQUEST['return'] ) ? sanitize_text_field( $_REQUEST['return'] ) : '';
$autofocus = ! empty( $_REQUEST['autofocus'] ) ? sanitize_text_field( $_REQUEST['autofocus'] ) : '';
$url = ! empty( $_REQUEST['url'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['url'] ) ) : '';
$return = ! empty( $_REQUEST['return'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['return'] ) ) : '';
$autofocus = ! empty( $_REQUEST['autofocus'] ) && is_array( $_REQUEST['autofocus'] )
? array_map( 'sanitize_text_field', wp_unslash( $_REQUEST['autofocus'] ) )
: array();

if ( ! empty( $url ) ) {
$wp_customize->set_preview_url( wp_unslash( $url ) );
$wp_customize->set_preview_url( $url );
}
if ( ! empty( $return ) ) {
$wp_customize->set_return_url( wp_unslash( $return ) );
$wp_customize->set_return_url( $return );
}
if ( ! empty( $autofocus ) && is_array( $autofocus ) ) {
$wp_customize->set_autofocus( wp_unslash( $autofocus ) );
if ( ! empty( $autofocus ) ) {
$wp_customize->set_autofocus( $autofocus );
}

$registered = $wp_scripts->registered;
Expand Down
12 changes: 12 additions & 0 deletions wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1670,6 +1670,18 @@ public static function get_sizes() {
'raw' => 0,
);

// If the directory does not exist, skip checking it, as it will skew the other results.
if ( ! is_dir( $path ) ) {
$all_sizes[ $name ] = array(
'path' => $path,
'raw' => 0,
'size' => __( 'The directory does not exist.' ),
'debug' => 'directory not found',
);

continue;
}

if ( microtime( true ) - WP_START_TIMESTAMP < $max_execution_time ) {
if ( 'wordpress_size' === $name ) {
$dir_size = recurse_dirsize( $path, $exclude, $max_execution_time );
Expand Down
6 changes: 3 additions & 3 deletions wp-admin/includes/meta-boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ function link_xfn_meta_box( $link ) {
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check( 'friendship', 'friend' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friend' ); ?>
</label>
<label for="friendship">
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn (friendship relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn (friendship relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
</label>
</fieldset></td>
</tr>
Expand Down Expand Up @@ -1405,7 +1405,7 @@ function link_xfn_meta_box( $link ) {
<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check( 'geographical', 'neighbor' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'neighbor' ); ?>
</label>
<label for="geographical">
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn (geographical relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn (geographical relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
</label>
</fieldset></td>
</tr>
Expand Down Expand Up @@ -1434,7 +1434,7 @@ function link_xfn_meta_box( $link ) {
<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check( 'family', 'spouse' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'spouse' ); ?>
</label>
<label for="family">
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn (family relation): http://gmpg.org/xfn/ */ _x( 'none', 'Type of relation' ); ?>
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn (family relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
</label>
</fieldset></td>
</tr>
Expand Down
12 changes: 7 additions & 5 deletions wp-admin/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
},

// Defines search element container.
searchContainer: $( '.search-form .search-box' ),
searchContainer: $( '.search-form' ),

// Search input and view
// for current theme collection.
Expand All @@ -118,11 +118,13 @@ themes.view.Appearance = wp.Backbone.View.extend({
// Render and append after screen title.
view.render();
this.searchContainer
.find( '.search-box' )
.append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) )
.append( view.el )
.on( 'submit', function( event ) {
event.preventDefault();
});
.append( view.el );

this.searchContainer.on( 'submit', function( event ) {
event.preventDefault();
});
},

// Checks when the user gets close to the bottom
Expand Down
2 changes: 1 addition & 1 deletion wp-admin/js/theme.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-content/mu-plugins/pantheon-mu-plugin/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @pantheon-systems/cms-platform
* @pantheon-systems/site-experience
Loading

0 comments on commit a7140e5

Please sign in to comment.