• v1.3.3 0412639e49

    UltimateByte released this 2026-04-11 00:55:05 +02:00 | 3 commits to main since this release

    💡 This release focuses on fixing hierarchy-related bugs across rendering, import/export, and admin ordering, ensuring subcategories and direct products behave correctly in all contexts.

    🐛 Bug Fixes

    • Root categories with both direct products and subcategories now correctly render direct products.
    • Direct products are automatically hidden/shown when a subcategory filter is active.
    • JSON import now uses a two-pass category insertion (insert all with parent_id=0, then resolve parent_slug → real DB IDs), fixing broken parent remapping across environments.
    • Export now includes a parent_slug field per category for reliable cross-site imports.
    • Replaced wp_check_filetype_and_ext() with pathinfo() for JSON file validation, fixing false rejections on some server configurations.
    • Added missing require_once class-settings.php in render_menu_block(), fixing a potential fatal error when the Gutenberg block renders without the Settings class loaded.

    Improvements

    • Category up/down reordering is now hierarchy-aware — moving a category also moves all its descendants as a group.
    • New AJAX endpoint lrob_update_category_hierarchy replaces lrob_update_positions, saving positions and parent IDs in a single call.
    • Event handlers for category move buttons switched to delegated events ($(document).on()), improving reliability with dynamically added elements.

    🧹 Code Cleanup

    • Indentation and alignment normalization across all modified files.
    • No breaking changes — full backward compatibility maintained.
    Downloads