Support » Plugin: Debug Objects » Bug Report: Ajax not working when Debug_Objects_Theme activated

  • Resolved neyl


    Ajax not working when Theme information is selected. This is because of line 40 in class-theme.php
    add_action( 'shutdown', array( $this, 'get_list_ids' ) );
    which calls get_list_ids() #182. and

    				var els = [];
    				jQuery( '[id]' ).each( function () {
    					els.push( );
    				} );
    				var ids = '#' + els.join( '<br />#' );
    				jQuery( '#register_ids' ).html( ids );

    gets added to ajax response which breaks ajax jquery code which is waiting for valid JSON response. Please advise me if there is a way to write jquery ajax code that will not break when markup is added to response or if the plugin is responsible?
    Anyway thanks for great plugin that rocks!!!

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Bueltge


    I think that the problem is, that jquery on this point not loaded; to early for my small script. I will change this and include the script via wp_enqueue_script() and then it is easier to control, that jquery is loaded. I add this to my issue list on the repo:

    Thanks for the hint. You can also use the current version of the github repo, is with more features, but not ready for a stable release on

Viewing 1 replies (of 1 total)
  • The topic ‘Bug Report: Ajax not working when Debug_Objects_Theme activated’ is closed to new replies.