WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/04/2008 09:01:09 PM (12 years ago)
Author:
westi
Message:

Plugin Install GSOC project first code drop. Props DD32 see #6015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r8433 r8540  
    278278    populate_roles_250();
    279279    populate_roles_260();
     280    populate_roles_270();
    280281}
    281282
     
    442443}
    443444
     445function populate_roles_270() {
     446    $role = get_role( 'administrator' );
     447
     448    if ( !empty( $role ) ) {
     449        $role->add_cap( 'install_plugins' );
     450    }
     451}
     452
    444453?>
Note: See TracChangeset for help on using the changeset viewer.