Just some Notices with debug true
-
I changed/added following in
external-media-without-import.php
because of the nasty notices.
Removed the code betweennamespace emwi;
and the firstadd_action
lines
and added following code to get rid of those nasty notices:function loading_scripts($hook) { $js_ver = date("ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . '/external-media-without-import.js' )); $css_ver = date("ymd-Gis", filemtime( plugin_dir_path( __FILE__ ) . '/external-media-without-import.css' )); wp_enqueue_script( 'emwi-js', plugins_url( '/external-media-without-import.js', __FILE__ ), array(), $js_ver ); wp_register_style( 'emwi-css', plugins_url( '/external-media-without-import.css', __FILE__ ), false, $css_ver ); wp_enqueue_style( 'emwi-css' ); } add_action('wp_enqueue_scripts', 'loading_scripts');
Hope it helps somebody.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Just some Notices with debug true’ is closed to new replies.