[wp-trac] [WordPress Trac] #44088: Merged two if into single

WordPress Trac noreply at wordpress.org
Tue May 15 11:09:22 UTC 2018


#44088: Merged two if into single
-------------------------+-------------------------------------
 Reporter:  rnaby        |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Taxonomy     |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch needs-testing
  Focuses:  template     |
-------------------------+-------------------------------------
 In `get_the_term_list` function there is no need to check with two if
 conditions. As at line `1246` of the same file inside `get_the_terms`
 function it is returning `false` when the `$terms` is empty then there is
 no need to check it again in `get_the_term_list` I think.

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


More information about the wp-trac mailing list