Skip to content

Allow post <xs:id> to be 0#8

Open
drzraf wants to merge 1 commit intopbiron:masterfrom
drzraf:patch-1
Open

Allow post <xs:id> to be 0#8
drzraf wants to merge 1 commit intopbiron:masterfrom
drzraf:patch-1

Conversation

@drzraf
Copy link
Copy Markdown

@drzraf drzraf commented Apr 9, 2018

WXR is a format defining export and import.
During a WordPress export 0 is not a valid value.
But an import may originate from a non-WordPress source (eg: another CMS).
In most case such posts will be numbered too what would easily map to WordPress <xs:id>.
But in WordPress, (file) attachments are also WP_post and attachment from incoming source may not having unique identifiers or identifiers not being integers.
Having to generate random integers is not logical.

That would makes sense to allow <xs:id> to be 0 for imported WXR files.

Allow post <xs:id> to be 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant