Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/11/2012 08:27:47 AM (14 years ago)
Author:
johnjamesjacoby
Message:

wp_get_single_post():

  • Deprecated in WordPress 3.5.
  • Use get_post() instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bbp-includes/bbp-reply-functions.php

    r4175 r4218  
    11491149 *
    11501150 * @param int $reply_id Reply id
    1151  * @uses wp_get_single_post() To get the reply
     1151 * @uses get_post() To get the reply
    11521152 * @uses do_action() Calls 'bbp_spam_reply' with the reply ID
    11531153 * @uses add_post_meta() To add the previous status to a meta
     
    11591159
    11601160    // Get reply
    1161     $reply = wp_get_single_post( $reply_id, ARRAY_A );
     1161    $reply = get_post( $reply_id, ARRAY_A );
    11621162    if ( empty( $reply ) )
    11631163        return $reply;
     
    11951195 *
    11961196 * @param int $reply_id Reply id
    1197  * @uses wp_get_single_post() To get the reply
     1197 * @uses get_post() To get the reply
    11981198 * @uses do_action() Calls 'bbp_unspam_reply' with the reply ID
    11991199 * @uses get_post_meta() To get the previous status meta
     
    12061206
    12071207    // Get reply
    1208     $reply = wp_get_single_post( $reply_id, ARRAY_A );
     1208    $reply = get_post( $reply_id, ARRAY_A );
    12091209    if ( empty( $reply ) )
    12101210        return $reply;
Note: See TracChangeset for help on using the changeset viewer.