Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#30206 closed defect (bug) (invalid)

get_stylesheet_directory_uri() includes space

Reported by: kosher_12's profile kosher_12 Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: General Keywords:
Focuses: Cc:


for some reason, when I print or echo get_stylesheet_directory_uri() or get_template_directory_uri() it has a space before the slash that separates the domainame/IP and wp-content folder.


echo get_stylesheet_directory_uri().'<br />';
echo get_template_directory_uri();

##the output is something like this /wp-content/themes/insanity/ /wp-content/themes/twentyfourteen/

Server Info

CentOS Linux release 7.0.1406 (Core)
nginx version: nginx/1.6.2
PHP 5.4.16 (cli)
PHP 5.4.16 (fpm-fcgi)

Change History (1)

#1 @helen
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

I suspect something like your stylesheet/template root or your content dir definition has a space in it. Recommend trying the support forums to confirm whether it's a setup or a core issue.

Note: See TracTickets for help on using tickets.