Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/28/2016 06:16:53 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for all !is_ usages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/shortcodes.php

    r5957 r6196  
    223223
    224224                // Sanity check required info
    225                 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     225                if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {
    226226                        return $content;
    227227                }
    … …  
    317317
    318318                // Sanity check required info
    319                 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     319                if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {
    320320                        return $content;
    321321                }
    … …  
    383383
    384384                // Sanity check supplied info
    385                 if ( ! empty( $content ) || ( ! empty( $attr['forum_id'] ) && ( !is_numeric( $attr['forum_id'] ) || ! bbp_is_forum( $attr['forum_id'] ) ) ) ) {
     385                if ( ! empty( $content ) || ( ! empty( $attr['forum_id'] ) && ( ! is_numeric( $attr['forum_id'] ) || ! bbp_is_forum( $attr['forum_id'] ) ) ) ) {
    386386                        return $content;
    387387                }
    … …  
    438438
    439439                // Sanity check required info
    440                 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     440                if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {
    441441                        return $content;
    442442                }
    … …  
    550550
    551551                // Sanity check required info
    552                 if ( ! empty( $content ) || ( empty( $attr['id'] ) || !is_numeric( $attr['id'] ) ) ) {
     552                if ( ! empty( $content ) || ( empty( $attr['id'] ) || ! is_numeric( $attr['id'] ) ) ) {
    553553                        return $content;
    554554                }
    … …  
    734734
    735735                // Output templates
    736                 if ( !is_user_logged_in() ) {
     736                if ( ! is_user_logged_in() ) {
    737737                        bbp_get_template_part( 'form',     'user-login' );
    738738                } else {
    … …  
    760760
    761761                // Output templates
    762                 if ( !is_user_logged_in() ) {
     762                if ( ! is_user_logged_in() ) {
    763763                        bbp_get_template_part( 'form',     'user-register' );
    764764                } else {
    … …  
    786786
    787787                // Output templates
    788                 if ( !is_user_logged_in() ) {
     788                if ( ! is_user_logged_in() ) {
    789789                        bbp_get_template_part( 'form',     'user-lost-pass' );
    790790                } else {
Note: See TracChangeset for help on using the changeset viewer.