[wp-trac] [WordPress Trac] #51645: Undefined index: echo in core files

WordPress Trac noreply at wordpress.org
Tue Oct 27 15:16:12 UTC 2020


#51645: Undefined index: echo in core files
--------------------------+------------------------------
 Reporter:  kellybleck    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  5.5
 Severity:  trivial       |  Resolution:
 Keywords:                |     Focuses:  template
--------------------------+------------------------------
Changes (by davidbaumwald):

 * focuses:   => template
 * version:  5.5.1 => 5.5


Comment:

 Welcome to Trac, @kellybleck!  This does indeed look like something that
 should be investigated.

 In 5.5, the `$args` parameter was added and made filterable.  It looks
 like the filtered `$args` could unset the `echo` property and throw this
 notice when `if ( $args['echo'] ) {` is run.

 My guess is that a simple `isset` sanity check would work here.

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


More information about the wp-trac mailing list