• I’ve encountered strange behavior. Some time ago I created a widget (theme widget) that reads a content from a 3rd party site, modifies it a bit (adds some styling) and puts modified content in an iframe on a page. Because iframe content is put asynchronously, I call wp-load.php inside php file that outputs iframe content.
    Everything worked as it suppose to, along with NextGEN Gallery 1.9.12.
    I’ve updated NextGEN plugin to the latest version (2.0.66.17) and the widget got broken. For some reason, when wp-load is called, the NG plugin fires WP ‘init’ action, so all my scripts (theme styling) enqueued in a function hooked to WP ‘init’ event are added to that iframe content.
    Is there any way to disable that ‘feature’?

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @incellion – Although I cannot guarantee it will work, have you tried defining NGG_SKIP_LOAD_SCRIPTS to true for your widget only?

    – Cais.

Viewing 1 replies (of 1 total)
  • The topic ‘NextGEN adding scripts to iframe’ is closed to new replies.