[wp-trac] [WordPress Trac] #40552: Calling wp_parse_args() early, with $args as empty string, may cause fatal error

WordPress Trac noreply at wordpress.org
Mon Apr 24 15:45:05 UTC 2017


#40552: Calling wp_parse_args() early, with $args as empty string, may cause fatal
error
-------------------------------------+------------------------------
 Reporter:  johnjamesjacoby          |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Formatting               |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  2nd-opinion needs-patch  |     Focuses:
-------------------------------------+------------------------------
Changes (by johnjamesjacoby):

 * keywords:   => 2nd-opinion needs-patch


Comment:

 I've found 28 places in core where `$args = ''` is used as a parameter
 definition. It's theoretically possible calling those functions before
 `formatting.php` is included could also trigger the above fatal error.

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


More information about the wp-trac mailing list