Framework Templates revised following WP 2.8 release

Following the much anticipated release of WordPress version 2.8, I read up about deprecated functions from past WordPress releases and realized that my templates contained a few that needed updated.

wp_get_links() is now a deprecated function and was replaced by wp_list_bookmarks()

wp_list_cats() is also deprecated and has been replaced by wp_list_categories()

These functions can be found in the sidebar.php of the 3-column and basic themes and the sidebar-custom.php of the 3-column theme. No changes are needed in any of the other templates.

Additionally, while doing research about the best way to write the search function, I came across this post which explained that both action="<?php echo $_SERVER['PHP_SELF']; ?>" and  action="<?php bloginfo('siteurl'); ?>" are correct and will provide search results. But the second method is the one to use if you choose to have your blog in a directory other than the root.  Since the second method one also works if your blog is in the root folder, I thought it would be safer and less confusing to simply replace that bit of code.

No comments yet. Be the first.

Leave a reply