Support » Plugin: WordPress phpinfo() » [Plugin: WordPress phpinfo()] Javascript error

Viewing 4 replies - 1 through 4 (of 4 total)
  • christopherross

    (@christopherross)

    Thanks Prause, could you give me an example of a plugin it doesn’t work with so I can work on it? Chris

    Prause

    (@prause)

    It is WP Admin Menu, see

    Prause

    (@prause)

    Sorry, once more:
    WP Admin Menu

    jeremyHixon

    (@jeremyhixon)

    It’s because the jQuery in the wordpress-php-info plugin isn’t in noConflict mode. Replacing the code in wordpress-php-info\common\wp-admin.js with the following should fix it. It fixed it on my dev box.

    // Set up jQuery in noConflict() mode
    var $wphp = jQuery.noConflict();
    
    $wphp(document).ready(function() {
    
    	//ACCORDION BUTTON ACTION
    	$wphp('div.accordionButton').click(function() {
    		$wphp('div.accordionContent').slideUp('normal');
    		$wphp(this).next().slideDown('normal');
    	});
    
    	//HIDE THE DIVS ON PAGE LOAD
    	$wphp('div.accordionContent').hide();
    
    });
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordPress phpinfo()] Javascript error’ is closed to new replies.