Make WordPress Core

Changeset 10553


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

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

Location:
trunk
Files:
2 added
4 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?>
  • trunk/wp-admin/includes/upgrade.php

    r10530 r10553  
    276276        if ( $wp_current_db_version < 8989 )
    277277                upgrade_270();
     278
     279        if ( $wp_current_db_version < 10360 )
     280                upgrade_280();
    278281
    279282        maybe_disable_automattic_widgets();
    … …  
    905908        if ( $wp_current_db_version < 8921 )
    906909                $wpdb->query( "UPDATE $wpdb->posts SET post_date = post_modified WHERE post_date = '0000-00-00 00:00:00'" );
     910}
     911
     912/**
     913 * Execute changes made in WordPress 2.8.
     914 *
     915 * @since 2.8.0
     916 */
     917function upgrade_280() {
     918        global $wp_current_db_version;
     919
     920        if ( $wp_current_db_version < 10360 )
     921                populate_roles_280();
    907922}
    908923
  • trunk/wp-admin/menu.php

    r10515 r10553  
    5858        $submenu['themes.php'][5]  = array(__('Themes'), 'switch_themes', 'themes.php');
    5959        $submenu['themes.php'][10] = array(__('Editor'), 'edit_themes', 'theme-editor.php');
     60        $submenu['themes.php'][15] = array(__('Add New Themes'), 'install_themes', 'theme-install.php');
    6061
    6162$update_plugins = get_transient( 'update_plugins' );
  • trunk/wp-includes/version.php

    r10550 r10553  
    1616 * @global int $wp_db_version
    1717 */
    18 $wp_db_version = 9873;
     18$wp_db_version = 10553;
    1919
    2020?>
Note: See TracChangeset for help on using the changeset viewer.