[wp-trac] [WordPress Trac] #35513: Ignore all falsy arguments for WP_Comment_Query search argument

WordPress Trac noreply at wordpress.org
Tue Jan 19 02:49:04 UTC 2016


#35513: Ignore all falsy arguments for WP_Comment_Query search argument
--------------------------------------+------------------
 Reporter:  danielbachhuber           |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  4.5
Component:  Comments                  |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------

Comment (by boonebgorges):

 Strict comparison was introduced in [15491], at the same time as the
 search param.

 `WP_Query` handles 's' in a similar way to what's being proposed here. See
 [36278], [28623].

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


More information about the wp-trac mailing list