upgrade_210()
Execute changes made in WordPress 2.1.
Description Description
Source Source
File: wp-admin/includes/upgrade.php
879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 | $wpdb ->insert( $wpdb ->post2cat, array ( 'post_id' => $post ->ID, 'category_id' => $post ->post_category, ) ); } } endif ; } /** * 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' ); } /** * Execute changes made in WordPress 1.2. * * @ignore * @since 1.2.0 |
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |