[Plugin: myEASYbackup] Scripts only in the backend
-
Hi Ugo,
could you please change your wp_enqueue_script calls to:
if (is_admin()) {
wp_enqueue_script( 'myeasybackup_core_js', MYEASYBACKUP_LINK.'js/myeasybackup.js.php', '', '20100313', false ); # 0.1.3
wp_enqueue_script( 'myeasywp_ajax_js', MYEASYBACKUP_LINK.'js/ajax_ro.js', '', '20100123', false ); # 0.1.3
}
This will prevent that the frontend loads the scripts.
Thanks,
Chris
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: myEASYbackup] Scripts only in the backend’ is closed to new replies.