Opened 16 years ago
Closed 16 years ago
#9315 closed defect (bug) (invalid)
theme previewer shows current theme instead of previewed theme
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | minor | Version: | 2.7.1 |
Component: | Themes | Keywords: | has-patch 2nd-opinion |
Focuses: | Cc: |
Description
When previewing a theme, my installation always shows the current theme.
The displayed url for the preview is something like:
When I change it to use 'siteurl' instead of 'home'
things behave properly.
Thus, for my installation, theme previewer has unexpected behaviour when 'siteurl' and 'home' are different.
Patch attached, affects back to at least 2.7. (if there is another cause to explore, such at .htaccess / mod_rewrite, I hope to be enlightened)
Attachments (1)
Change History (11)
#2
@
16 years ago
- Keywords has-patch 2nd-opinion added; theme removed
- Milestone changed from Unassigned to 2.8
the odd thing is that it *should* work with the home option imo.
#3
@
16 years ago
No reason why it shouldnt work with the home optoion.
Are you running any caching plugins? Or server-side caching?
#4
@
16 years ago
- Version changed from 2.8 to 2.7.1
I can reproduce it on 2.7.1 setting the WP_LANG in config.php to other locale (e.g. es_ES). If you set WP_LANG = "", then it works ok. Maybe this can put you on track...
#5
@
16 years ago
- Component changed from Administration to Themes
- Owner anonymous deleted
I can reproduce it on 2.7.1 setting the WP_LANG in config.php to other locale (e.g. es_ES). If you set WP_LANG = "", then it works ok.
You're not using any other Translation plugins are you? Say something which allows the user to select the language?
Thanks for the extra info, I'll see if I can reproduce it later.
#6
@
16 years ago
confirmed in current trunk with/without setting the language. to reproduce:
- stick wp into /wp/
- stick an index.php and .htaccess file into /
- set home, siteurl, and rewrite rules accordingly
two things happen:
- current theme gets displayed no matter what
- blog's front page gets displayed (even if you set a static front page)
#7
@
16 years ago
site note: logging out, and then back in, made the previewed theme show work. but it's still showing the blog.
#8
@
16 years ago
Tracked the blog issue down to the query parser. It's assuming a singular query, and resumes to defaulting to is_home as a result.
It's not much of a big deal imo.
I can no longer reproduce after having refreshed the admin cookies by logging in and out.
Suggesting invalid if no-one else can reproduce.
simple patch to change 'home' to 'siteurl'