'Alternative' Shortcode Bug
-
Hello,
I believe I’ve found a bug in your plugin when using a shortcode and an alternative. Your code never actually uses the “content” of the shortcode and a warning is issued.
So, [cmwizard …]THIS IS NEVER USED[/cmwizard].
I believe I’ve been able to solve it (at least insofar as I got it to work, you may be more knowledgeable of how to fix it properly.)
Both the warning an the fix occur at custom-menu-wizard.php at line 804. The warning is about an undefined index when you call apply_filters( ‘custom_menu_wizard_sanitize_alternative’, $instance[‘switch_to’] );
The fix was to replace $instance[‘switch_to’] by $content. So you get:
$instance[‘switch_to’] = apply_filters( ‘custom_menu_wizard_sanitize_alternative’, $content );I’d appreciate it if you could fix this with the next update.
Thanks for your help and for building this great plugin!
The topic ‘'Alternative' Shortcode Bug’ is closed to new replies.