#19941 closed enhancement (fixed)
Post template: return string instead of setting then return
Reported by: | niallkennedy | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Performance | Keywords: | has-patch |
Focuses: | Cc: |
Description
In post template if a password is required to access the post a variable is currently set and the variable returned in the next line.
Return the result of get_the_password_form() instead of writing to a variable and immediately returning that variable.
Attachments (1)
Change History (5)
#1
@
12 years ago
I wouldn't really call it "performance" but it is indeed good practice to not create a variable you only use once.
#2
@
12 years ago
- Summary changed from Post template perf: return string instead of setting then return to Post template: return string instead of setting then return
Note: See
TracTickets for help on using
tickets.
return result of password form