[wp-trac] [WordPress Trac] #44071: Unreachable condition in elseIF

WordPress Trac noreply at wordpress.org
Mon May 14 14:03:49 UTC 2018


#44071: Unreachable condition in elseIF
--------------------------+------------------------------
 Reporter:  akshayar      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.9.5
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------------------

Comment (by akshayar):

 Both blocks of code have a difference in fetching '$post_type_obj' and in
 generating the title. We can add an extra check to validate
 'post_type_obj' and the attached ('feed-link-modified.patch') patch can be
 used.
 As feed link for the archive is working, not changed reference in the
 earlier block.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44071#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list