Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/14/2015 12:46:38 AM (10 years ago)
Author:
johnjamesjacoby
Message:

I think this building should be condemned. There's serious metal fatigue in all the load-bearing members, the wiring is substandard, it's completely inadequate for our power needs, and the neighborhood is like a demilitarized zone.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/functions.php

    r5770 r5829  
    2525
    2626    // Use existing ID
    27     if ( !empty( bbpress()->extend->buddypress->id ) ) {
     27    if ( ! empty( bbpress()->extend->buddypress->id ) ) {
    2828        $retval = bbpress()->extend->buddypress->id;
    2929
     
    5757
    5858    // Easy empty checking
    59     if ( !empty( $user_id ) && is_numeric( $user_id ) ) {
     59    if ( ! empty( $user_id ) && is_numeric( $user_id ) ) {
    6060        $bbp_user_id = $user_id;
    6161    }
    6262
    6363    // Currently viewing or editing a user
    64     elseif ( ( true === $displayed_user_fallback ) && !empty( $did ) ) {
     64    elseif ( ( true === $displayed_user_fallback ) && ! empty( $did ) ) {
    6565        $bbp_user_id = $did;
    6666    }
    6767
    6868    // Maybe fallback on the current_user ID
    69     elseif ( ( true === $current_user_fallback ) && !empty( $lid ) ) {
     69    elseif ( ( true === $current_user_fallback ) && ! empty( $lid ) ) {
    7070        $bbp_user_id = $lid;
    7171    }
     
    8484 */
    8585function bbp_filter_is_single_user( $is = false ) {
    86     if ( !empty( $is ) ) {
     86    if ( ! empty( $is ) ) {
    8787        return $is;
    8888    }
     
    101101 */
    102102function bbp_filter_is_user_home( $is = false ) {
    103     if ( !empty( $is ) ) {
     103    if ( ! empty( $is ) ) {
    104104        return $is;
    105105    }
     
    303303
    304304    // Get the forums
    305     if ( !empty( $group_id ) ) {
     305    if ( ! empty( $group_id ) ) {
    306306        $forum_ids = groups_get_groupmeta( $group_id, 'forum_id' );
    307307    }
     
    335335
    336336    // Get the forums
    337     if ( !empty( $forum_id ) ) {
     337    if ( ! empty( $forum_id ) ) {
    338338        $group_ids = get_post_meta( $forum_id, '_bbp_group_ids', true );
    339339    }
     
    406406
    407407    // Maybe update the groups forums
    408     if ( !in_array( $group_id, $group_ids ) ) {
     408    if ( ! in_array( $group_id, $group_ids ) ) {
    409409        $group_ids[] = $group_id;
    410410        return bbp_update_forum_group_ids( $forum_id, $group_ids );
     
    432432
    433433    // Maybe update the groups forums
    434     if ( !in_array( $forum_id, $forum_ids ) ) {
     434    if ( ! in_array( $forum_id, $forum_ids ) ) {
    435435        $forum_ids[] = $forum_id;
    436436        return bbp_update_group_forum_ids( $group_id, $forum_ids );
     
    550550
    551551    // Check if the forum has groups
    552     $retval    = (bool) !empty( $group_ids );
     552    $retval    = (bool) ! empty( $group_ids );
    553553
    554554    return (bool) apply_filters( 'bbp_is_forum_group_forum', $retval, $forum_id, $group_ids );
Note: See TracChangeset for help on using the changeset viewer.