--- a/wp/wp-includes/class-wp-customize-manager.php Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/class-wp-customize-manager.php Fri Sep 05 18:52:52 2025 +0200
@@ -454,7 +454,7 @@
}
if ( ! $message ) {
- $message = __( 'Something went wrong.' );
+ $message = __( 'An error occurred while customizing. Please refresh the page and try again.' );
}
if ( $this->messenger_channel ) {
@@ -3334,11 +3334,16 @@
return null;
}
- return array(
- 'id' => $lock_user->ID,
- 'name' => $lock_user->display_name,
- 'avatar' => get_avatar_url( $lock_user->ID, array( 'size' => 128 ) ),
+ $user_details = array(
+ 'id' => $lock_user->ID,
+ 'name' => $lock_user->display_name,
);
+
+ if ( get_option( 'show_avatars' ) ) {
+ $user_details['avatar'] = get_avatar_url( $lock_user->ID, array( 'size' => 128 ) );
+ }
+
+ return $user_details;
}
/**
@@ -4307,8 +4312,10 @@
<script type="text/html" id="tmpl-customize-changeset-locked-notification">
<li class="notice notice-{{ data.type || 'info' }} {{ data.containerClasses || '' }}" data-code="{{ data.code }}" data-type="{{ data.type }}">
- <div class="notification-message customize-changeset-locked-message">
- <img class="customize-changeset-locked-avatar" src="{{ data.lockUser.avatar }}" alt="{{ data.lockUser.name }}" />
+ <div class="notification-message customize-changeset-locked-message {{ data.lockUser.avatar ? 'has-avatar' : '' }}">
+ <# if ( data.lockUser.avatar ) { #>
+ <img class="customize-changeset-locked-avatar" src="{{ data.lockUser.avatar }}" alt="{{ data.lockUser.name }}" />
+ <# } #>
<p class="currently-editing">
<# if ( data.message ) { #>
{{{ data.message }}}
@@ -5203,9 +5210,10 @@
array(
'label' => __( 'Site Icon' ),
'description' => sprintf(
- /* translators: %s: Site Icon size in pixels. */
- '<p>' . __( 'The Site Icon is what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. It should be square and at least %s pixels.' ) . '</p>',
- '<code>512 × 512</code>'
+ /* translators: 1: pixel value for icon size. 2: pixel value for icon size. */
+ '<p>' . __( 'The Site Icon is what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. It should be square and at least <code>%1$s by %2$s</code> pixels.' ) . '</p>',
+ 512,
+ 512
),
'section' => 'title_tagline',
'priority' => 60,
@@ -6141,8 +6149,7 @@
* This method exists because the partial object and context data are passed
* into a partial's render_callback so we cannot use get_custom_logo() as
* the render_callback directly since it expects a blog ID as the first
- * argument. When WP no longer supports PHP 5.3, this method can be removed
- * in favor of an anonymous function.
+ * argument.
*
* @see WP_Customize_Manager::register_controls()
*