WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#10462 closed defect (bug) (fixed)

WordPress export and import should support sticky post status

Reported by: josephscott Owned by: westi
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8.1
Component: Import Keywords: has-patch
Focuses: Cc:

Description

The WordPress export doesn't include the sticky post status of posts. My patches add a <wp:is_sticky></wp:is_sticky> item to the export format, with two legal values: zero and one. Zero means the post is not sticky and one means the post is sticky.

I've included a patch to the WordPress import that looks for <wp:is_sticky> and sets a post as sticky if the value is one.

Attachments (2)

wp-admin--includes--export.php.diff (1.0 KB) - added by josephscott 6 years ago.
wp-admin--import--wordpress.php.diff (875 bytes) - added by josephscott 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 @westi6 years ago

  • Owner set to westi
  • Status changed from new to reviewing

comment:2 @westi6 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

(In [11774]) Add support for sticky posts to the WXR exporter and importer. Fixes #10462 props josephscott.

Note: See TracTickets for help on using tickets.