Attachments (1)
Change History (9)
#4
@
16 years ago
Both of these changes make the code less readable.
(Not a task, at best an enhancement.)
#6
@
16 years ago
472 while ( false === ( $theme_roots = get_site_transient( 'theme_roots' ) ) ) 473 get_themes(); // update transient
Isn't this kinda risky? If something causes the transient getter or setter to fail, then you're stuck in an infinite loop.
#7
follow-up:
↓ 8
@
16 years ago
- Milestone Awaiting Review
- Resolution → wontfix
- Status new → closed
I agree that this makes the code less readable. Cleverer code is not always better code.
#8
in reply to: ↑ 7
@
16 years ago
Replying to filosofo:
472 while ( false === ( $theme_roots = get_site_transient( 'theme_roots' ) ) ) 473 get_themes(); // update transientIsn't this kinda risky? If something causes the transient getter or setter to fail, then you're stuck in an infinite loop.
True, which would result in same: a failt of get_theme_roots() (as w/o the patch).
---
Replying to scribu:
I agree that this makes the code less readable. Cleverer code is not always better code.
Code is never clever.
Less code is better code.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
@hakre: Only the lead devs should change something to task (blessed), as it means it has been blessed by the leads.