Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2e84644
Fix: Replace deprecated wp.updates.l10n.updating with wp.i18n.__
manishdhorepatil-art Feb 10, 2026
f00cd1b
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 10, 2026
f9275df
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 11, 2026
82ec88f
pr comments resolved
manishdhorepatil-art Feb 11, 2026
2bf6bf9
Merge branch '64619-deprecated-wp-updates-l10n' of https://github.com…
manishdhorepatil-art Feb 11, 2026
9edb3aa
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 12, 2026
8ee5f47
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 12, 2026
67ab151
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 12, 2026
42840a7
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 12, 2026
93d8f81
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 12, 2026
05909b3
Apply suggestion from @westonruter
manishdhorepatil-art Feb 13, 2026
2c024ca
resolved comments
manishdhorepatil-art Feb 13, 2026
551f045
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 13, 2026
db2ee45
Merge branch '64619-deprecated-wp-updates-l10n' of https://github.com…
manishdhorepatil-art Feb 13, 2026
b0bb009
Merge branch '64619-deprecated-wp-updates-l10n' of https://github.com…
manishdhorepatil-art Feb 13, 2026
ff85290
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 13, 2026
d0c896c
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 13, 2026
4977c8c
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 13, 2026
51bbbe3
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 16, 2026
5b7cfda
Merge branch 'trunk' into 64619-deprecated-wp-updates-l10n
manishdhorepatil-art Feb 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions src/js/_enqueues/wp/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ window.wp = window.wp || {};
( function($) {

// Set up our namespace...
var themes, l10n;
var themes;
themes = wp.themes = wp.themes || {};

// Store the theme data and settings for organized and quick access.
// themes.data.settings, themes.data.themes, themes.data.l10n.
themes.data = _wpThemeSettings;
l10n = themes.data.l10n;

// Shortcut for isInstall check.
themes.isInstall = !! themes.data.settings.isInstall;
Expand Down Expand Up @@ -119,7 +118,7 @@ themes.view.Appearance = wp.Backbone.View.extend({
view.render();
this.searchContainer
.find( '.search-box' )
.append( $.parseHTML( '<label for="wp-filter-search-input">' + l10n.search + '</label>' ) )
.append( $.parseHTML( '<label for="wp-filter-search-input">' + wp.i18n.__( themes.data.l10n.search ) + '</label>' ) )
Comment thread
manishdhorepatil-art marked this conversation as resolved.
Outdated
.append( view.el );

this.searchContainer.on( 'submit', function( event ) {
Expand Down Expand Up @@ -973,9 +972,9 @@ themes.view.Preview = themes.view.Details.extend({
collapse: function( event ) {
var $button = $( event.currentTarget );
if ( 'true' === $button.attr( 'aria-expanded' ) ) {
$button.attr({ 'aria-expanded': 'false', 'aria-label': l10n.expandSidebar });
$button.attr({ 'aria-expanded': 'false', 'aria-label': wp.i18n.__( themes.data.l10n.expandSidebar ) });
} else {
$button.attr({ 'aria-expanded': 'true', 'aria-label': l10n.collapseSidebar });
$button.attr({ 'aria-expanded': 'true', 'aria-label': wp.i18n.__( themes.data.l10n.collapseSidebar ) });
}

this.$el.toggleClass( 'collapsed' ).toggleClass( 'expanded' );
Expand Down Expand Up @@ -1221,7 +1220,7 @@ themes.view.Themes = wp.Backbone.View.extend({

// 'Add new theme' element shown at the end of the grid.
if ( ! themes.isInstall && themes.data.settings.canInstall ) {
this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span aria-hidden="true"></span></div><h2 class="theme-name">' + l10n.addNew + '</h2></a></div>' );
this.$el.append( '<div class="theme add-new-theme"><a href="' + themes.data.settings.installURI + '"><div class="theme-screenshot"><span aria-hidden="true"></span></div><h2 class="theme-name">' + wp.i18n.__( themes.data.l10n.addNew ) + '</h2></a></div>' );
}

this.parent.page++;
Expand Down Expand Up @@ -1277,7 +1276,7 @@ themes.view.Themes = wp.Backbone.View.extend({
$modal.find( '.notice-warning' )
.removeClass( 'notice-large' )
.addClass( 'updating-message' )
.find( 'p' ).text( wp.updates.l10n.updating );
.find( 'p' ).text( wp.i18n.__( 'Updating...' ) );
} else if ( $card.find( '.notice-error' ).length ) {
$modal.find( '.notice-warning' ).remove();
}
Expand Down Expand Up @@ -1356,9 +1355,9 @@ themes.view.Themes = wp.Backbone.View.extend({
// Dispatch audible search results feedback message.
announceSearchResults: function( count ) {
if ( 0 === count ) {
wp.a11y.speak( l10n.noThemesFound );
wp.a11y.speak( wp.i18n.__( themes.data.l10n.noThemesFound ) );
} else {
wp.a11y.speak( l10n.themesFound.replace( '%d', count ) );
wp.a11y.speak( wp.i18n.sprintf( wp.i18n.__( themes.data.l10n.themesFound ), count ) );
}
}
});
Expand Down Expand Up @@ -1676,7 +1675,7 @@ themes.view.Installer = themes.view.Appearance.extend({
this.listenTo( this.collection, 'query:fail', function() {
$( 'body' ).removeClass( 'loading-content' );
$( '.theme-browser' ).find( 'div.error' ).remove();
$( '.theme-browser' ).find( 'div.themes' ).before( '<div class="notice notice-error"><p>' + l10n.error + '</p><p><button class="button try-again">' + l10n.tryAgain + '</button></p></div>' );
$( '.theme-browser' ).find( 'div.themes' ).before( '<div class="notice notice-error"><p>' + wp.i18n.sprintf( wp.i18n.__( themes.data.l10n.error ), 'https://wordpress.org/support/forums/' ) + '</p><p><button class="button try-again">' + wp.i18n.__( themes.data.l10n.tryAgain ) + '</button></p></div>' );
$( '.theme-browser .error .try-again' ).on( 'click', function( e ) {
e.preventDefault();
$( 'input.wp-filter-search' ).trigger( 'input' );
Expand Down Expand Up @@ -1808,7 +1807,7 @@ themes.view.Installer = themes.view.Appearance.extend({
}

if ( ! tags ) {
wp.a11y.speak( l10n.selectFeatureFilter );
wp.a11y.speak( wp.i18n.__( themes.data.l10n.selectFeatureFilter ) );
Comment thread
manishdhorepatil-art marked this conversation as resolved.
Outdated
return;
}

Expand Down
28 changes: 13 additions & 15 deletions src/wp-admin/theme-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,30 +54,28 @@
'adminUrl' => parse_url( self_admin_url(), PHP_URL_PATH ),
),
'l10n' => array(
'addNew' => __( 'Add Theme' ),
'search' => __( 'Search Themes' ),
'upload' => __( 'Upload Theme' ),
'back' => __( 'Back' ),
'error' => sprintf(
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
__( 'https://wordpress.org/support/forums/' )
),
'tryAgain' => __( 'Try Again' ),
'addNew' => 'Add Theme',
'search' => 'Search Themes',
'upload' => 'Upload Theme',
'back' => 'Back',
/* translators: %s: Support forums URL. */
'error' => 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.',
'tryAgain' => 'Try Again',
/* translators: %d: Number of themes. */
'themesFound' => __( 'Number of Themes found: %d' ),
'noThemesFound' => __( 'No themes found. Try a different search.' ),
'collapseSidebar' => __( 'Collapse Sidebar' ),
'expandSidebar' => __( 'Expand Sidebar' ),
'themesFound' => 'Number of Themes found: %d',
'noThemesFound' => 'No themes found. Try a different search.',
'collapseSidebar' => 'Collapse Sidebar',
'expandSidebar' => 'Expand Sidebar',
/* translators: Hidden accessibility text. */
'selectFeatureFilter' => __( 'Select one or more Theme features to filter by' ),
'selectFeatureFilter' => 'Select one or more Theme features to filter by',
),
Comment thread
manishdhorepatil-art marked this conversation as resolved.
Outdated
'installedThemes' => array_keys( $installed_themes ),
'activeTheme' => get_stylesheet(),
)
);

wp_enqueue_script( 'theme' );
wp_set_script_translations( 'theme' );
wp_enqueue_script( 'updates' );

if ( $tab ) {
Expand Down
9 changes: 5 additions & 4 deletions src/wp-admin/themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,17 +231,18 @@
'adminUrl' => parse_url( admin_url(), PHP_URL_PATH ),
),
'l10n' => array(
'addNew' => __( 'Add Theme' ),
'search' => __( 'Search installed themes' ),
'addNew' => 'Add Theme',
'search' => 'Search installed themes',
/* translators: %d: Number of themes. */
'themesFound' => __( 'Number of Themes found: %d' ),
'noThemesFound' => __( 'No themes found. Try a different search.' ),
'themesFound' => 'Number of Themes found: %d',
'noThemesFound' => 'No themes found. Try a different search.',
),
Comment thread
manishdhorepatil-art marked this conversation as resolved.
Outdated
)
);

add_thickbox();
wp_enqueue_script( 'theme' );
wp_set_script_translations( 'theme' );
wp_enqueue_script( 'updates' );

require_once ABSPATH . 'wp-admin/admin-header.php';
Expand Down
Loading