Opened 16 years ago
Closed 16 years ago
#17279 closed defect (bug) (fixed)
No need to run twentyeleven_url_grabber twice
| Reported by: | duck_ | Owned by: | lancewillett |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | Themes | Version: | 3.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
16 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Always best to be explicit about it. I'd suggest this style instead:
if ( false == ( $link_url = twentyeleven_url_grabber() ) ) { $link_url = get_permalink(); }