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

[Data Liberation] Wrong comment meta key values #2067

Open
zaerl opened this issue Dec 10, 2024 · 0 comments
Open

[Data Liberation] Wrong comment meta key values #2067

zaerl opened this issue Dec 10, 2024 · 0 comments
Assignees
Labels
[Aspect] Data Liberation [Type] Bug An existing feature does not function as intended

Comments

@zaerl
Copy link
Collaborator

zaerl commented Dec 10, 2024

A <wp:commentmeta> fields are loaded as key/value here. The real name is meta_key/meta_value. See the WordPress core importer unit tests data here: https://github.com/WordPress/wordpress-importer/blob/master/phpunit/data/test-serialized-comment-meta.xml#L74-L75

<br />
<b>Warning</b>:  Undefined array key "value" in <b>/wordpress/wp-content/plugins/data-liberation/src/import/WP_Entity_Importer.php</b> on line <b>1081</b><br />
<br />
<b>Warning</b>:  Undefined array key "key" in <b>/wordpress/wp-content/plugins/data-liberation/src/import/WP_Entity_Importer.php</b> on line <b>1082</b><br />

About to fix it here: #2030. Changing the key names is enough.

@zaerl zaerl added [Aspect] Data Liberation [Type] Bug An existing feature does not function as intended labels Dec 10, 2024
@zaerl zaerl self-assigned this Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Aspect] Data Liberation [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant