• Resolved artyfarty

    (@artyfarty)


    Hi!

    I ran into a problem mentioned on two earlier threads concerning sgdgShortcodeLocalize not defined.

    I noticed that in some occasions (uncertain why) the calls to wp_enqueue_script( 'sgdg_gallery_init' ); and Script_And_Style_Helpers::add_script_configuration() in class-shortcode.php get called before Script_And_Style_Helpers::register_script('sgdg_gallery_init',[...])

    In that case the call to wp_add_inline_script() inside the add_script_configuration() method doesn’t do anything, leading to the localisation of the script not making it into the output. And that leads to the undefined sgdgShortcodeLocalize.

    I hope you can solve this somehow?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Script localisation issue’ is closed to new replies.