We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Post class, function save_attachments creates $this->attachment_ids array with keys prefixed with attachment prefix. L821
save_attachments
$this->attachment_ids
$this->attachment_ids[ $attachment_prefix . $attachment_id ] = Api::set_prop( $attachment, 'post_id', $attachment_post_id );
In same class, function save_meta() tries to access saved attachment ids with only the attachment id as a key: L961
save_meta()
$attachment_post_id = $this->attachment_ids[ $value ] ?? '';
resulting missing $attachment_post_id and failed import. Adding prefix also to L961 seems to fix the issue:
$attachment_post_id
$attachment_prefix = Settings::get('attachment_prefix') $attachment_post_id = $this->attachment_ids[ $attachment_prefix . $value ] ?? '';
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
In Post class, function
save_attachments
creates$this->attachment_ids
array with keys prefixed with attachment prefix.L821
In same class, function
save_meta()
tries to access saved attachment ids with only the attachment id as a key: L961resulting missing
$attachment_post_id
and failed import. Adding prefix also to L961 seems to fix the issue:The text was updated successfully, but these errors were encountered: