[wp-trac] [WordPress Trac] #62462: Revert _doing_it_wrong warning when loading translations early
WordPress Trac
noreply at wordpress.org
Mon Nov 18 17:20:37 UTC 2024
#62462: Revert _doing_it_wrong warning when loading translations early
-------------------------------+---------------------
Reporter: TimothyBlynJacobs | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.7.1
Component: I18N | Version: 6.7
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------------+---------------------
Comment (by domainsupport):
We would be in favour of rolling this back.
On some sites (that we monitor closely) our log files are filling up
**so** much that we cannot easily see any genuine errors!
There is a fix out in the wild to use ...
{{{#!php
<?php
add_filter( 'doing_it_wrong_trigger_error', '__return_false' );
}}}
... but this has no effect on some plugins, and we have ''had'' to modify
line 1346 of `/wp-includes/l10n.php` ...
{{{#!php
<?php
if ( true === false && ! doing_action( 'after_setup_theme' ) && !
did_action( 'after_setup_theme' ) ) {
}}}
... in order to prevent this occurring!
Oliver
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62462#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list