Skip to:
Content

bbPress.org


Ignore:
Timestamp:
09/10/2011 10:27:19 PM (13 years ago)
Author:
johnjamesjacoby
Message:

API adjustments:

  • Refactor _status_ vars into callable functions.
  • Audit usage of $bbp global.
  • Perform get_class() checks on extensions to avoid errors if global $bbp is overloaded.
  • Bump DB version to 175.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-caps.php

    r3504 r3505  
    165165                $post_type = get_post_type_object( $post->post_type );
    166166
    167                 if ( 'private' != $post->post_status )
     167                if ( bbp_get_public_status_id() == $post->post_status )
    168168                    $caps[] = 'read';
    169169                elseif ( (int) $user_id == (int) $post->post_author )
Note: See TracChangeset for help on using the changeset viewer.