upgrade_101

The timeline below displays how wordpress function upgrade_101 has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.4

/**
 * Execute changes made in WordPress 1.0.1.
 *
 * @ignore
 * @since 1.0.1
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_101()
{
    global $wpdb;
    // Clean up indices, add a few.
    add_clean_index($wpdb->posts, 'post_name');
    add_clean_index($wpdb->posts, 'post_status');
    add_clean_index($wpdb->categories, 'category_nicename');
    add_clean_index($wpdb->comments, 'comment_approved');
    add_clean_index($wpdb->comments, 'comment_post_ID');
    add_clean_index($wpdb->links, 'link_category');
    add_clean_index($wpdb->links, 'link_visible');
}

WordPress Version: 4.5

/**
 * Execute changes made in WordPress 1.0.1.
 *
 * @ignore
 * @since 1.0.1
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_101()
{
    global $wpdb;
    // Clean up indices, add a few
    add_clean_index($wpdb->posts, 'post_name');
    add_clean_index($wpdb->posts, 'post_status');
    add_clean_index($wpdb->categories, 'category_nicename');
    add_clean_index($wpdb->comments, 'comment_approved');
    add_clean_index($wpdb->comments, 'comment_post_ID');
    add_clean_index($wpdb->links, 'link_category');
    add_clean_index($wpdb->links, 'link_visible');
}

WordPress Version: 4.4

/**
 * Execute changes made in WordPress 1.0.1.
 *
 * @since 1.0.1
 *
 * @global wpdb $wpdb WordPress database abstraction object.
 */
function upgrade_101()
{
    global $wpdb;
    // Clean up indices, add a few
    add_clean_index($wpdb->posts, 'post_name');
    add_clean_index($wpdb->posts, 'post_status');
    add_clean_index($wpdb->categories, 'category_nicename');
    add_clean_index($wpdb->comments, 'comment_approved');
    add_clean_index($wpdb->comments, 'comment_post_ID');
    add_clean_index($wpdb->links, 'link_category');
    add_clean_index($wpdb->links, 'link_visible');
}

WordPress Version: 4.3

/**
 * Execute changes made in WordPress 1.0.1.
 *
 * @since 1.0.1
 *
 * @global wpdb $wpdb
 */
function upgrade_101()
{
    global $wpdb;
    // Clean up indices, add a few
    add_clean_index($wpdb->posts, 'post_name');
    add_clean_index($wpdb->posts, 'post_status');
    add_clean_index($wpdb->categories, 'category_nicename');
    add_clean_index($wpdb->comments, 'comment_approved');
    add_clean_index($wpdb->comments, 'comment_post_ID');
    add_clean_index($wpdb->links, 'link_category');
    add_clean_index($wpdb->links, 'link_visible');
}

WordPress Version: 3.7

/**
 * Execute changes made in WordPress 1.0.1.
 *
 * @since 1.0.1
 */
function upgrade_101()
{
    global $wpdb;
    // Clean up indices, add a few
    add_clean_index($wpdb->posts, 'post_name');
    add_clean_index($wpdb->posts, 'post_status');
    add_clean_index($wpdb->categories, 'category_nicename');
    add_clean_index($wpdb->comments, 'comment_approved');
    add_clean_index($wpdb->comments, 'comment_post_ID');
    add_clean_index($wpdb->links, 'link_category');
    add_clean_index($wpdb->links, 'link_visible');
}