[wp-trac] [WordPress Trac] #39048: undefined return array var being passed to wp_parse_str

WordPress Trac noreply at wordpress.org
Sun Dec 4 16:57:38 UTC 2016


#39048: undefined return array var being passed to wp_parse_str
--------------------------+------------------------------
 Reporter:  pbearne       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by adamsilverstein):

 @pbearne Thanks for the patch. I'm not certain I understand what issue
 this is resolving. Does not setting these arrays beforehand cause a PHP
 warning or error? A unit test demonstrating that would be immensely
 helpful here.

 Note that generally [https://make.wordpress.org/core/handbook/contribute
 /code-refactoring/ code refactoring should not be done just because we
 can].

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


More information about the wp-trac mailing list