diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/customize/class-wp-customize-site-icon-control.php --- a/wp/wp-includes/customize/class-wp-customize-site-icon-control.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/customize/class-wp-customize-site-icon-control.php Fri Sep 05 18:40:08 2025 +0200 @@ -66,11 +66,47 @@
- <?php esc_attr_e( 'Preview as a browser icon' ); ?> + {{
+									data.attachment.alt ?
+										wp.i18n.sprintf(
+											<?php
+											/* translators: %s: The selected image alt text. */
+											echo wp_json_encode( __( 'Browser icon preview: Current image: %s' ) );
+											?>
+											,
+											data.attachment.alt
+										) :
+										wp.i18n.sprintf(
+											<?php
+											/* translators: %s: The selected image filename. */
+											echo wp_json_encode( __( 'Browser icon preview: The current image has no alternative text. The file name is: %s' ) );
+											?>
+											,
+											data.attachment.filename
+										)
+								}}
- + - <?php esc_attr_e( 'Preview as an app icon' ); ?> + {{
+							data.attachment.alt ?
+								wp.i18n.sprintf(
+									<?php
+									/* translators: %s: The selected image alt text. */
+									echo wp_json_encode( __( 'App icon preview: Current image: %s' ) )
+									?>
+									,
+									data.attachment.alt
+								) :
+								wp.i18n.sprintf(
+									<?php
+									/* translators: %s: The selected image filename. */
+									echo wp_json_encode( __( 'App icon preview: The current image has no alternative text. The file name is: %s' ) );
+									?>
+									,
+									data.attachment.filename
+								)
+						}} <# } #>