-
-
This came out bit late as its already few week when WordPress 2.7.1 release. WP 2.7.1 now support themes in subdirectory (#8548) . Unfortunately the last changeset for 2.7.1 create a new bug for specific theme name with hyphen (#9244 ↓)There is a bug in the regex expressions in the preview_theme() function. The hyphen is not escaped, so themes that have hyphens in the directory name cause the function to return rather than continue. Thus, when previewing a theme with a hyphen in the directory, all that is rendered is a white page. ~chrisbliss18
If you are developing theme for WordPress 2.7.1, avoid using hyphen for theme name (replace it with underscore if you must). For those who are using 2.7.1 and need a quick fixes you can grab the patch → #10677. Installation: Download and overwrite theme.php inside wp-includes directory.
Might be Interest
-
2 Responsesto “WordPress 2.7.1 theme preview fixes”
Thanks for the theme.php replacement file. It helped, as I have a thousand themes, most with hyphens in their name.
[Reply]This is fixed in 2.8
[Reply]If you want to comment, please read the following guidelines. These are designed to protect you and other users of the site.
In order to keep these experiences enjoyable and interesting for all of our users, we ask that you follow the above guidlines. Feel free to engage, ask questions, and tell us what you are thinking! insightful comments are most welcomed.
Subscribe to this discussion via RSS
Taxonomy
Most used terms