Explorar o código

Update comments.php

WordPress debugger sees an undefined constant is the callback function name isn't wrapped in single quotes. Doesn't affect operation of theme as far as I can tell, but WP unit testing suggests addressing these kinds of things.
PeterBeckley %!s(int64=12) %!d(string=hai) anos
pai
achega
61669a76bc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      comments.php

+ 1 - 1
comments.php

@@ -22,7 +22,7 @@ if ( post_password_required() ) {
           'style'             => 'div',
           'style'             => 'div',
           'short_ping'        => true,
           'short_ping'        => true,
           'avatar_size'       => 40,
           'avatar_size'       => 40,
-          'callback'          => bones_comments,
+          'callback'          => 'bones_comments',
           'type'              => 'all',
           'type'              => 'all',
           'reply_text'        => 'Reply',
           'reply_text'        => 'Reply',
           'page'              => '',
           'page'              => '',