[wp-trac] [WordPress Trac] #23661: get_theme_root_uri doesn't get correct theme root for themes in folders registered by register_theme_directory

WordPress Trac noreply at wordpress.org
Sat Mar 2 00:20:16 UTC 2013


#23661: get_theme_root_uri doesn't get correct theme root for themes in folders
registered by register_theme_directory
-----------------------------+------------------------------
 Reporter:  davidosomething  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Themes           |     Version:  3.5.1
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------
Changes (by nacin):

 * type:  defect (bug) => enhancement


Comment:

 There's a comment in get_theme_root_uri() — "Absolute path. Make an
 educated guess. YMMV -- but note the filter below." (As in Your Mileage
 May Vary.) This isn't a bug, it's a known thing. There's no way for us to
 know the URL of such a theme directory, when it is outside all other known
 directories.

 One thing we can do — something I've not yet bothered to do, but have
 thought about it — is add a second, optional URL argument to
 register_theme_directory().

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


More information about the wp-trac mailing list