• v3.4.1 431c31a95b

    fix: Restore button now sends you to Active tab where the note lives (v3.4.1)

    ranger released this 2026-05-26 08:07:27 +00:00 | 1 commits to main since this release

    After v3.4.0 introduced the Active/Completed tab strip, clicking
    Restore on a completed note appeared to do nothing — the restored
    note never showed up. David: "the complete log does not return
    to active."

    Root cause: the Restore handler in wp_notes_page_callback() was
    the only action handler without a wp_redirect() + exit; after its
    update_option() calls. Every other handler (new note, mark-as-done
    single, mark-as-done bulk) had one. So Restore relied on the page
    falling through and re-rendering, which used to work when both
    Active and Completed sections rendered on the same page (user
    could glance up to see the restored note in the Active section).

    v3.4.0's single-pane tab render exposed the latent bug: after
    Restore, the URL still says ?tab=completed, so only Completed
    re-renders (minus the now-restored note), and the restored note
    is invisible on Active.

    Fix: add the missing redirect to admin.php?page=wp-notes (defaults
    to Active tab) after the restore completes. The restored note now
    appears in its new home immediately.

    Patch bump — bug fix only, no API or behavioural changes beyond
    the fix itself. Other handlers, storage model, tab structure, and
    CSS are unchanged.

    Downloads