Skip to content

Saving an import without opening Map Content clears Post Taxonomy selections #1385

Description

@pirate-bot

Summary

Saved Post Taxonomy selections can disappear when an existing import is saved without first opening Map Content. Expected behavior is for unchanged selections to survive edits elsewhere in the import. Instead, the selections are cleared, which can remove the import's configured category-assignment behavior.

Customer context

  • Product / area: Feedzy import editor, Map Content → Post Taxonomy.
  • Version: Lite 5.2.15 with Pro 3.2.4; the relevant behavior remains in Lite 5.2.16.
  • Environment: WordPress 7.1.4, PHP 8.3.36, Hello Elementor 3.5.2.
  • Reported symptom: One import lost its auto-category selection and a publisher taxonomy selection; the customer restored them.
  • Impact: Saved classification choices disappear from the affected import. The transcript does not establish deletion of global Auto Categories Mapping rules.

Reproduction notes

Source-derived verification scenario, not runtime-reproduced:

  1. Configure and save an import with a Post Taxonomy selection.
  2. Reopen the existing import.
  3. Leave Map Content closed and edit only the import title or General Feed Settings.
  4. Save the import.
  5. Reopen Map Content and inspect the saved selection.
    The customer reported disappearing selections but did not supply this exact edit sequence.

Diagnosis

Conclusion

Source inspection confirms that saving an existing import without opening Map Content can delete its saved Post Taxonomy selections. The editor initially renders that submitted field empty, while the save handler interprets its omission as an instruction to clear it. This explains the reported kind of configuration loss, although the customer's exact edit sequence was not captured.

Where this likely occurs

  • includes/views/import-metabox-edit.php — Post Taxonomy controls within Feedzy_Rss_Feeds_Import::add_feedzy_import_metaboxes(), lines 160–186: stores saved selections in the post-type control's data-tax attribute, while the submitted feedzy_post_terms multiselect contains no options initially.
  • includes/views/js/import-metabox-edit.js — initImportScreen(), v5.2.15 lines 509–556: binds taxonomy loading to post-type changes without triggering that change on initialization; its save-button handler submits the form directly.
  • includes/views/js/import-metabox-edit.js — feedzyAccordion(), v5.2.15 lines 1385–1405: triggers taxonomy loading when Map Content is opened. update_taxonomy(), approx. lines 351–479, populates the selection through AJAX.
  • includes/admin/feedzy-rss-feeds-import.php — Feedzy_Rss_Feeds_Import::save_feedzy_import_feed_meta(), lines 724 and 752–775: normalizes an omitted import_post_term to an empty string and subsequently deletes its metadata.
  • Regression evidence: commit 7cbb02e08eb2004b57ddbc6de489eb163143e789, first contained in v5.1.0, introduced the missing-field-to-empty assignment. In v5.0.10 the handler only iterates submitted metadata, so an omitted taxonomy field is not rewritten. Earlier commit fa943f9aa74e598da0ec678eef3a97e2bb140b38 introduced accordion-dependent loading; it predates this destructive save behavior. The combined path remains in v5.2.15 and v5.2.16.

Engineering notes

This is one field-persistence defect: the auto-category marker and ordinary taxonomy terms are values of the same import_post_term selection. The report does not demonstrate that global keyword-mapping rules were erased. Saving without opening Map Content is sufficient for the inspected path; an AJAX race is not required. Pro's term-processing hooks were inspected, and no alternate initial hydration or pre-submit preservation path was found. The diagnosis relies on plugin source; WordPress metadata operations were not runtime-tested here. Open issue #947 concerns Tagify interactions in automated tests, not this omitted taxonomy field; closed issue #826 concerns a disappearing placeholder, not saved selection loss.

Test coverage status

tests/test-import.php, approx. lines 107–155, explicitly supplies import_post_term and verifies the stored category. It does not exercise an existing import saved with the taxonomy selector uninitialized. Inspected cases in tests/e2e/specs/import.spec.js, approx. lines 596–656, open Map Content for their workflows and do not check this preservation scenario. No relevant coverage was found during inspection. Tests were not executed; PHP is unavailable in the environment.

What to verify or explore next

  • Save an import with Post Taxonomy selections, reopen it, edit its title or General Feed Settings without opening Map Content, save, and inspect the persisted selections.
  • Compare the same workflow against v5.0.10 and v5.1.0.
  • Verify preservation separately with a standard category, an auto-category marker, and a custom taxonomy term.
  • Compare saves made before and after opening Map Content and completing its taxonomy request.

Unknowns / follow-up

The customer's precise sequence before the values disappeared is unknown. No customer site was accessed and no full WordPress runtime reproduction was performed.

