Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/14/2015 12:46:38 AM (11 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/admin/tools.php

    r5827 r5829  
    510510
    511511        // Bump the count
    512         if ( !empty( $updated ) && ! is_wp_error( $updated ) ) {
     512        if ( ! empty( $updated ) && ! is_wp_error( $updated ) ) {
    513513            ++$g_count;
    514514        }
     
    516516        // Update group to forum relationship data
    517517        $group_id = (int) $bbp_db->get_var( "SELECT `group_id` FROM `{$groups_meta_table}` WHERE `meta_key` = 'forum_id' AND `meta_value` = '{$group_forums->ID}';" );
    518         if ( !empty( $group_id ) ) {
     518        if ( ! empty( $group_id ) ) {
    519519
    520520            // Update the group to forum meta connection in forums
     
    621621
    622622    $forums = get_posts( array( 'post_type' => bbp_get_forum_post_type(), 'numberposts' => -1 ) );
    623     if ( !empty( $forums ) ) {
     623    if ( ! empty( $forums ) ) {
    624624        foreach ( $forums as $forum ) {
    625625            bbp_update_forum_topic_count( $forum->ID );
     
    668668    // Recalculate the metas key _bbp_reply_count and _bbp_total_reply_count for each forum
    669669    $forums = get_posts( array( 'post_type' => bbp_get_forum_post_type(), 'numberposts' => -1 ) );
    670     if ( !empty( $forums ) ) {
     670    if ( ! empty( $forums ) ) {
    671671        foreach ( $forums as $forum ) {
    672672            bbp_update_forum_reply_count( $forum->ID );
     
    11631163    // Loop through forums
    11641164    foreach ( $forums as $forum_id ) {
    1165         if ( !bbp_is_forum_category( $forum_id ) ) {
     1165        if ( ! bbp_is_forum_category( $forum_id ) ) {
    11661166            bbp_update_forum( array( 'forum_id' => $forum_id ) );
    11671167        }
     
    16071607    /** Post Meta *************************************************************/
    16081608
    1609     if ( !empty( $sql_posts ) ) {
     1609    if ( ! empty( $sql_posts ) ) {
    16101610        $sql_meta = array();
    16111611        foreach ( $sql_posts as $key => $value ) {
     
    16291629
    16301630    // First, if we're deleting previously imported users, delete them now
    1631     if ( !empty( $_POST['bbpress-delete-imported-users'] ) ) {
     1631    if ( ! empty( $_POST['bbpress-delete-imported-users'] ) ) {
    16321632        $sql_users  = $bbp_db->get_results( "SELECT `user_id` FROM `{$bbp_db->usermeta}` WHERE `meta_key` = '_bbp_user_id'", OBJECT_K );
    1633         if ( !empty( $sql_users ) ) {
     1633        if ( ! empty( $sql_users ) ) {
    16341634            $sql_meta = array();
    16351635            foreach ( $sql_users as $key => $value ) {
Note: See TracChangeset for help on using the changeset viewer.