Yoast / duplicate-post

Yoast Duplicate Post plugin for WordPress
https://yoast.com
GNU General Public License v2.0
46 stars 36 forks source link

Rely on just-in-time translation loading #368

Closed swissspidy closed 4 months ago

swissspidy commented 4 months ago

Context

The plugin was loading translations too early on plugins_loaded. Plugins should wait until init to ensure the current user has been set up, so that the current user's locale can be respected.

That said, why manually load translations when WordPress can do it for you :-)

Summary

This PR can be summarized in the following changelog entry:

Relevant technical choices:

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

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

Documentation

Quality assurance

Innovation

Fixes #

coveralls commented 4 months ago

Pull Request Test Coverage Report for Build 8914321951

Details


Totals Coverage Status
Change from base Build 8578521436: 0.02%
Covered Lines: 1236
Relevant Lines: 2465

💛 - Coveralls