Make WordPress Core

Changeset 15897


Ignore:
Timestamp:
10/21/2010 04:28:35 PM (13 years ago)
Author:
nacin
Message:

Only dumb down delete_others_posts if it deserves to exist. fixes a notice. see #14122.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r15892 r15897  
    10201020        // While these may be checked in core, users/roles shouldn't need to be granted these.
    10211021        $default_capabilities['edit_others_posts']   = $default_capabilities['edit_posts'];
    1022         $default_capabilities['delete_others_posts'] = $default_capabilities['delete_posts'];
     1022        if ( $args->map_meta_cap )
     1023            $default_capabilities['delete_others_posts'] = $default_capabilities['delete_posts'];
    10231024    }
    10241025
Note: See TracChangeset for help on using the changeset viewer.