[wp-trac] [WordPress Trac] #43860: Dead code in feed_links_extra()

WordPress Trac noreply at wordpress.org
Wed Apr 25 17:34:26 UTC 2018


#43860: Dead code in feed_links_extra()
------------------------------+-----------------------------
 Reporter:  dmenard           |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Feeds             |    Version:
 Severity:  trivial           |   Keywords:
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 Probably a detail, but in {{{general-template.php}}}, function
 [https://core.trac.wordpress.org/browser/trunk/src/wp-includes/general-
 template.php#L2799 feed_links_extra()] contains two {{{elseif}}}
 statements with the same condition {{{if ( is_post_type_archive() )}}}.

 The second one can't be reached and can be considered as dead code.

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


More information about the wp-trac mailing list