Making WordPress.org


Ignore:
Timestamp:
12/01/2014 09:24:53 PM (12 years ago)
Author:
johnjamesjacoby
Message:

BuddyPress.org: When untrusted codex user attempts to delete a post or page, defer to the actual capability being checked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions-codex.php

    r1014 r1015  
    450450                        case 'delete_page' :
    451451                                $caps = array( 'do_not_allow' );
    452                                 if ( ! $this->is_user_trusted() ) {
     452                                if ( $this->is_user_trusted() ) {
    453453                                        $caps = array( $cap );
    454454                                }
Note: See TracChangeset for help on using the changeset viewer.