Clark-Nikdel-Powell / WP-Admin-Command-Palette

Optimize WordPress admin navigation with a modal window to search for and navigate directly to WordPress admin pages.
GNU General Public License v2.0
4 stars 0 forks source link

Admin Pages array global variables aren't accessible for AJAX #21

Closed jhned closed 9 years ago

jhned commented 9 years ago

The $menu and $sub_menu globals used to construct the Admin Pages Array are not accessible when AJAX fires, causing them to be left out from the search array.

jhned commented 9 years ago

Looks like admin pages work if ACP_CACHE (soon to be DAN_CACHE) is set to true. Not really sure why that makes it work, and I'm ok with that.