With Wordpress 2.1 RC1 installed, I dump in my themes to see if things crash and burn. Happily all themes worked out of box (only minor changes required). Kudos to the Wordpress Developers for making the transition easy. After some probing with the default theme, there are indeed some changes under the hood. While your existing theme may still work, some template tags has been deprecated in 2.1. Changes and new functions as below.
WP2.0: get_settings()
WP2.1: get_option()
Found in multiple files
get_settings() still works but has been deprecated
WP2.0: wp_list_cats()
WP2.1: wp_list_categories()
Found in archives.php, sidebar.php
wp_list_cats() still works but has been deprecated
WP2.0: wp_specialchars()
WP2.1: the_search_query()
Found in searchform.php, sidebar.php
wp_specialchars() stills works and has NOT been deprecated.
WP2.0: get_links_list()
WP2.1: wp_list_bookmarks()
Found in sidebar.php
get_links_list() still works and has NOT been deprecated. However wp_list_bookmarks() is far more powerful, accepting more parameters for customisation.
WP2.0: N.A.
WP2.1: language_attributes
Found in header.php
Add lang, xml:lang and dir attributes to the html tag. For more info, see Language and Text Direction in WP 2.1
What's Next?
» Share This (Social Bookmarks/Email)» Subscribe to Feed
» Subscribe to Email
» Leave a Comment
Related Posts:
» Migrating Your Wordpress 2.2 themes to Wordpress 2.3
» Theme Authors: Make Your Theme Work in Both WP 2.0 and 2.1
» Testing of Plugins and Themes on WP 2.2
» Newer Post: Theme Authors: Make Your Theme Work in Both WP 2.0 and 2.1
« Previous Post: WP Theme: Internet Music







hmm i have tried it to your theme (red business)but the in the sidebar didn’t follow the css.
Hello, I would say that nothing is not true here.
For exemple in the new template tag wp_list_categories() there is no argument ‘children’ to be able to display only parent categories. Which is possible with the template tag wp_list_cats()
Great, thanks for the short list. Thats just what I was looking for
Time for a some search and replace action.
@fahmishah: do you mean the bullets for the child categories?
@Damino: looking at the functions, I think WP2.1 has removed the ‘children’ parameter for both wp_list_cats() & wp_list_categories(). Both are unable to display only parent categories now in Wp2.1
[...] WordPress Theme Authors be warned. Some are reporting screwed up WordPress Themes and structure after upgrading. WordPress 2.1 now incorporates blogroll links into the category list and a few new WordPress Theme template files, deprecated a few older ones. If your WordPress Theme uses the wp-list_cats() template tag, it has been deprecated in WordPress 2.1. The new template tag is wp_list_categories(). Ericulous summed up some of the other changes in template tags between WordPress 2.0x and WordPress 2.1. [...]
Thanks! I wish this had been part of the release or update notes on the WP site! Does anyone know when we can expect some of the template tags that are missing to be added into the Codex? (Catagory dropdown is listed, with no entry as an example, I found a few like that.)
[...] Only three days into the new version of WP, I’ve finally found a list of the template tags that have changed, thanks to ericulous WP2.0: get_settings() WP2.1: get_options() Found in multiple files get_settings() still works but has been deprecated [...]
[...] WordPress 2.1 template tags changes Useful info, found via the wonderful Lorelle. If you are a WordPress user, you should visit her site. [...]
Tawny, hope they get it up real fast, though it’s quite a humongous and thankless task
I’m just learning to blog. Interesting comments.
for those interested in being able to limit the children categories for the wp_list_categories in the updated WordPress v2.1
i think i got something to get this to work
download and install this plugin
http://braydon.com/unfold_list_categories.zip
to only show 1 level of categories use this:
in place of this:
let me know if it works for you… it worked for me but it was sort of by accident i think?
edit:
to only show 1 level of categories use this:
unfold_list_categories(’depth=1&hierarchical=1′);
in place of this:
wp_list_categories();
I tested on my themedemo site.
Seems to be working fine.
Great job in the hacking Braydon
It was fun. I’m glad it’s working.
[...] Migrating Your Wordpress 2.0 themes over to Wordpress 2.1. [...]
is get_options really working in wordpress 2.1? I`ve changed some plugins from get_settings to get_options but it seems not to work after that.
Sorry Lazy, it should be get_option without the ’s’
[...] see which template tags are affected, you can refer to my short list. Share This | Permalink nuffnang_bid_sing = [...]