[wp-trac] [WordPress Trac] #37544: Remove one-time variable $pieces for terms_clauses

WordPress Trac noreply at wordpress.org
Tue Aug 2 15:23:48 UTC 2016


#37544: Remove one-time variable $pieces for terms_clauses
-------------------------+-----------------------------
 Reporter:  ocean90      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  low          |  Milestone:  Awaiting Review
Component:  Taxonomy     |    Version:
 Severity:  minor        |   Keywords:  has-patch
  Focuses:               |
-------------------------+-----------------------------
 `$pieces` is since [28736] only used in `compact()`. Having the extra
 variable makes the current code harder to read and can also confuse IDEs
 because they can't correctly evaluate whether a variable is used or not.

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


More information about the wp-trac mailing list