Skip to:
Content

bbPress.org


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

Bracketize core component.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/cache.php

    r4863 r5438  
    6969
    7070        // Bail if post ID is not a bbPress post type
    71         if ( empty( $post_id ) || ! bbp_is_custom_post_type( $post_id ) )
     71        if ( empty( $post_id ) || ! bbp_is_custom_post_type( $post_id ) ) {
    7272            return;
     73        }
    7374
    7475        // Store the $post_id
     
    9293
    9394        // Bail if this post is not the current bbPress post
    94         if ( empty( $post_id ) || ( $this->updating_post !== $post_id ) )
     95        if ( empty( $post_id ) || ( $this->updating_post !== $post_id ) ) {
    9596            return;
     97        }
    9698
    9799        // Stash the current cache invalidation value in a variable, so we can
     
    136138    // Bail if no post
    137139    $_post = get_post( $_post );
    138     if ( empty( $_post ) )
     140    if ( empty( $_post ) ) {
    139141        return;
     142    }
    140143
    141144    wp_cache_delete( $_post->ID, 'posts'     );
Note: See TracChangeset for help on using the changeset viewer.