[bbDev] Renaming

Shahyar G shahyar at gmail.com
Fri Aug 19 15:26:23 GMT 2005


Sounds like a good change. Keep the bb_ on $posts though, as it's much 
better to maintain consistency throughout the system.

On 8/19/05, Michael D Adams <mikea at turbonet.com> wrote:
> 
> In order to better facilitate WP+bb, I've renamed a bunch of
> functions and globals. This will *really* annoy people who've got
> custom template, plugins or hacks.
> 
> Here's a list of (I think ) everything:
> 
> get_header() : bb_get_header()
> get_footer() : bb_get_footer()
> post_time() : bb_post_time()
> get_post_time() : bb_get_post_time()
> current_user_can() : bb_current_user_can()
> $table_prefix : $bb_table_prefix ********** crucial one ***********
> update_usermeta() : bb_update_usermeta()
> map_meta_cap() : bb_map_meta_cap()
> get_post() : bb_get_post();
> $post_cache : $bb_post_cache
> remove_action : bb_remove_action
> update_user_meta : bb_update_usermeta
> update_topic_meta: bb_update_topicmeta
> DB_NAME : BBDB_NAME
> BB_USER : BBDB_USER
> BB_PASSWORD : BBDB_PASSWORD
> DB_HOST : BBDB_HOST
> unregister_GLOBALS() : bb_unregister_GLOBALS()
> $post : $bb_post
> $current_user : $bb_current_user
> 
> 
> $post : $bb_post is the only one I wasn't sure should switch. We can
> change it back if people don't think it will conflict. Thoughts?
> 
> Also, some bad regex of mine may have introduced a couple typos re:
> bb_current_user_can(). I think I fixed them all in http://
> bbpress.automattic.com/changeset/255<http://bbpress.automattic.com/changeset/255>, though.
> 
> Michael
> 
> 
> _______________________________________________
> bbDev mailing list
> bbDev at lists.bbpress.org
> http://lists.bbpress.org/mailman/listinfo/bbdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://comox.textdrive.com/pipermail/bbdev/attachments/20050819/4a4b62a6/attachment.html


More information about the bbDev mailing list