[wp-trac] [WordPress Trac] #30693: feed-rss2.php redundancy

WordPress Trac noreply at wordpress.org
Fri Dec 12 17:29:31 UTC 2014


#30693: feed-rss2.php redundancy
--------------------------+-----------------------------
 Reporter:  clodromanean  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.0.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 In feed-rss2.php there is the following code segment starting on line 90:

 <?php if (get_option('rss_use_excerpt')) : ?>
                 <description><![CDATA[<?php the_excerpt_rss();
 ?>]]></description>
 <?php else : ?>
                 <description><![CDATA[<?php the_excerpt_rss();
 ?>]]></description>

 The if and else actions are the same. The statement after the else should
 be something else, or if unnecessary, should be removed.

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


More information about the wp-trac mailing list