Confidence

Confidence: 98/100

The initially empty submitted control and unconditional missing-field deletion establish a reachable data-loss path; tagged history identifies the release that introduced destructive persistence.


Source: HelpScout #3446381319
Generated by bug-report-triage (ID: bug-report-triage_6af8da03bc39a4.56329983)

Activity

  1. added
    regression
    on Nov 14, 2026
  2. added theissue type on Nov 14, 2026
  3. added
    customer report
    on Nov 14, 2026
  4. girishpanchal30 commented on Nov 16, 2026

    @girishpanchal30
    Contributor

    i have fixed it with PR #1387

  5. milicavs commented on Nov 17, 2026

    @milicavs

    🧪 QA steps and test links

    Saving an existing import without opening Map Content wipes its saved Post Taxonomy selections (categories, custom taxonomy terms, Auto Categories). Any small edit, such as renaming the import, silently removes the category assignment.

    Link Build Bot check
    Reproduce the bug Feedzy 5.2.16 (released) ✅ Reproduced: after renaming and saving, Map Content showed Post Taxonomy empty
    Verify the fix PR #1387 build 6306c1c ✅ Fixed: after the same save, Post Taxonomy still showed QA News

    In the links:

    • Steps 1 and 2 are already done, and the links open on the import's edit screen with Map Content closed.
    • The import "QA taxonomy import" has the category QA News saved under Post Taxonomy.
    • Tools → QA Logs shows debug.log.

    Reproduce on Feedzy 5.2.16:

    1. Feedzy → Import Posts → Add New. Add any feed source, open Map Content, pick a category under Post Taxonomy, and click Save.
    2. Open the import again from Feedzy → Import Posts. Leave Map Content closed.
    3. Change only the import name and click Save.
    4. Open the import again and open Map Content.
    • Bug: Post Taxonomy is empty; the category is gone.
    • Fixed: the category you picked is still selected.
    Edge cases
    • Open Map Content, wait for the terms to load, remove every term, save and reopen: Post Taxonomy stays empty (clearing on purpose still works).
    • Change Post Type, wait for its taxonomies to load, pick a term, save and reopen: the new term is saved.
    • With Pro, select Auto Categories by keyword plus a category, then save without opening Map Content: both stay selected.
    • A custom taxonomy term (e.g. a tag) saved without opening Map Content: it stays selected.
    • Change a General Feed Settings field instead of the name, then save: the terms stay.

    Fix: #1387 (open)

  6. pirate-bot commented on Nov 17, 2026

    @pirate-bot
    ContributorAuthor

    QA agent — 🟢 Passing checks · Taxonomy selections survived the reported save on the candidate.

    The reported loss reproduced on the base build but not on the candidate, including with the customer's plugin and theme versions. Category, auto-category and custom-taxonomy selections survived the tested saves; clearing, post-type changes, limited lists and delayed or failed loads also worked. The Pro license was simulated. An unusual import with no taxonomies cleared old selections on both builds and needs a decision.

    Worth a human look

    1. Investigate whether an import whose post type has no taxonomies should retain old selections: opening Map Content and saving cleared them on both the base and candidate builds.
    2. Check whether a loading message should appear while the taxonomy list reloads; its element text did not contain one during the delayed test.
    3. Try the customer's original import and edit sequence, which were not supplied.
    Checks (8 passed)
    • ✅ In Feedzy Pro, select a category and Auto Categories by keyword on an import and save; reopening Map Content shows both selections.
    • ✅ After changing only the import title and saving with Map Content closed, the previously selected category and Auto Categories marker remain saved and selected on reopening.
    • ✅ A saved custom taxonomy term remains selected after editing a General Feed Settings field and saving without opening Map Content.
    • ✅ Removing all selected terms after Map Content loads and saving leaves Post Taxonomy empty when reopened.
    • ✅ Changing the Post Type, selecting a term from its loaded taxonomies and saving retains the new term when reopened.
    • ✅ A selected category beyond the taxonomy limit stays listed and selected after reopening Map Content and saving again.
    • ✅ Saving while the taxonomy request is pending or after it fails preserves the previously saved selection.
    • ✅ A late taxonomy response from an earlier Post Type does not replace the later Post Type's terms or enable clearing while the latest request is pending, and saving retains the correct selection.

    Full report, evidence and session trail

  7. pirate-bot commented on Nov 19, 2026

    @pirate-bot
    ContributorAuthor

    🎉 This issue has been resolved in version 5.2.17 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  8. added
    released
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug-reportbug-report-triagecustomer reportregressionreleased

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions