Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

drzraf
Copy link

@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