Make WordPress Core

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#8548 closed defect (bug) (fixed)

Theme preview fails when theme in subdirectory

Reported by: zedlander Owned by:
Priority: normal Milestone: 2.7.2
Component: Themes Version: 2.7
Severity: normal Keywords:
Cc: Focuses:

Description

I have a folder called dreamhost in my themes directory. All the themes display and can be activated properly, but the preview is broken, only showing a white page. This is because the preview_theme function is stripping out '/', changing 'dreamhost/classic' to 'dreamhostclassic', which then fails. Patch is attached.

Attachments (1)

themefix.diff (923 bytes ) - added by zedlander 18 years ago.
Diff to avoid filtering out '/' from theme filenames.

Download all attachments as: .zip

Change History (9)

@zedlander
18 years ago

Diff to avoid filtering out '/' from theme filenames.

#1 @DD32
18 years ago

  • Component GeneralThemes
  • Keywords has-patch added
  • Owner anonymous removed
  • Version2.7

#2 @ryan
18 years ago

  • Milestone 2.82.7.1

#3 @ryan
18 years ago

  • Resolutionfixed
  • Status newclosed

(In [10483]) Fix previewing of themes in subdirs. Props zedlander. fixes #8548

#4 @ryan
18 years ago

(In [10484]) Fix previewing of themes in subdirs. Props zedlander. fixes #8548 for 2.7

#5 @chaoskaizer
17 years ago

  • Keywords has-patch removed
  • Resolution fixed
  • Status closedreopened

current fixes broke all themes that used "-" character for a directory name.

example

  • themes\wp-theme
  • themes\wp-theme-27 .

#6 @FFEMTcJ
17 years ago

  • Milestone 2.7.12.7.2

See #9244 for patch to new problem.

#7 @automattor
17 years ago

  • Resolutionfixed
  • Status reopenedclosed

(In [10677]) Escape hyphen in regex. Props chrisbliss18. fixes #8548 #9244 for 2.7

#8 @ryan
17 years ago

[10676] for trunk

Note: See TracTickets for help on using tickets.