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

WordPress Trac noreply at wordpress.org
Tue Jul 29 01:46:11 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        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 I believe, this problem exists only if there are more than one theme
 directories.

 For example, in my code I have:

 {{{
 register_theme_directory( ABSPATH . 'wp-content/themes/' );
 }}}

 Then, on Windows, the options table has:
 {{{
 INSERT INTO `xxx_options` VALUES
 (678,'template_root','C:\\the\\path\\to\\www.mysite.com\\wp/wp-
 content/themes/','yes');

 INSERT INTO `xxx_options` VALUES
 (869,'_site_transient_theme_roots','a:2:{s:14:\"twentyfourteen\";s:57:\"C:\\the\\path\\to\\www.mysite.com\\wp
 /wp-content/themes/\";s:8:\"wpglobus\";s:7:\"/themes\";}','yes');
 }}}

 On UNIX, of course, I see
 {{{
 INSERT INTO `wpg_options` VALUES
 (678,'template_root','/the/path/to/www.mysite.com/wp/wp-
 content/themes/','yes');

 INSERT INTO `wpg_options` VALUES
 (869,'_site_transient_theme_roots','a:2:{s:14:\"twentyfourteen\";s:55:\"/the/path/to/www.mysite.com/wp
 /wp-content/themes/\";s:8:\"wpglobus\";s:7:\"/themes\";}','yes');
 }}}

 And what happens is: when I `mysqldump` my database on Windows and load it
 on UNIX, WordPress gives me White Screen (no errors even in the error
 log).

 I believe, '''always storing UNIX paths would solve this problem'''. They
 work the same on Windows and UNIX.

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


More information about the wp-trac mailing list