Changeset 2787 for branches/plugin/bbp-themes/bbp-twentyten/functions.php
- Timestamp:
- 01/09/2011 08:43:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-themes/bbp-twentyten/functions.php
r2758 r2787 32 32 * @uses bbp_get_current_user_id() To get the current user id 33 33 * @uses current_user_can() To check if the current user can edit the user 34 * @uses get_post() To get the topic34 * @uses bbp_get_topic() To get the topic 35 35 * @uses check_ajax_referer() To verify the nonce & check the referer 36 36 * @uses bbp_is_user_favorite() To check if the topic is user's favorite … … 45 45 die( '-1' ); 46 46 47 if ( !$topic = get_post( $id ) )47 if ( !$topic = bbp_get_topic( $id ) ) 48 48 die( '0' ); 49 49 … … 69 69 * @uses bbp_get_current_user_id() To get the current user id 70 70 * @uses current_user_can() To check if the current user can edit the user 71 * @uses get_post() To get the topic71 * @uses bbp_get_topic() To get the topic 72 72 * @uses check_ajax_referer() To verify the nonce & check the referer 73 73 * @uses bbp_is_user_subscribed() To check if the topic is in user's … … 87 87 die( '-1' ); 88 88 89 if ( !$topic = get_post( $id ) )89 if ( !$topic = bbp_get_topic( $id ) ) 90 90 die( '0' ); 91 91
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)