Making WordPress.org

Changeset 3128


Ignore:
Timestamp:
05/13/2016 04:06:52 PM (10 years ago)
Author:
obenland
Message:

Plugin Directory: Allow plugin authors to edit their own plugin.

Gives authors access to their plugin when they don't have commit to it yet.
Happens between first submitting a plugin and it getting approved.

See #1571.

File:
1 edited

Legend:

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

    r3093 r3128  
    3434                                $committers = Tools::get_plugin_committers( $post->post_name );
    3535
    36                                 if ( $post->post_author === $user_id || in_array( $user->user_login, $committers, true ) ) {
     36                                if ( $post->post_author == $user_id || in_array( $user->user_login, $committers, true ) ) {
    3737                                        $required_caps[] = 'plugin_edit_own';
    3838
Note: See TracChangeset for help on using the changeset viewer.