ranger c773a21c25 fix: stop the duplicate "Create a New WP Note" form rendering at the bottom of My Notes
WordPress registers BOTH the parent menu's callback AND a submenu's
callback against the same page hook when they share a menu_slug, and
runs both in registration order. The My Notes submenu was passing
wp_notes_create_page as its callback (a separate bare-form renderer
used by the Tools-menu shortcut), so its output was being appended
below the main page content — appearing as a duplicate "Create a
New WP Note" form at the bottom of the My Notes page.

The submenu now passes an empty string as the callback — the
standard WP pattern when a submenu just relabels the parent (same
slug, same target page). Only the parent's wp_notes_page_callback
renders now.

The wp_notes_create_page function is unchanged and still serves
the Tools → My Notes shortcut at ?page=wp-notes-create.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 07:54:54 +01:00
S
Description
A-WP-Notes v3.0.2 — minimalist parallel fork of A-WP-Notes. Plain WordPress-dashboard notes with import/export (no AI Chat Pro, no Personalities Marketplace, no gamification). Archived from /Local Sites/wordpress/.../a-wp-notes/ 2026-05-22.
913 KiB
Languages
PHP 98.1%
JavaScript 1.9%