[wp-trac] [WordPress Trac] #20103: Rewrite get_themes() and other enemies of sanity

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 28 01:29:00 UTC 2012


#20103: Rewrite get_themes() and other enemies of sanity
------------------------------+------------------
 Reporter:  nacin             |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.4
Component:  Themes            |     Version:  1.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by nacin):

 In [20001]:
 {{{
 #!CommitTicketReference repository="" revision="20001"
 Always return an absolute path in get_raw_theme_root() and
 get_theme_roots().

 These functions were changed in [15641] to avoid any calculations when
 only one theme directory is registered. However, the short-circuit ended
 up being relative to WP_CONTENT_DIR, rather than absolute. This broke
 situations where theme roots are outside the content directory
 (technically allowed), and made return values inconsistent, as when
 multiple roots were registered, absolute paths were always returned.

 fixes #17597. see #20103. see #14911.
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20103#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list