[wp-trac] [WordPress Trac] #38465: `hide_empty` is not sanitized correctly in terms controller

WordPress Trac noreply at wordpress.org
Sun Oct 23 19:10:05 UTC 2016


#38465: `hide_empty` is not sanitized correctly in terms controller
--------------------------+-----------------------------
 Reporter:  websupporter  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The terms controller currently does not sanitize the boolean `hide_empty`.
 So, if you do `categories/hide_empty=false`, you will hide them, because
 the `(bool) "false"` is `true`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38465>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list