~canonical-sysadmins/wordpress/4.5.2

« back to all changes in this revision

Viewing changes to wp-includes/theme-compat/comments.php

  • Committer: Manuel Seelaus
  • Date: 2015-12-09 17:47:18 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: manuel.seelaus@canonical.com-20151209174718-coxethm2swbeqksy
Merge WP4.4 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * This file is here for Backwards compatibility with old themes and will be removed in a future version
8
8
 *
9
9
 */
10
 
_deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.0', null, sprintf( __('Please include a %1$s template in your theme.'), basename(__FILE__) ) );
 
10
_deprecated_file(
 
11
        /* translators: %s: template name */
 
12
        sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
 
13
        '3.0',
 
14
        null,
 
15
        /* translators: %s: template name */
 
16
        sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
 
17
);
11
18
 
12
19
// Do not delete these lines
13
20
        if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
79
86
 
80
87
<?php if ( is_user_logged_in() ) : ?>
81
88
 
82
 
<p><?php printf(__('Logged in as <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>
 
89
<p><?php /* translators: %s: user profile link  */
 
90
printf( __( 'Logged in as %s.' ), sprintf( '<a href="%1$s">%2$s</a>', get_edit_user_link(), $user_identity ) ); ?>
 
91
<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>
83
92
 
84
93
<?php else : ?>
85
94
 
94
103
 
95
104
<?php endif; ?>
96
105
 
97
 
<!--<p><small><?php printf(__('<strong>XHTML:</strong> You can use these tags: <code>%s</code>'), allowed_tags()); ?></small></p>-->
98
 
 
99
106
<p><textarea name="comment" id="comment" cols="58" rows="10" tabindex="4"></textarea></p>
100
107
 
101
108
<p><input name="submit" type="submit" id="submit" tabindex="5" value="<?php esc_attr_e('Submit Comment'); ?>" />