• Resolved anonymized-14293447

    (@anonymized-14293447)


    Hello, you might remember some time ago I had an issue concerning Postman wizard in my installation, which wasn’t working. You then suggested me to add this code to function.php:

    // DEQUE GLOBO SCRIPTS FROM THE ADMNISTRATION PAGES
    function postman_fix_globo_jquerymap() {
    	// these first two resources present a conflict for Postman
    	wp_dequeue_script ( 'jquerymap' );
    	wp_dequeue_style ( 'bootstrap-css' );
    	// the rest may cause conflicts with other plugins
    	wp_dequeue_script ( 'google-maps' );
    	wp_dequeue_script ( 'gmaps' );
    	wp_dequeue_script ( 'angular' );
    	wp_dequeue_script ( 'angular-strap' );
    	wp_dequeue_script ( 'angular-bootstrap' );
    	wp_dequeue_script ( 'angular-strap-tpl' );
    	wp_dequeue_script ( 'angular-custom' );
    	wp_dequeue_script ( 'sortable' );
    	wp_dequeue_style ( 'fontawesome' );
    }
    // add a hook for the Globo admin script fix
    add_action ( 'admin_enqueue_scripts', 'postman_fix_globo_jquerymap', 100 );

    I have nailed down a conflict between this code and one particular feature of the theme I’m using. If I delete that code then the feature works, but the wizard won’t. Is there a way around this?

    https://ww.wp.xz.cn/plugins/postman-smtp/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jason Hendriks

    (@jasonhendriks)

    Yes, I remember.

    I don’t know what theme feature breaks, so I can’t tel you how to fix it. I assume it’s something to do with administration, since the change we made only runs when an administrator is logged in.

    Have you told Globo about this problem? While I don’t mind helping you figure out Globo’s code, I haven’t made $5000 selling Globo either 😉

    Anyway, once Postman is configured you really shouldn’t need to run the Wizard again. Why not just delete the fix?

    Thread Starter anonymized-14293447

    (@anonymized-14293447)

    Yep, for now I deleted the fix. I just like to have all features working 🙂 Globo’s feature is a subscription plugin hardcoded in the theme. I have been mentioning it to them, and then I discovered it was caused by the fix for Postman. The problem actually came about when WP upgraded to newest version, so you might also consider this in your future updates (which I’m glad to see they come almost daily). Cheers

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    so you might also consider this in your future updates

    Huh? Consider what for future updates? I’m not coding a fix for Globo into my plugin.

    Thread Starter anonymized-14293447

    (@anonymized-14293447)

    🙂
    I meant that sometimes solid plugins stop working when WP releases new versions (of course this was not the case).

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

The topic ‘conflict within WP if hacking function.php’ is closed to new replies.