From 5ac1f0112b3adbf6474815825ecd0333deb178b1 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 9 Apr 2009 13:46:10 +0000 Subject: [PATCH] Remove post_category and link_category from wp_install_defaults(), props Denis-de-Bernardy, fixes #9493 git-svn-id: https://develop.svn.wordpress.org/trunk@10902 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/schema.php | 1 - wp-admin/includes/upgrade.php | 9 --------- 2 files changed, 10 deletions(-) diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index f643740628..53f3ccaddc 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -91,7 +91,6 @@ CREATE TABLE $wpdb->links ( link_notes mediumtext NOT NULL, link_rss varchar(255) NOT NULL default '', PRIMARY KEY (link_id), - KEY link_category (link_category), KEY link_visible (link_visible) ) $charset_collate; CREATE TABLE $wpdb->options ( diff --git a/wp-admin/includes/upgrade.php b/wp-admin/includes/upgrade.php index 200e8d1055..01991106ac 100644 --- a/wp-admin/includes/upgrade.php +++ b/wp-admin/includes/upgrade.php @@ -112,43 +112,36 @@ function wp_install_defaults($user_id) { $default_links = array(); $default_links[] = array( 'link_url' => 'http://codex.wordpress.org/', 'link_name' => 'Documentation', - 'link_category' => 0, 'link_rss' => '', 'link_notes' => ''); $default_links[] = array( 'link_url' => 'http://wordpress.org/development/', 'link_name' => 'Development Blog', - 'link_category' => 0, 'link_rss' => 'http://wordpress.org/development/feed/', 'link_notes' => ''); $default_links[] = array( 'link_url' => 'http://wordpress.org/extend/ideas/', 'link_name' => 'Suggest Ideas', - 'link_category' => 0, 'link_rss' => '', 'link_notes' =>''); $default_links[] = array( 'link_url' => 'http://wordpress.org/support/', 'link_name' => 'Support Forum', - 'link_category' => 0, 'link_rss' => '', 'link_notes' =>''); $default_links[] = array( 'link_url' => 'http://wordpress.org/extend/plugins/', 'link_name' => 'Plugins', - 'link_category' => 0, 'link_rss' => '', 'link_notes' =>''); $default_links[] = array( 'link_url' => 'http://wordpress.org/extend/themes/', 'link_name' => 'Themes', - 'link_category' => 0, 'link_rss' => '', 'link_notes' =>''); $default_links[] = array( 'link_url' => 'http://planet.wordpress.org/', 'link_name' => 'WordPress Planet', - 'link_category' => 0, 'link_rss' => '', 'link_notes' =>''); @@ -169,7 +162,6 @@ function wp_install_defaults($user_id) { 'post_content' => __('Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!'), 'post_excerpt' => '', 'post_title' => __('Hello world!'), - 'post_category' => 0, /* translators: Default post slug */ 'post_name' => _x('hello-world', 'Default post slug'), 'post_modified' => $now, @@ -201,7 +193,6 @@ function wp_install_defaults($user_id) { 'post_content' => __('This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.'), 'post_excerpt' => '', 'post_title' => __('About'), - 'post_category' => '', /* translators: Default page slug */ 'post_name' => _x('about', 'Default page slug'), 'post_modified' => $now,