Comment reply script is not working
-
Hi,
I got the following error back from the Theme Check.
Code Quality: FAIL
FAIL: The comment reply script is not working. You should hook into wp_print_scripts instead of get_header in Line 109 of functions.php. The get_header action is for including template files. Also, you can combine all your logic like so:function theme_queue_js(){ if (!is_admin() && is_singular() && comments_open() && (get_option('thread_comments') == 1)) wp_enqueue_script( 'comment-reply' ); add_action('wp_print_scripts', 'theme_queue_js');anybody an idea what they mean?
The topic ‘Comment reply script is not working’ is closed to new replies.