Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/18/2012 06:03:00 PM (12 years ago)
Author:
r-a-y
Message:

EOF:

  • Fall in line with WordPress 3.4 coding practices by removing all EOF closing PHP tags.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-functions.php

    r6259 r6342  
    243243    extract( $r, EXTR_SKIP );
    244244
    245     // Check if the user is a spammer 
    246     if ( bp_is_user_inactive( bp_loggedin_user_id() ) ) 
     245    // Check if the user is a spammer
     246    if ( bp_is_user_inactive( bp_loggedin_user_id() ) )
    247247        return false;
    248248
     
    354354function bp_forums_reply_exists( $text = '', $topic_id = 0, $user_id = 0 ) {
    355355    $reply_exists = false;
    356    
     356
    357357    if ( $text && $topic_id && $user_id ) {
    358358        do_action( 'bbpress_init' );
    359        
     359
    360360        $args = array(
    361361            'post_author_id' => $user_id,
    362362            'topic_id'       => $topic_id
    363363        );
    364        
     364
    365365        // BB_Query's post_text parameter does a MATCH, while we need exact matches
    366366        add_filter( 'get_posts_where', create_function( '$q', 'return $q . " AND p.post_text = \'' . $text . '\'";' ) );
    367        
     367
    368368        $query = new BB_Query( 'post', $args );
    369        
     369
    370370        $reply_exists = !empty( $query->results );
    371371    }
    372    
     372
    373373    return apply_filters( 'bp_forums_reply_exists', $reply_exists, $text, $topic_id, $user_id );
    374374}
     
    747747    bb_update_postmeta( $id, $cachekey, $cache );
    748748}
    749 ?>
Note: See TracChangeset for help on using the changeset viewer.