[wp-trac] [WordPress Trac] #37149: PHP Warning raised from plugin.php on line 235

WordPress Trac noreply at wordpress.org
Wed Jun 22 17:14:06 UTC 2016


#37149: PHP Warning raised from plugin.php on line 235
--------------------------+----------------------
 Reporter:  nodeleaf      |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Plugins       |     Version:  trunk
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------

Comment (by DrewAPicture):

 Replying to [comment:2 nodeleaf]:
 > It was in the theme:
 >
 > ''add_filter('the_generator','return "";');''
 >
 > Replaced by:
 >
 > ''add_filter('the_generator',create_function('$a','return "";'));''
 >
 > Thank you for your suggestion.

 FYI, core has utility functions you can use as callbacks in this sort of
 situation ;)

 {{{#!php
 <?php
 add_filter( 'the_generator', '__return_empty_string' );
 }}}

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


More information about the wp-trac mailing list