Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2012 08:00:55 AM (13 years ago)
Author:
johnjamesjacoby
Message:

User Options:

  • Introduce bbp-user-options.php to handle all user option related code.
  • Add $user_options array to main bbPress class to allow for easy, static, per-user option overrides.
  • Tweak action order for option and user_option overrides in bbp-core-hooks.php.
  • Replace all appropriate user_meta calls with user_option calls to automatically prefix keys with blog ID.
  • Update favorites, subscriptions, and topic/reply count option keys to be per-blog in multisite configurations.
  • Fixes #1826.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-functions.php

    r3840 r3911  
    695695 * @uses update_post_meta() To update the topic metas
    696696 * @uses set_transient() To update the flood check transient for the ip
    697  * @uses update_user_meta() To update the last posted meta for the user
     697 * @uses bbp_update_user_last_posted() To update the users last posted time
    698698 * @uses bbp_is_subscriptions_active() To check if the subscriptions feature is
    699699 *                                      activated or not
     
    754754    } else {
    755755        if ( empty( $is_edit ) && !current_user_can( 'throttle' ) ) {
    756             update_user_meta( $author_id, '_bbp_last_posted', time() );
     756            bbp_update_user_last_posted( $author_id );
    757757        }
    758758    }
Note: See TracChangeset for help on using the changeset viewer.