Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2012 08:00:55 AM (10 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-reply-functions.php

    r3840 r3911  
    593593 * @uses update_post_meta() To update the reply metas
    594594 * @uses set_transient() To update the flood check transient for the ip
    595  * @uses update_user_meta() To update the last posted meta for the user
     595 * @uses bbp_update_user_last_posted() To update the users last posted time
    596596 * @uses bbp_is_subscriptions_active() To check if the subscriptions feature is
    597597 *                                      activated or not
     
    651651    } else {
    652652        if ( empty( $is_edit ) && !current_user_can( 'throttle' ) ) {
    653             update_user_meta( $author_id, '_bbp_last_posted', time() );
     653            bbp_update_user_last_posted( $author_id );
    654654        }
    655655    }
Note: See TracChangeset for help on using the changeset viewer.