Make WordPress Core

Opened 18 years ago

Closed 11 years ago

#8877 closed defect (bug) (wontfix)

dotclear import don't set the post category

Reported by: olivM Owned by: westi
Priority: low Milestone:
Component: Import Version:
Severity: normal Keywords: needs-patch
Cc: Focuses:

Description (last modified by Denis-de-Bernardy)

when importing from dotclear, all the posts are set only to the default category.

i think the problem is due to the fact that wp_set_post_categories do nothing if we pass it only one category (don't know why...)

( in /wp-admin/import/dotclear.php, line 479 )

				// Make Post-to-Category associations
				$cats = array();
				$category1 = get_category_by_slug($post_cat_name);
				$category1 = $category1->term_id;

should be

				// Make Post-to-Category associations
				$cats = array(get_option('default_category'));
				$category1 = get_category_by_slug($post_cat_name);
				$category1 = $category1->term_id;

Change History (7)

#1 @westi
18 years ago

  • Keywords reporter-feedback added
  • Owner set to westi
  • Status newassigned

Looks like there may be a similar issue with the TextPattern importer too.

I don't see how the code was ever meant to work.

It will never call wp_set_post_categories() as the array will always be empty.

#2 @Denis-de-Bernardy
17 years ago

  • Keywords needs-testing added; reporter-feedback removed
  • Milestone 2.7.2Future Release

Moving to future release.

#3 @Denis-de-Bernardy
17 years ago

  • Description modified (diff)
  • Milestone Future Release2.9
  • Priority highlow

#4 @Denis-de-Bernardy
17 years ago

  • Keywords needs-patch added; needs-testing removed

#5 @azaozz
17 years ago

  • Milestone 2.9Future Release

No patch.

#6 @SergeyBiryukov
14 years ago

  • Milestone Future ReleaseWordPress.org

#7 @chriscct7
11 years ago

  • Milestone WordPress.org
  • Resolutionwontfix
  • Status acceptedclosed

No requests in 7 years. Closing as wontfix

Note: See TracTickets for help on using tickets.