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/common/shortcodes.php

    r5466 r5829  
    224224
    225225        // Sanity check required info
    226         if ( !empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     226        if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
    227227            return $content;
    228228        }
     
    232232
    233233        // Bail if ID passed is not a forum
    234         if ( !bbp_is_forum( $forum_id ) ) {
     234        if ( ! bbp_is_forum( $forum_id ) ) {
    235235            return $content;
    236236        }
     
    320320
    321321        // Sanity check required info
    322         if ( !empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     322        if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
    323323            return $content;
    324324        }
     
    332332
    333333        // Bail if ID passed is not a topic
    334         if ( !bbp_is_topic( $topic_id ) ) {
     334        if ( ! bbp_is_topic( $topic_id ) ) {
    335335            return $content;
    336336        }
    337337
    338338        // Reset the queries if not in theme compat
    339         if ( !bbp_is_theme_compat_active() ) {
     339        if ( ! bbp_is_theme_compat_active() ) {
    340340
    341341            $bbp = bbpress();
     
    386386
    387387        // Sanity check supplied info
    388         if ( !empty( $content ) || ( !empty( $attr['forum_id'] ) && ( !is_numeric( $attr['forum_id'] ) || !bbp_is_forum( $attr['forum_id'] ) ) ) ) {
     388        if ( ! empty( $content ) || ( ! empty( $attr['forum_id'] ) && ( !is_numeric( $attr['forum_id'] ) || ! bbp_is_forum( $attr['forum_id'] ) ) ) ) {
    389389            return $content;
    390390        }
     
    394394
    395395        // If forum id is set, use the 'bbp_single_forum' query name
    396         if ( !empty( $attr['forum_id'] ) ) {
     396        if ( ! empty( $attr['forum_id'] ) ) {
    397397
    398398            // Set the global current_forum_id for future requests
     
    441441
    442442        // Sanity check required info
    443         if ( !empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     443        if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
    444444            return $content;
    445445        }
     
    453453
    454454        // Bail if ID passed is not a reply
    455         if ( !bbp_is_reply( $reply_id ) ) {
     455        if ( ! bbp_is_reply( $reply_id ) ) {
    456456            return $content;
    457457        }
    458458
    459459        // Reset the queries if not in theme compat
    460         if ( !bbp_is_theme_compat_active() ) {
     460        if ( ! bbp_is_theme_compat_active() ) {
    461461
    462462            $bbp = bbpress();
     
    553553
    554554        // Sanity check required info
    555         if ( !empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     555        if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
    556556            return $content;
    557557        }
     
    688688
    689689        // Sanity check required info
    690         if ( !empty( $content ) ) {
     690        if ( ! empty( $content ) ) {
    691691            return $content;
    692692        }
Note: See TracChangeset for help on using the changeset viewer.