WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 9 months ago

#44088 new enhancement

Merged two if into single

Reported by: rnaby Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords: has-patch needs-testing
Focuses: template Cc:
PR Number:

Description

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.

Attachments (1)

44088.diff (591 bytes) - added by rnaby 17 months ago.
The patch for the ticket.

Download all attachments as: .zip

Change History (2)

@rnaby
17 months ago

The patch for the ticket.

#1 @pento
9 months ago

  • Version trunk deleted
Note: See TracTickets for help on using tickets.