WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/11/2009 11:10:11 PM (12 years ago)
Author:
ryan
Message:

Rough first cut of theme browser/installer. Props DD32. see #8652

File:
1 edited

Legend:

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

    r10476 r10553  
    328328    populate_roles_260();
    329329    populate_roles_270();
     330    populate_roles_280();
    330331}
    331332
     
    531532}
    532533
     534/**
     535 * Create and modify WordPress roles for WordPress 2.8.
     536 *
     537 * @since 2.8.0
     538 */
     539function populate_roles_280() {
     540    $role =& get_role( 'administrator' );
     541
     542    if ( !empty( $role ) ) {
     543        $role->add_cap( 'install_themes' );
     544    }
     545}
     546
    533547?>
Note: See TracChangeset for help on using the changeset viewer.