]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/theme-compat/comments.php
Wordpress 4.6
[autoinstalls/wordpress.git] / wp-includes / theme-compat / comments.php
index 617349a7184e2f6c4527674d615ff5b7acf773da..f7e0b30f2b0a63d93429f1520ac23a28d2f9a548 100644 (file)
@@ -2,15 +2,15 @@
 /**
  * @package WordPress
  * @subpackage Theme_Compat
 /**
  * @package WordPress
  * @subpackage Theme_Compat
- * @deprecated 3.0
+ * @deprecated 3.0.0
  *
  *
- * This file is here for Backwards compatibility with old themes and will be removed in a future version
+ * This file is here for backward compatibility with old themes and will be removed in a future version
  *
  */
 _deprecated_file(
        /* translators: %s: template name */
        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
  *
  */
 _deprecated_file(
        /* translators: %s: template name */
        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
-       '3.0',
+       '3.0.0',
        null,
        /* translators: %s: template name */
        sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
        null,
        /* translators: %s: template name */
        sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
@@ -68,54 +68,4 @@ _deprecated_file(
        <?php endif; ?>
 <?php endif; ?>
 
        <?php endif; ?>
 <?php endif; ?>
 
-<?php if ( comments_open() ) : ?>
-
-<div id="respond">
-
-<h3><?php comment_form_title( __('Leave a Reply'), __('Leave a Reply to %s' ) ); ?></h3>
-
-<div id="cancel-comment-reply">
-       <small><?php cancel_comment_reply_link() ?></small>
-</div>
-
-<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
-<p><?php printf(__('You must be <a href="%s">logged in</a> to post a comment.'), wp_login_url( get_permalink() )); ?></p>
-<?php else : ?>
-
-<form action="<?php echo site_url(); ?>/wp-comments-post.php" method="post" id="commentform">
-
-<?php if ( is_user_logged_in() ) : ?>
-
-<p><?php /* translators: %s: user profile link  */
-printf( __( 'Logged in as %s.' ), sprintf( '<a href="%1$s">%2$s</a>', get_edit_user_link(), $user_identity ) ); ?>
-<a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="<?php esc_attr_e( 'Log out of this account' ); ?>"><?php _e( 'Log out &raquo;' ); ?></a></p>
-
-<?php else : ?>
-
-<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
-<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
-
-<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
-<label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
-
-<p><input type="text" name="url" id="url" value="<?php echo  esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
-<label for="url"><small><?php _e('Website'); ?></small></label></p>
-
-<?php endif; ?>
-
-<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
-
-<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />
-<?php comment_id_fields(); ?>
-</p>
-<?php
-/** This filter is documented in wp-includes/comment-template.php */
-do_action( 'comment_form', $post->ID );
-?>
-
-</form>
-
-<?php endif; // If registration required and not logged in ?>
-</div>
-
-<?php endif; // if you delete this the sky will fall on your head ?>
+<?php comment_form(); ?>