WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51645, comment 1


Ignore:
Timestamp:
10/27/2020 03:21:27 PM (4 months ago)
Author:
davidbaumwald
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51645, comment 1

    initial v1  
    11Welcome to Trac, @kellybleck!  This does indeed look like something that should be investigated.
    22
    3 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.
     3In 5.2, the `$args` parameter was added and made filterable with the `search_form_args` filter.  It looks like the filtered `$args` could unset the `echo` property and throw this notice when `if ( $args['echo'] ) {` is run.
    44
    55My guess is that a simple `isset` sanity check would work here.