WordPress at Your Fingertips
function is not described

upgrade_101() WP 1.0.1

Execute changes made in WordPress 1.0.1.

No Hooks.

Return

null. Nothing.

Usage

upgrade_101();

Notes

  • Global. wpdb. $wpdb WordPress database abstraction object.

Changelog

Since 1.0.1 Introduced.

Code of upgrade_101() WP 5.8.2

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' );
}