Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#30662 closed defect (bug) (wontfix)

verify if $the_['function'] is not an empty string ""

Reported by: kidsguide's profile kidsguide Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Plugins Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Fix for the error on line 214 because $the_['function'] was an empty string ""

Attachments (2)

plugin.php (30.0 KB) - added by kidsguide 11 years ago.
plugin.php.patch (484 bytes) - added by kidsguide 11 years ago.

Download all attachments as: .zip

Change History (7)

@kidsguide
11 years ago

#1 @kidsguide
11 years ago

  • Keywords 2nd-opinion needs-testing has-patch added

#2 @SergeyBiryukov
11 years ago

  • Component changed from General to Plugins
  • Description modified (diff)

Could you please attach an SVN patch rather than a PHP file?

See http://make.wordpress.org/core/handbook/submitting-a-patch/.

Steps to reproduce the issue would also be helpful.

#3 @dd32
11 years ago

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?

#4 @kidsguide
11 years ago

  • Keywords close added; 2nd-opinion needs-testing has-patch removed
  • Resolution set to wontfix
  • Status changed from new to closed

#5 @DrewAPicture
11 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.