Enqueued styles have an invalid media attribute
-
The wp_enqueue_style has an empty string media parameter resulting in an invalid media attribute in the generated style tag html. For example: line 219 in google-language-translator.php is
wp_enqueue_style( ‘google-language-translator’, plugins_url(‘css/style.css’, __FILE__), ”, PLUGIN_VER, ”);
I think the last parameter is best omitted so that the default ‘all’ is used, i.e.
wp_enqueue_style( ‘google-language-translator’, plugins_url(‘css/style.css’, __FILE__), ”, PLUGIN_VER );
There are four occurences of this problem on lines 209, 212, 219 and 222.
Tony
- The topic ‘Enqueued styles have an invalid media attribute’ is closed to new replies.