#44840 closed enhancement (fixed)
Don't assign to a variable inside if statement in get_post_format()
| Reported by: | Mirucon | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Post Formats | Version: | |
| Severity: | minor | Keywords: | has-patch needs-testing commit |
| Cc: | Focuses: | coding-standards |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 43592: