Opened 10 years ago
Closed 10 years ago
#28662 closed defect (bug) (fixed)
$theme_root_uri : double slash
Reported by: | tivnet | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | trivial | Version: | 2.9 |
Component: | Themes | Keywords: | has-patch |
Focuses: | Cc: |
Description
When I do (as specified here)
register_theme_directory( ABSPATH . 'wp-content/themes/' );
,
all URLs receive extra slash, for instance .../wp/wp-content/themes//twentyfourteen/...
Fixing a couple of lines in theme.php
helped (see the patch). I believe, there are more places to patch there - unless there is a better way.
Attachments (2)
Change History (7)
#2
@
10 years ago
- Component changed from General to Themes
- Milestone changed from Awaiting Review to 4.0
#3
@
10 years ago
If I try with no trailing slash:
register_theme_directory( ABSPATH . 'wp-content/themes' );
the templates never loaded, and I am getting blank screens.
Note: See
TracTickets for help on using
tickets.
I think
untrailingslashit()
should be added toregister_theme_directory()
instead.