WordPress.org

Making WordPress.org


Ignore:
Timestamp:
04/11/2016 01:42:53 PM (4 years ago)
Author:
obenland
Message:

Plugin Directory: Initial setup for post status transitions.

Provides a place to handle post status transitions for plugins.

See #1570.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-capabilities.php

    r2830 r2930  
    1616     * @param int    $user_id       The user ID.
    1717     * @param array  $context       Adds the context to the cap. Typically the object ID.
     18     * @return array Primitive caps.
    1819     */
    1920    public static function map_meta_cap( $required_caps, $cap, $user_id, $context ) {
     
    8182        $reviewer = array_merge( $committer, array(
    8283            'plugin_edit_pending' => true,
    83             'plugin_approve' => true,
    84             'plugin_reject' => true,
     84            'plugin_review' => true,
    8585        ) );
    8686
     
    8888            'plugin_add_committer' => true,
    8989            'plugin_edit_others' => true,
     90            'plugin_approve' => true,
     91            'plugin_reject' => true,
    9092            'plugin_disable' => true,
    9193            'plugin_close' => true,
Note: See TracChangeset for help on using the changeset viewer.