Opened 15 years ago
Closed 15 years ago
#17279 closed defect (bug) (fixed)
No need to run twentyeleven_url_grabber twice
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.2 | Priority: | normal |
| Severity: | normal | Version: | 3.2 |
| Component: | Themes | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Just run it once to get the result and if that's false then replace it with the permalink.
Related: #17267
Attachments (1)
Change History (5)
#2
@
15 years ago
I initially did that but personally found it a bit harder to read, but achieves the same result.
Note: See
TracTickets for help on using
tickets.
Always best to be explicit about it. I'd suggest this style instead:
if ( false == ( $link_url = twentyeleven_url_grabber() ) ) { $link_url = get_permalink(); }