Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/09/2011 08:43:56 PM (16 years ago)
Author:
johnjamesjacoby
Message:

Introduce _get_ functions for forums, topics, and replies. Fixes #1415. Props GautamGupta via Google Code-in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-themes/bbp-twentyten/functions.php

    r2758 r2787  
    3232 * @uses bbp_get_current_user_id() To get the current user id
    3333 * @uses current_user_can() To check if the current user can edit the user
    34  * @uses get_post() To get the topic
     34 * @uses bbp_get_topic() To get the topic
    3535 * @uses check_ajax_referer() To verify the nonce & check the referer
    3636 * @uses bbp_is_user_favorite() To check if the topic is user's favorite
    … …  
    4545                die( '-1' );
    4646
    47         if ( !$topic = get_post( $id ) )
     47        if ( !$topic = bbp_get_topic( $id ) )
    4848                die( '0' );
    4949
    … …  
    6969 * @uses bbp_get_current_user_id() To get the current user id
    7070 * @uses current_user_can() To check if the current user can edit the user
    71  * @uses get_post() To get the topic
     71 * @uses bbp_get_topic() To get the topic
    7272 * @uses check_ajax_referer() To verify the nonce & check the referer
    7373 * @uses bbp_is_user_subscribed() To check if the topic is in user's
    … …  
    8787                die( '-1' );
    8888
    89         if ( !$topic = get_post( $id ) )
     89        if ( !$topic = bbp_get_topic( $id ) )
    9090                die( '0' );
    9191
Note: See TracChangeset for help on using the changeset viewer.