close
Skip to content

Update _get_plugin_data_markup_translate() to call load_plugin_textdomain() only when needed#4298

Closed
ocean90 wants to merge 1 commit into
WordPress:trunkfrom
ocean90:fix/textdomain-loading-plugins-page
Closed

Update _get_plugin_data_markup_translate() to call load_plugin_textdomain() only when needed#4298
ocean90 wants to merge 1 commit into
WordPress:trunkfrom
ocean90:fix/textdomain-loading-plugins-page

Conversation

@ocean90
Copy link
Copy Markdown
Member

@ocean90 ocean90 commented Apr 4, 2023

Trac ticket:


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

// Translate fields.
if ( $translate ) {
$textdomain = $plugin_data['TextDomain'];
if ( $textdomain ) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative in pseudo:

$textdomain && ( ! registry->exists( $textdomain ) ) || ( registry->exists( $textdomain ) && registry->has( $textdomain ) ) ) && ! is_textdomain_loaded()

@ocean90 ocean90 closed this May 12, 2026
@ocean90 ocean90 deleted the fix/textdomain-loading-plugins-page branch May 12, 2026 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant