[wp-trac] [WordPress Trac] #62154: Latest beta Warnings Function load_plugin_textdomain was called incorrectly.

WordPress Trac noreply at wordpress.org
Fri Oct 4 11:42:23 UTC 2024


#62154: Latest beta Warnings Function load_plugin_textdomain was called
incorrectly.
--------------------------+------------------------
 Reporter:  neo2k23       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  I18N          |     Version:  trunk
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |     Focuses:
--------------------------+------------------------

Comment (by neo2k23):

 That would require something like this.

 {{{#!php
 <?php
                 function theme_hide_doing_it_wrong_notice($trigger,
 $function, $message, $version) {
                         if($function == 'load_plugin_textdomain') return
 false;

                         return $trigger;
                 }

                 add_filter( "doing_it_wrong_trigger_error",
 "theme_hide_doing_it_wrong_notice", 10, 4 );
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62154#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list