• With query monitor enabled get warning “script missing dependency”

    file shortcode-for-current-date.php line 105

    Fixed

    
    wp_register_script(
        	'shortcode-for-current-date-script',
        	plugins_url('dist/script.js', __FILE__),
        	array()
      	);
    

    Was:

    
    wp_register_script(
        	'shortcode-for-current-date-script',
        	plugins_url('dist/script.js', __FILE__),
        	array('')
      	);
    
  • The topic ‘Pass empty array in wp_register_script instead of array with empty value’ is closed to new replies.