#19941 closed enhancement (fixed)
Post template: return string instead of setting then return
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Performance | Version: | |
| Severity: | normal | Keywords: | has-patch |
| 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)
niallkennedy — 16 months ago
I wouldn't really call it "performance" but it is indeed good practice to not create a variable you only use once.
comment:2
niallkennedy — 16 months ago
- Summary changed from Post template perf: return string instead of setting then return to Post template: return string instead of setting then return
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In [19812]:
Note: See
TracTickets for help on using
tickets.

return result of password form