Skip to:
Content

bbPress.org


Ignore:
Timestamp:
03/03/2017 09:28:09 PM (8 years ago)
Author:
johnjamesjacoby
Message:

User Options: Clean-up favorites & subscriptions from options,

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/users/options.php

    r6358 r6359  
    2222    // Default options
    2323    return apply_filters( 'bbp_get_default_user_options', array(
    24         '_bbp_last_posted'   => '0', // For checking flooding
    25         '_bbp_topic_count'   => '0', // Total topics per site
    26         '_bbp_reply_count'   => '0', // Total replies per site
    27         '_bbp_favorites'     => '',  // Favorite topics per site
    28         '_bbp_subscriptions' => ''   // Subscribed topics per site
     24        '_bbp_last_posted' => '0', // For checking flooding
     25        '_bbp_topic_count' => '0', // Total topics per site
     26        '_bbp_reply_count' => '0'  // Total replies per site
    2927    ) );
    3028}
     
    200198 */
    201199function bbp_user_topic_count( $user_id = 0, $integer = false ) {
    202     echo bbp_get_user_topic_count( $user_id, $integer );
     200    echo esc_html( bbp_get_user_topic_count( $user_id, $integer ) );
    203201}
    204202    /**
     
    241239 */
    242240function bbp_user_reply_count( $user_id = 0, $integer = false ) {
    243     echo bbp_get_user_reply_count( $user_id, $integer );
     241    echo esc_html( bbp_get_user_reply_count( $user_id, $integer ) );
    244242}
    245243    /**
     
    282280 */
    283281function bbp_user_post_count( $user_id = 0, $integer = false ) {
    284     echo bbp_get_user_post_count( $user_id, $integer );
     282    echo esc_html( bbp_get_user_post_count( $user_id, $integer ) );
    285283}
    286284    /**
Note: See TracChangeset for help on using the changeset viewer.