Changeset 10810 for trunk/wp-admin/includes/upgrade.php
- Timestamp:
- 03/18/2009 02:43:45 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/upgrade.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r10767 r10810 97 97 /* translators: Default category slug */ 98 98 $cat_slug = sanitize_title(_x('Uncategorized', 'Default category slug')); 99 99 100 100 $wpdb->insert( $wpdb->terms, array('name' => $cat_name, 'slug' => $cat_slug, 'term_group' => 0) ); 101 101 $wpdb->insert( $wpdb->term_taxonomy, array('term_id' => '1', 'taxonomy' => 'category', 'description' => '', 'parent' => 0, 'count' => 1)); … … 105 105 /* translators: Default link category slug */ 106 106 $cat_slug = sanitize_title(_x('Blogroll', 'Default link category slug')); 107 107 108 108 $wpdb->insert( $wpdb->terms, array('name' => $cat_name, 'slug' => $cat_slug, 'term_group' => 0) ); 109 109 $wpdb->insert( $wpdb->term_taxonomy, array('term_id' => '2', 'taxonomy' => 'link_category', 'description' => '', 'parent' => 0, 'count' => 7)); … … 118 118 119 119 $default_links[] = array( 'link_url' => 'http://wordpress.org/development/', 120 'link_name' => 'Development Blog', 120 'link_name' => 'Development Blog', 121 121 'link_category' => 0, 122 122 'link_rss' => 'http://wordpress.org/development/feed/', … … 162 162 $now_gmt = gmdate('Y-m-d H:i:s'); 163 163 $first_post_guid = get_option('home') . '/?p=1'; 164 164 165 165 $wpdb->insert( $wpdb->posts, array( 166 166 'post_author' => $user_id, … … 177 177 'guid' => $first_post_guid, 178 178 'comment_count' => 1, 179 'to_ping' => '', 179 'to_ping' => '', 180 180 'pinged' => '', 181 181 'post_content_filtered' => '' … … 209 209 'guid' => $first_post_guid, 210 210 'post_type' => 'page', 211 'to_ping' => '', 211 'to_ping' => '', 212 212 'pinged' => '', 213 213 'post_content_filtered' => '' … … 519 519 $comment_content = deslash($comment->comment_content); 520 520 $comment_author = deslash($comment->comment_author); 521 521 522 522 $wpdb->update($wpdb->comments, compact('comment_content', 'comment_author'), array('comment_ID' => $comment->comment_ID) ); 523 523 } … … 530 530 $link_name = deslash($link->link_name); 531 531 $link_description = deslash($link->link_description); 532 532 533 533 $wpdb->update( $wpdb->links, compact('link_name', 'link_description'), array('link_id' => $link->link_id) ); 534 534 } … … 642 642 foreach ($objects as $object) { 643 643 $wpdb->update( $wpdb->posts, array( 'post_status' => 'attachment', 644 'post_mime_type' => $object->post_type, 644 'post_mime_type' => $object->post_type, 645 645 'post_type' => ''), 646 646 array( 'ID' => $object->ID ) );
Note: See TracChangeset
for help on using the changeset viewer.