Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/11/2014 09:57:54 PM (12 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for ! usages in Topics component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/topics/capabilities.php

    r5079 r5443  
    7979                // Get the post
    8080                $_post = get_post( $args[0] );
    81                 if ( !empty( $_post ) ) {
     81                if ( ! empty( $_post ) ) {
    8282
    8383                    // Get caps for post type object
     
    134134            // Get the post
    135135            $_post = get_post( $args[0] );
    136             if ( !empty( $_post ) ) {
     136            if ( ! empty( $_post ) ) {
    137137
    138138                // Get caps for post type object
     
    145145
    146146                // User is author so allow edit if not in admin
    147                 } elseif ( !is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {
     147                } elseif ( ! is_admin() && ( (int) $user_id === (int) $_post->post_author ) ) {
    148148                    $caps[] = $post_type->cap->edit_posts;
    149149
     
    162162            // Get the post
    163163            $_post = get_post( $args[0] );
    164             if ( !empty( $_post ) ) {
     164            if ( ! empty( $_post ) ) {
    165165
    166166                // Get caps for post type object
Note: See TracChangeset for help on using the changeset viewer.