[wp-trac] [WordPress Trac] #30662: verify if $the_['function'] is not an empty string ""

WordPress Trac noreply at wordpress.org
Fri Dec 12 02:02:44 UTC 2014


#30662: verify if $the_['function'] is not an empty string ""
-------------------------------------------------+-------------------------
 Reporter:  kidsguide                            |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Plugins                              |  Review
 Severity:  normal                               |     Version:
 Keywords:  2nd-opinion needs-testing has-patch  |  Resolution:
                                                 |     Focuses:
-------------------------------------------------+-------------------------

Comment (by dd32):

 In general, I think we should leave this in place so  that Developers are
 made aware of their error.

 it's unwise to pass dynamic strings to add_filter/add_action, as it can
 have security implications as well.

 Can you track down why the filter has an empty string as the function
 callback instead perhaps?

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


More information about the wp-trac mailing list