Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #48015, comment 2


Ignore:
Timestamp:
09/11/2019 02:56:59 PM (5 years ago)
Author:
ChiefAlchemist
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #48015, comment 2

    initial v1  
    1 Also, the codex sez:
    2 
    3 **'fallback_cb'**
    4 (callable|bool) If the menu doesn't exists, a callback function will fire. Default is 'wp_page_menu'. Set to false for no fallback.
    5 
    6 https://developer.wordpress.org/reference/functions/wp_nav_menu/
    7 
    8 However, this is firing even when the menu DOES exist. That is, I defined a fallback_cb and it's always firing - even when I have a valid menu request (because I check it against $_wp_registered_nav_menus.
    9 
    10 Someone (me) or something (wp_nav_menu()) has lost its mind :)
     1Deleted