WordPress.org

Ready to get started?Download WordPress

Forums

there is problem on codex document (3 posts)

  1. tension
    Member
    Posted 5 years ago #

    function mytheme_comment($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment; ?>
       <li <?php comment_class(); ?> id="comment-<?php comment_ID() ?>">
         <div id="div-comment-<?php comment_ID(); ?>
          <div class="comment-author vcard">
             <?php echo get_avatar(); ?>
             <?php printf(__('<cite class="fn">%s</cite> <span class="says">says:</span>'), get_comment_author_link()) ?>
          </div>
          <?php if ($comment->comment_approved == '0') : ?>
             <em><?php _e('Your comment is awaiting moderation.') ?></em>
    
          <?php endif; ?>
    
          <div class="comment-meta commentmetadata"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a><?php edit_comment_link(__('(Edit)'),'  ','') ?></div>
    
          <?php comment_text() ?>
    
          <div class="reply">
             <?php comment_reply_link(array_merge( $args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
          </div>
         </div>
       </li>
    <?php
            }

    there is problem on codex document => http://codex.wordpress.org/Template_Tags/wp_list_comments

    <div id="div-comment-<?php comment_ID(); ?>

    是不是少了
    ">

  2. tension
    Member
    Posted 5 years ago #

    没人理我?

  3. whooami
    Member
    Posted 5 years ago #

    if you see something that isnt right, fix it. whatever it is. you can edit the codex as easily as anyone else.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags