populate_roles_280 example


function upgrade_280() {
    global $wp_current_db_version$wpdb;

    if ( $wp_current_db_version < 10360 ) {
        populate_roles_280();
    }
    if ( is_multisite() ) {
        $start = 0;
        while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
            foreach ( $rows as $row ) {
                $value = maybe_unserialize( $row->option_value );
                if ( $value === $row->option_value ) {
                    $value = stripslashes( $value );
                }
                if ( $value !== $row->option_value ) {
                    update_option( $row->option_name, $value );
                }

function populate_roles() {
    populate_roles_160();
    populate_roles_210();
    populate_roles_230();
    populate_roles_250();
    populate_roles_260();
    populate_roles_270();
    populate_roles_280();
    populate_roles_300();
}

/** * Create the roles for WordPress 2.0 * * @since 2.0.0 */
function populate_roles_160() {
    // Add roles.     add_role( 'administrator', 'Administrator' );
    
Home | Imprint | This part of the site doesn't use cookies.