[wp-hackers] WP_CONTENT_DIR and PLUGINDIR
Alex King
lists at alexking.org
Sun Sep 7 12:03:46 GMT 2008
I was playing with this yesterday trying to update podPress to be
compatible with WP_CONTENT_DIR while still maintaining some
compatibility with ABSPATH and PLUGINDIR, it's not very
straightforward how to use this new constant to me - unless you want
to scrap compatibility with versions < 2.5.x or introduce some fairly
complex checking.
I finally decided that creating get_content_dir_path() and
get_content_dir_url() functions (and wrapping them in
if_function_exists checks) was probably the best approach for backward
compatibility and supporting the new feature.
Cheers,
--Alex
Personal http://alexking.org
Business http://crowdfavorite.com
Schedule http://alex.myfreebusy.com
More information about the wp-hackers
mailing list