WordPress.org

Making WordPress.org

Changeset 3079


Ignore:
Timestamp:
05/05/2016 01:14:26 AM (3 years ago)
Author:
obenland
Message:

Plugin Directory: Properly add caps to existing user roles.

Probably not needed in the future, but for now let's make sure existing roles
can test the plugin directory as well.

See #1570.

File:
1 edited

Legend:

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

    r2979 r3079  
    110110            }
    111111
    112             foreach ( $committer as $committer_cap ) {
     112            foreach ( $committer as $committer_cap => $value ) {
    113113                $wp_role->add_cap( $committer_cap );
    114114            }
    115115
    116116            if ( in_array( $role, array( 'editor', 'administrator' ) ) ) {
    117                 foreach ( $admin as $admin_cap ) {
     117                foreach ( $admin as $admin_cap => $value ) {
    118118                    $wp_role->add_cap( $admin_cap );
    119119                }
Note: See TracChangeset for help on using the changeset viewer.