[wp-hackers] Some Theme Changes

Ryan Boren ryan at boren.nu
Mon Feb 14 23:58:59 GMT 2005


When upgrading from previous releases, themes are turned off by default.
This is done to help ease people into the theme system and avoid
possible site breakage.  New installs will still use themes by default.
A new constant, WP_USE_THEMES must be defined in your root/home
index.php for themes to be enabled.  Take a look at the default
index.php for usage.

http://cvs.sourceforge.net/viewcvs.py/cafelog/wordpress/index.php?rev=1.86&view=auto

If you are already running 1.5 and have different WordPress and Blog
directories, you'll need to add WP_USE_THEMES to the index.php residing
in your blog directory.

Those upgrading from 1.2.2 will not be able to use themes until they set
WP_USE_THEMES.  Once they have have ported their templates into the
theme system, they can turn this on.  WP still attempts to convert their
current templates into a site theme during upgrade, but this theme will
not be used until WP_USE_THEMES is set.

Another change involves popup comments.  Previously, the
comments-popup.php template was accessed directly in the theme
directory.  This resulted in URIs of the form
http://blogmeupblogmedown.com/wp-content/themes/default/comments-popup.php?p=xxx&c=1.  Ugly.  So, comments-popup.php is now loaded through the index like other theme templates.  The URI is:  http://blogmeupblogmedown.com/?comments_popup=xxx

What does this mean to you, the theme author?  comments-popup.php should
no longer include the blog header. If you have a require of the form
"../../../wp-blog-header.php"  in your popup comments template, please
remove it.

Ryan



More information about the hackers mailing list