Created
July 12, 2014 19:56
-
-
Save zackkatz/bfbddab280ae48202b69 to your computer and use it in GitHub Desktop.
The Debug Bar plugin breaks on Gravity Forms admin pages when No Conflict Mode is turned on. This plugin fixes that issue.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Debug Bar for Gravity Forms No-Conflict Mode | |
Plugin URI: http://katz.co | |
Description: Enable debug bar when Gravity Forms has No Conflict Mode on. | |
Version: 1.0 | |
Author: Katz Web Services, Inc. | |
Author URI: http://katz.co | |
*/ | |
add_filter( 'gform_noconflict_scripts', 'debug_bar_add_gf_noconflict'); | |
add_filter( 'gform_noconflict_styles', 'debug_bar_add_gf_noconflict'); | |
function debug_bar_add_gf_noconflict( $items ) { | |
$items[] = 'debug-bar'; | |
return $items; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment