Пример #1
0
/**
 * Execute changes made in WordPress 2.6.
 *
 * @since 2.6.0
 */
function upgrade_260()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 8000) {
        populate_roles_260();
    }
    if ($wp_current_db_version < 8201) {
        update_option('enable_app', 1);
        update_option('enable_xmlrpc', 1);
    }
}
Пример #2
0
/**
 * Execute WordPress role creation for the various WordPress versions.
 *
 * @since 2.0.0
 */
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();
}
/**
 * Execute changes made in WordPress 2.6.
 *
 * @since 2.6.0
 */
function upgrade_260()
{
    global $wp_current_db_version;
    if ($wp_current_db_version < 8000) {
        populate_roles_260();
    }
}