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/topics/functions.php

    r5827 r5829  
    11951195
    11961196    // Source topic not found
    1197     } elseif ( !$source_topic = bbp_get_topic( $source_topic_id ) ) {
     1197    } elseif ( ! $source_topic = bbp_get_topic( $source_topic_id ) ) {
    11981198        bbp_add_error( 'bbp_merge_topic_source_not_found', __( '<strong>ERROR</strong>: The topic you want to merge was not found.', 'bbpress' ) );
    11991199        return;
     
    12161216
    12171217    // Destination topic not found
    1218     if ( !$destination_topic = bbp_get_topic( $destination_topic_id ) ) {
     1218    if ( ! $destination_topic = bbp_get_topic( $destination_topic_id ) ) {
    12191219        bbp_add_error( 'bbp_merge_topic_destination_not_found', __( '<strong>ERROR</strong>: The topic you want to merge to was not found.', 'bbpress' ) );
    12201220    }
     
    18721872
    18731873            // No tag name was provided
    1874             if ( empty( $_POST['tag-name'] ) || !$name = $_POST['tag-name'] ) {
     1874            if ( empty( $_POST['tag-name'] ) || ! $name = $_POST['tag-name'] ) {
    18751875                bbp_add_error( 'bbp_manage_topic_tag_update_name', __( '<strong>ERROR</strong>: You need to enter a tag name.', 'bbpress' ) );
    18761876                return;
     
    19121912
    19131913            // No tag name was provided
    1914             if ( empty( $_POST['tag-existing-name'] ) || !$name = $_POST['tag-existing-name'] ) {
     1914            if ( empty( $_POST['tag-existing-name'] ) || ! $name = $_POST['tag-existing-name'] ) {
    19151915                bbp_add_error( 'bbp_manage_topic_tag_merge_name', __( '<strong>ERROR</strong>: You need to enter a tag name.', 'bbpress' ) );
    19161916                return;
     
    19181918
    19191919            // If term does not exist, create it
    1920             if ( !$tag = term_exists( $name, bbp_get_topic_tag_tax_id() ) ) {
     1920            if ( ! $tag = term_exists( $name, bbp_get_topic_tag_tax_id() ) ) {
    19211921                $tag = wp_insert_term( $name, bbp_get_topic_tag_tax_id() );
    19221922            }
     
    21782178            $success  = true === $is_spam ? bbp_unspam_topic( $topic_id ) : bbp_spam_topic( $topic_id );
    21792179            $failure  = true === $is_spam ? __( '<strong>ERROR</strong>: There was a problem unmarking the topic as spam.', 'bbpress' ) : __( '<strong>ERROR</strong>: There was a problem marking the topic as spam.', 'bbpress' );
    2180             $view_all = !$is_spam;
     2180            $view_all = ! $is_spam;
    21812181
    21822182            break;
Note: See TracChangeset for help on using the changeset viewer.