Opened 7 years ago
Closed 7 years ago
#44071 closed defect (bug) (duplicate)
Unreachable condition in elseIF
Reported by: | akshayar | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.9.5 |
Component: | General | Keywords: | needs-patch |
Focuses: | Cc: |
Description (last modified by )
There is duplicate 'is_post_type_archive' conditional check-in 'elseif' condition. You can check 'feed_links_extra()' function located at 'general-template.php' file under 'wp-includes' directory conatains,
This block will never get executed.
Attachments (2)
Change History (5)
#2
@
7 years ago
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.
Note: See
TracTickets for help on using
tickets.
The first
elseif
is here: https://github.com/WordPress/WordPress/blob/e76593098293fd1e87d666bd3acf339b46fd5110/wp-includes/general-template.php#L2763