Sfoglia il codice sorgente

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 12 anni fa
parent
commit
61669a76bc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      comments.php

+ 1 - 1
comments.php

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