Remove the translation loading.#22245
Merged
leonidasmi merged 3 commits intotrunkfrom Jan 20, 2026
Merged
Conversation
Pull Request Test Coverage Report for Build ff91b585ee46a916601f5f9e6cc1e564a5cfe186Details
💛 - Coveralls |
igorschoester
suggested changes
May 12, 2025
Contributor
igorschoester
left a comment
There was a problem hiding this comment.
AT 🚫
I got a fatal activating the plugin. We still call this function here.
…e-load_plugin_textdomain-from-all-our-plugins-since-its-now-redundant-for-all-add-ons-too-since-wp-68
leonidasmi
approved these changes
Jan 20, 2026
| $mu_path = str_replace( '\\', '/', WPMU_PLUGIN_DIR ); | ||
|
|
||
| if ( stripos( $wpseo_path, $mu_path ) !== false ) { | ||
| load_muplugin_textdomain( 'wordpress-seo', dirname( WPSEO_BASENAME ) . '/languages/' ); |
Contributor
There was a problem hiding this comment.
As per the relevant dev note, load_muplugin_textdomain() is also not needed anymore. I'm adding a technical decision note in the PR, for future reference (plus some test instructions for it)
| require_once WPSEO_PATH . 'inc/wpseo-functions.php'; | ||
| require_once WPSEO_PATH . 'inc/class-wpseo-installation.php'; | ||
|
|
||
| wpseo_load_textdomain(); // Make sure we have our translations available for the defaults. |
Contributor
There was a problem hiding this comment.
Only on a second glance I was able to realize what this was for (aka, being able to have translations available for the translate_defaults() function of wpseo options). I have added an explicit step about it in the test instructions.
19 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Summary
This PR can be summarized in the following changelog entry:
load_plugin_textdomain()calls.Relevant technical choices:
the same goes for load_muplugin_textdomain().. That's why we remove that one as well.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
mu-plugin use
yoast-seo-loader.phpinwp-content/mu-pluginswith the following code:Translated option defaults
wpseo-titlesentrytitle-404-wpseotitle is notPage not foundbut its translation.Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
UI changes
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.Documentation
Quality assurance
Innovation
innovationlabel.Fixes #