#44840 closed enhancement (fixed)
Don't assign to a variable inside if statement in get_post_format()
Reported by: | Mirucon | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | minor | Version: | |
Component: | Post Formats | Keywords: | has-patch needs-testing commit |
Focuses: | coding-standards | Cc: |
Description
Currently in the get_post_format() function, there's variable assign inside if statement. It is not a really good practice since assigning to a variable inside could confuse people as it looks like a mistake of the comparison operator. This patch will assign to a new variable just before the line of if().
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
In 43592: