Compatibility with Max Mega Menu
-
Hi,
One of the latest updates has broken compatibility with Max Mega Menu – the assets are no longer being loaded on the nav-menus.php page (where we need them).
In the admin_setup function, you have this:
$should_load = 'customize' == $screen->base || 'widgets' == $screen->base;
Wouuld you be able to refactor that code slightly and add in a filter – so that I can add “nav-menus” as one of the screens to load the assets on? Maybe something like:
$should_load = false; $screens_to_load = apply_filters('image_widget_load_screens', array('customize', 'widgets')); foreach ( $screens_to_load as $screen_to_load ) { if ( $screen_to_load == $screen->base ) { $should_load = true; break; } }
Regards,
Tom
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Compatibility with Max Mega Menu’ is closed to new replies.