[wp-trac] [WordPress Trac] #29051: get_raw_theme_root : Windows paths

WordPress Trac noreply at wordpress.org
Tue Jul 29 15:24:10 UTC 2014

#29051: get_raw_theme_root : Windows paths
 Reporter:  tivnet        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Themes        |     Version:  3.9.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  template

Comment (by tivnet):

 Replying to [comment:5 SergeyBiryukov]:
 > Replying to [comment:2 tivnet]:
 > > If we assume that the themes can be resided only under the
 `DOCUMENT_ROOT`, all the directories here can be '''stored as relative
 paths'''. Then, the comparison would work, I guess.
 > I think themes currently can be resided outside of `ABSPATH` too. But if
 the registered directory is under `ABSPATH`, we should probably store the
 relative path, yeah.

 You are right, there is no restriction in the
 `register_theme_directory()`. Only if the path not found, it tries to
 `$directory = WP_CONTENT_DIR . '/' . $directory;`

Ticket URL: <https://core.trac.wordpress.org/ticket/29051#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list