Support » Plugin: Auto Image Alt Attribute » Problem with jQuery, here is the fix

  • Hi,

    I just installed your plugin and it’s awesome.

    But I needed to fix something before using it since it was throwing an error.

    In the file auto-image-alt.php, there is this line:

    wp_enqueue_script( ‘auto_image_alt’, plugins_url(‘js/auto_image_alt.js’, __FILE__ ), array(), ”, true);

    To make it work, I changed array() to Array(‘jquery’) since it depends on jQuery to work.

    Here is the corrected line of code:

    wp_enqueue_script( ‘auto_image_alt’, plugins_url(‘js/auto_image_alt.js’, __FILE__ ), Array(‘jquery’), ”, true);

    Thanks again for your work!

    • This topic was modified 2 years, 3 months ago by janvitos.
  • The topic ‘Problem with jQuery, here is the fix’ is closed to new replies.