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
This commit is contained in:
Andrew Ozz 2009-04-09 13:46:10 +00:00
parent ce54daf6ef
commit 5ac1f0112b
2 changed files with 0 additions and 10 deletions

View File

@ -91,7 +91,6 @@ CREATE TABLE $wpdb->links (
link_notes mediumtext NOT NULL, link_notes mediumtext NOT NULL,
link_rss varchar(255) NOT NULL default '', link_rss varchar(255) NOT NULL default '',
PRIMARY KEY (link_id), PRIMARY KEY (link_id),
KEY link_category (link_category),
KEY link_visible (link_visible) KEY link_visible (link_visible)
) $charset_collate; ) $charset_collate;
CREATE TABLE $wpdb->options ( CREATE TABLE $wpdb->options (

View File

@ -112,43 +112,36 @@ function wp_install_defaults($user_id) {
$default_links = array(); $default_links = array();
$default_links[] = array( 'link_url' => 'http://codex.wordpress.org/', $default_links[] = array( 'link_url' => 'http://codex.wordpress.org/',
'link_name' => 'Documentation', 'link_name' => 'Documentation',
'link_category' => 0,
'link_rss' => '', 'link_rss' => '',
'link_notes' => ''); 'link_notes' => '');
$default_links[] = array( 'link_url' => 'http://wordpress.org/development/', $default_links[] = array( 'link_url' => 'http://wordpress.org/development/',
'link_name' => 'Development Blog', 'link_name' => 'Development Blog',
'link_category' => 0,
'link_rss' => 'http://wordpress.org/development/feed/', 'link_rss' => 'http://wordpress.org/development/feed/',
'link_notes' => ''); 'link_notes' => '');
$default_links[] = array( 'link_url' => 'http://wordpress.org/extend/ideas/', $default_links[] = array( 'link_url' => 'http://wordpress.org/extend/ideas/',
'link_name' => 'Suggest Ideas', 'link_name' => 'Suggest Ideas',
'link_category' => 0,
'link_rss' => '', 'link_rss' => '',
'link_notes' =>''); 'link_notes' =>'');
$default_links[] = array( 'link_url' => 'http://wordpress.org/support/', $default_links[] = array( 'link_url' => 'http://wordpress.org/support/',
'link_name' => 'Support Forum', 'link_name' => 'Support Forum',
'link_category' => 0,
'link_rss' => '', 'link_rss' => '',
'link_notes' =>''); 'link_notes' =>'');
$default_links[] = array( 'link_url' => 'http://wordpress.org/extend/plugins/', $default_links[] = array( 'link_url' => 'http://wordpress.org/extend/plugins/',
'link_name' => 'Plugins', 'link_name' => 'Plugins',
'link_category' => 0,
'link_rss' => '', 'link_rss' => '',
'link_notes' =>''); 'link_notes' =>'');
$default_links[] = array( 'link_url' => 'http://wordpress.org/extend/themes/', $default_links[] = array( 'link_url' => 'http://wordpress.org/extend/themes/',
'link_name' => 'Themes', 'link_name' => 'Themes',
'link_category' => 0,
'link_rss' => '', 'link_rss' => '',
'link_notes' =>''); 'link_notes' =>'');
$default_links[] = array( 'link_url' => 'http://planet.wordpress.org/', $default_links[] = array( 'link_url' => 'http://planet.wordpress.org/',
'link_name' => 'WordPress Planet', 'link_name' => 'WordPress Planet',
'link_category' => 0,
'link_rss' => '', 'link_rss' => '',
'link_notes' =>''); '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_content' => __('Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!'),
'post_excerpt' => '', 'post_excerpt' => '',
'post_title' => __('Hello world!'), 'post_title' => __('Hello world!'),
'post_category' => 0,
/* translators: Default post slug */ /* translators: Default post slug */
'post_name' => _x('hello-world', 'Default post slug'), 'post_name' => _x('hello-world', 'Default post slug'),
'post_modified' => $now, '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_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_excerpt' => '',
'post_title' => __('About'), 'post_title' => __('About'),
'post_category' => '',
/* translators: Default page slug */ /* translators: Default page slug */
'post_name' => _x('about', 'Default page slug'), 'post_name' => _x('about', 'Default page slug'),
'post_modified' => $now, 'post_modified' => $now,