Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Remove XHTML for a More Consistent HTML5 Markup #200

Merged
merged 71 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
64cbca9
wp-signup.php XHTML cleanup
DangitRick Sep 1, 2023
11aa503
TwentyFifteen customize-preview.js XHTML cleanup
DangitRick Sep 1, 2023
f47f03e
TwentySixteen searchform.php XHTML removal
DangitRick Sep 1, 2023
c6f96b4
TwentySixteen customize-preview.js - Remove XHTML
DangitRick Sep 1, 2023
97cfba3
Remove XHTML from twentyseventeen searchform.php
DangitRick Sep 1, 2023
63a3508
Remove XHTML from deprecated.php
DangitRick Sep 1, 2023
4d9933f
Remove XHTML from wp-login.php
DangitRick Sep 1, 2023
1616570
Remove XHTML from author-template.php
DangitRick Sep 1, 2023
a3656f9
Remove XHTML from class-wp-customize-date-time-control.php
DangitRick Sep 1, 2023
bcd151a
Remove XHTML from class-wp-customize-color-control.php
DangitRick Sep 1, 2023
e3a80fd
Remove XHTML from class-wp-customize-nav-menu-locations-control
DangitRick Sep 1, 2023
f03766a
Remove XHTML from class-wp-customize-site-icon-control.php
DangitRick Sep 1, 2023
79ebd4f
Remove XHTML from class-wp-customize-themes-section.php
DangitRick Sep 1, 2023
7382b5d
Remove XHTML from class-wp-customize-nav-menu-auto-add-control.php
DangitRick Sep 1, 2023
027d947
Remove XHTML from class-wp-customize-theme-control.php
DangitRick Sep 1, 2023
13dd716
Remove XHTML from general-template.php
DangitRick Sep 1, 2023
2063a9f
Update get_the_generator()
DangitRick Sep 1, 2023
1d89296
Remove XHTML search form option
DangitRick Sep 1, 2023
452a30b
Remove 'xhtml' as an option in header language tags
DangitRick Sep 1, 2023
7023e19
Simplify boolean attributes
DangitRick Sep 2, 2023
9e592c4
Enable Client-Side Form Validation
DangitRick Sep 2, 2023
9b3c67e
Default Atom feeds to `html` type
DangitRick Sep 2, 2023
dcc10d5
Remove XHTML from class-wp-widget-rss.php
DangitRick Sep 2, 2023
2571a4b
Remove XHTML from class-wp-nav-menu-widget.php
DangitRick Sep 2, 2023
6057376
Remove XHTML from class-wp-widget-recent-comments.php
DangitRick Sep 2, 2023
85c827a
Remove XHTML from comments system.
DangitRick Sep 2, 2023
9e02584
Remove XHTML from class-wp-widget-tag-cloud.php
DangitRick Sep 2, 2023
203846e
Remove XHTML from class-wp-widget-categories.php
DangitRick Sep 2, 2023
3a0ff98
Remove XHTML from class-wp-widget-archives.php
DangitRick Sep 2, 2023
036bee3
Default twentyfifteen to HTML5
DangitRick Sep 2, 2023
77c846b
Default twentysixteen to HTML5
DangitRick Sep 2, 2023
4c49f5e
Default twentyseventeen to HTML5.
DangitRick Sep 2, 2023
860d56e
Remove XHTML from script-loader.php
DangitRick Sep 2, 2023
1b66789
Lots of miscellaneous XHTML removals.
DangitRick Sep 3, 2023
196f997
More XHTML removal.
DangitRick Sep 3, 2023
bf85689
Origin pull
DangitRick Sep 3, 2023
9612b1d
More XHTML cleanup. (It never ends!)
DangitRick Sep 3, 2023
b10625d
Further XHTML cleanup.
DangitRick Sep 3, 2023
b888a9d
Further XHTML cleanup.
DangitRick Sep 4, 2023
2482e8f
More XHTML cleanup
DangitRick Sep 4, 2023
ccc17d5
role="main" not require on <main> elements
DangitRick Sep 4, 2023
e563794
role="complimentary" not required on <aside> tags
DangitRick Sep 4, 2023
605fd25
role="contentinfo" not required on footer elements
DangitRick Sep 4, 2023
e29fc4e
More XHTML excision
DangitRick Sep 4, 2023
ff48ce0
Revert "Origin pull"
DangitRick Sep 4, 2023
06b20e2
Resolve a conflict.
DangitRick Sep 4, 2023
7ea6104
Resolve a conflict.
DangitRick Sep 4, 2023
3756950
Resolve a conflict
DangitRick Sep 4, 2023
0e2cc2f
Resolve conflict.
DangitRick Sep 4, 2023
d869dcc
Conflict resolve?
DangitRick Sep 5, 2023
4cc038c
Fixes a helper function that output doubled HTML5 attributes.
DangitRick Sep 5, 2023
ada1141
Added @since comment.
DangitRick Sep 5, 2023
8290093
Merge branch 'develop' into xhtml-excision
DangitRick Sep 6, 2023
c09ea67
Fix PHP coding standards
DangitRick Sep 6, 2023
17a5c4a
Merge branch 'xhtml-excision' of https://github.com/DangitRick/Classi…
DangitRick Sep 6, 2023
202594a
PHP standards
DangitRick Sep 6, 2023
2912188
incorporate suggested changes
DangitRick Sep 15, 2023
84e4149
Merge branch 'develop' into pr/200
mattyrob Sep 27, 2023
fc87eca
Merge branch 'xhtml-excision' of https://github.com/DangitRick/Classi…
mattyrob Sep 27, 2023
fe331ba
Fix typo
mattyrob Sep 27, 2023
1cb5a50
Restore some necessary core code
mattyrob Sep 28, 2023
f9f14fe
First pass fixing tests
mattyrob Sep 28, 2023
dba9be6
Fix test coding standards
mattyrob Sep 28, 2023
1f0fd6e
Merge branch 'develop' into xhtml-excision
DangitRick Oct 1, 2023
a4dcb41
Fix spelling mistake (thanks @viktorix
DangitRick Oct 1, 2023
7374ece
Merge branch 'xhtml-excision' of https://github.com/DangitRick/Classi…
DangitRick Oct 1, 2023
e05aad9
Fixes for coding standards
mattyrob Oct 3, 2023
b517b54
Update html5 theme support functions and tests
mattyrob Oct 4, 2023
dc5733d
Coding standards correction
mattyrob Oct 5, 2023
7a84532
Remove unnecessary slashes in get_the_generator()
mattyrob Oct 7, 2023
645a326
Merge branch 'develop' into xhtml-excision
mattyrob Oct 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/readme.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<html>

<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ClassicPress &#8250; ReadMe</title>
<link rel="stylesheet" href="wp-admin/css/install.css?ver=20190218" type="text/css" />
<link rel="stylesheet" href="wp-admin/css/install.css?ver=20190218">
</head>

<body>
Expand Down
6 changes: 3 additions & 3 deletions src/wp-activate.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function do_activate_header() {
*/
function wpmu_activate_stylesheet() {
?>
<style type="text/css">
<style>
.wp-activate-container { width: 90%; margin: 0 auto; }
.wp-activate-container form { margin-top: 2em; }
#submit, #key { width: 100%; font-size: 24px; box-sizing: border-box; }
Expand All @@ -131,10 +131,10 @@ function wpmu_activate_stylesheet() {
<form name="activateform" id="activateform" method="post" action="<?php echo network_site_url( $blog_details->path . 'wp-activate.php' ); ?>">
<p>
<label for="key"><?php _e( 'Activation Key:' ); ?></label>
<br /><input type="text" name="key" id="key" value="" size="50" autofocus="autofocus" />
<br><input type="text" name="key" id="key" value="" size="50" autofocus>
</p>
<p class="submit">
<input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e( 'Activate' ); ?>" />
<input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e( 'Activate' ); ?>">
</p>
</form>

Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
'https://link.classicpress.net/the-cms-for-creators'
);
?>
<br />
<br>
<?php _e( 'Stable. Lightweight. Instantly Familiar.' ); ?>
</p>
<div class="wp-badge"></div>
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/admin-footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@
?>

<div class="clear"></div></div><!-- wpwrap -->
<script type="text/javascript">if(typeof wpOnload==='function')wpOnload();</script>
<script>if(typeof wpOnload==='function')wpOnload();</script>
</body>
</html>
4 changes: 2 additions & 2 deletions src/wp-admin/admin-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

$admin_body_class = preg_replace( '/[^a-z0-9_-]+/i', '-', $hook_suffix );
?>
<script type="text/javascript">
<script>
addLoadEvent = function(func){if(typeof jQuery!=='undefined')jQuery(function(){func();});else if(typeof wpOnload!=='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '<?php echo esc_js( admin_url( 'admin-ajax.php', 'relative' ) ); ?>',
pagenow = '<?php echo esc_js( $current_screen->id ); ?>',
Expand Down Expand Up @@ -239,7 +239,7 @@
$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
?>
<body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes; ?>">
<script type="text/javascript">
<script>
document.body.className = document.body.className.replace('no-js','js');
</script>

Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/async-upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<?php
$thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true );
if ( $thumb_url ) {
echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />';
echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="">';
}

// Title shouldn't ever be empty, but use filename just in case.
Expand Down Expand Up @@ -114,7 +114,7 @@
$id = media_handle_upload( 'async-upload', $post_id );
if ( is_wp_error( $id ) ) {
printf(
'<div class="error-div error">%s <strong>%s</strong><br />%s</div>',
'<div class="error-div error">%s <strong>%s</strong><br>%s</div>',
sprintf(
'<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">%s</button>',
__( 'Dismiss' )
Expand Down
12 changes: 6 additions & 6 deletions src/wp-admin/authorize-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
);
?>
</label>
<input id="new-application-password-value" type="text" class="code" readonly="readonly" value="<?php esc_attr( WP_Application_Passwords::chunk_password( $new_password ) ); ?>" />
<input id="new-application-password-value" type="text" class="code" readonly value="<?php esc_attr( WP_Application_Passwords::chunk_password( $new_password ) ); ?>">
</p>
<p><?php _e( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ); ?></p>
</div>
Expand All @@ -230,14 +230,14 @@
<?php else : ?>
<form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" class="form-wrap">
<?php wp_nonce_field( 'authorize_application_password' ); ?>
<input type="hidden" name="action" value="authorize_application_password" />
<input type="hidden" name="app_id" value="<?php echo esc_attr( $app_id ); ?>" />
<input type="hidden" name="success_url" value="<?php echo esc_url( $success_url ); ?>" />
<input type="hidden" name="reject_url" value="<?php echo esc_url( $reject_url ); ?>" />
<input type="hidden" name="action" value="authorize_application_password">
<input type="hidden" name="app_id" value="<?php echo esc_attr( $app_id ); ?>">
<input type="hidden" name="success_url" value="<?php echo esc_url( $success_url ); ?>">
<input type="hidden" name="reject_url" value="<?php echo esc_url( $reject_url ); ?>">

<div class="form-field">
<label for="app_name"><?php _e( 'New Application Password Name' ); ?></label>
<input type="text" id="app_name" name="app_name" value="<?php echo esc_attr( $app_name ); ?>" required />
<input type="text" id="app_name" name="app_name" value="<?php echo esc_attr( $app_name ); ?>" required>
</div>

<?php
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@
</p>

<?php wp_nonce_field( $nonce_action ); ?>
<input type="hidden" name="action" value="<?php echo esc_attr( $formaction ); ?>" />
<input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
<input type="hidden" name="noredir" value="1" />
<input type="hidden" name="action" value="<?php echo esc_attr( $formaction ); ?>">
<input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>">
<input type="hidden" name="noredir" value="1">
</form>

</div>
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/customize.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
?>
<title><?php echo esc_html( $admin_title ); ?></title>

<script type="text/javascript">
<script>
var ajaxurl = <?php echo wp_json_encode( admin_url( 'admin-ajax.php', 'relative' ) ); ?>,
pagenow = 'customize';
</script>
Expand Down
20 changes: 10 additions & 10 deletions src/wp-admin/edit-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
if ( $spammed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
/* translators: %s: Number of comments. */
$messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />';
$messages[] = sprintf( _n( '%s comment marked as spam.', '%s comments marked as spam.', $spammed ), $spammed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=unspam&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br>';
}

if ( $unspammed > 0 ) {
Expand All @@ -315,7 +315,7 @@
if ( $trashed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
/* translators: %s: Number of comments. */
$messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br />';
$messages[] = sprintf( _n( '%s comment moved to the Trash.', '%s comments moved to the Trash.', $trashed ), $trashed ) . ' <a href="' . esc_url( wp_nonce_url( "edit-comments.php?doaction=undo&action=untrash&ids=$ids", 'bulk-comments' ) ) . '">' . __( 'Undo' ) . '</a><br>';
}

if ( $untrashed > 0 ) {
Expand Down Expand Up @@ -345,7 +345,7 @@
}
}

echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br />\n", $messages ) . '</p></div>';
echo '<div id="moderated" class="updated notice is-dismissible"><p>' . implode( "<br>\n", $messages ) . '</p></div>';
}
}
?>
Expand All @@ -357,17 +357,17 @@
<?php $wp_list_table->search_box( __( 'Search Comments' ), 'comment' ); ?>

<?php if ( $post_id ) : ?>
<input type="hidden" name="p" value="<?php echo esc_attr( (int) $post_id ); ?>" />
<input type="hidden" name="p" value="<?php echo esc_attr( (int) $post_id ); ?>">
<?php endif; ?>
<input type="hidden" name="comment_status" value="<?php echo esc_attr( $comment_status ); ?>" />
<input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr( current_time( 'mysql', 1 ) ); ?>" />
<input type="hidden" name="comment_status" value="<?php echo esc_attr( $comment_status ); ?>">
<input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr( current_time( 'mysql', 1 ) ); ?>">

<input type="hidden" name="_total" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg( 'total_items' ) ); ?>" />
<input type="hidden" name="_per_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg( 'per_page' ) ); ?>" />
<input type="hidden" name="_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg( 'page' ) ); ?>" />
<input type="hidden" name="_total" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg( 'total_items' ) ); ?>">
<input type="hidden" name="_per_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg( 'per_page' ) ); ?>">
<input type="hidden" name="_page" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg( 'page' ) ); ?>">

<?php if ( isset( $_REQUEST['paged'] ) ) { ?>
<input type="hidden" name="paged" value="<?php echo esc_attr( absint( $_REQUEST['paged'] ) ); ?>" />
<input type="hidden" name="paged" value="<?php echo esc_attr( absint( $_REQUEST['paged'] ) ); ?>">
<?php } ?>

<?php $wp_list_table->display(); ?>
Expand Down
30 changes: 15 additions & 15 deletions src/wp-admin/edit-form-advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@
$post->post_title = '';
}
$autosave = false;
$form_extra .= "<input type='hidden' id='auto_draft' name='auto_draft' value='1' />";
$form_extra .= "<input type='hidden' id='auto_draft' name='auto_draft' value='1'>";
} else {
$autosave = wp_get_post_autosave( $post->ID );
}

$form_action = 'editpost';
$nonce_action = 'update-post_' . $post->ID;
$form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post->ID ) . "' />";
$form_extra .= "<input type='hidden' id='post_ID' name='post_ID' value='" . esc_attr( $post->ID ) . "'>";

// Detect if there exists an autosave newer than the post and if that autosave is different than the post.
if ( $autosave && mysql2date( 'U', $autosave->post_modified_gmt, false ) > mysql2date( 'U', $post->post_modified_gmt, false ) ) {
Expand Down Expand Up @@ -502,15 +502,15 @@
?>
>
<?php wp_nonce_field( $nonce_action ); ?>
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID; ?>" />
<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ); ?>" />
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ); ?>" />
<input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>" />
<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr( $post_type ); ?>" />
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr( $post->post_status ); ?>" />
<input type="hidden" id="referredby" name="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" />
<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID; ?>">
<input type="hidden" id="hiddenaction" name="action" value="<?php echo esc_attr( $form_action ); ?>">
<input type="hidden" id="originalaction" name="originalaction" value="<?php echo esc_attr( $form_action ); ?>">
<input type="hidden" id="post_author" name="post_author" value="<?php echo esc_attr( $post->post_author ); ?>">
<input type="hidden" id="post_type" name="post_type" value="<?php echo esc_attr( $post_type ); ?>">
<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo esc_attr( $post->post_status ); ?>">
<input type="hidden" id="referredby" name="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>">
<?php if ( ! empty( $active_post_lock ) ) { ?>
<input type="hidden" id="active_post_lock" value="<?php echo esc_attr( implode( ':', $active_post_lock ) ); ?>" />
<input type="hidden" id="active_post_lock" value="<?php echo esc_attr( implode( ':', $active_post_lock ) ); ?>">
<?php
}
if ( 'draft' !== get_post_status( $post ) ) {
Expand Down Expand Up @@ -555,7 +555,7 @@
$title_placeholder = apply_filters( 'enter_title_here', __( 'Add title' ), $post );
?>
<label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo $title_placeholder; ?></label>
<input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off" />
<input type="text" name="post_title" size="30" value="<?php echo esc_attr( $post->post_title ); ?>" id="title" spellcheck="true" autocomplete="off">
</div>
<?php
/**
Expand All @@ -577,7 +577,7 @@
$shortlink = wp_get_shortlink( $post->ID, 'post' );

if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" />' .
$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '">' .
'<button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' .
__( 'Get Shortlink' ) .
'</button>';
Expand Down Expand Up @@ -669,7 +669,7 @@
}
?>
</td>
<td id="content-resize-handle" class="hide-if-no-js"><br /></td>
<td id="content-resize-handle" class="hide-if-no-js"><br></td>
</tr></tbody></table>

</div>
Expand Down Expand Up @@ -760,7 +760,7 @@

?>
</div><!-- /post-body -->
<br class="clear" />
<br class="clear">
</div><!-- /poststuff -->
</form>
</div>
Expand All @@ -772,7 +772,7 @@
?>

<?php if ( ! wp_is_mobile() && post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?>
<script type="text/javascript">
<script>
try{document.post.title.focus();}catch(e){}
</script>
<?php endif; ?>
28 changes: 14 additions & 14 deletions src/wp-admin/edit-form-comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<h1><?php _e( 'Edit Comment' ); ?></h1>

<div id="poststuff">
<input type="hidden" name="action" value="editedcomment" />
<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
<input type="hidden" name="action" value="editedcomment">
<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>">
<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>">

<div id="post-body" class="metabox-holder columns-2">
<div id="post-body-content" class="edit-form-section edit-comment-section">
Expand Down Expand Up @@ -57,18 +57,18 @@
<tbody>
<tr>
<td class="first"><label for="name"><?php _e( 'Name' ); ?></label></td>
<td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td>
<td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name"></td>
</tr>
<tr>
<td class="first"><label for="email"><?php _e( 'Email' ); ?></label></td>
<td>
<input type="text" name="newcomment_author_email" size="30" value="<?php echo esc_attr( $comment->comment_author_email ); ?>" id="email" />
<input type="text" name="newcomment_author_email" size="30" value="<?php echo esc_attr( $comment->comment_author_email ); ?>" id="email">
</td>
</tr>
<tr>
<td class="first"><label for="newcomment_author_url"><?php _e( 'URL' ); ?></label></td>
<td>
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" />
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>">
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -133,9 +133,9 @@
_e( 'Comment status' );
?>
</legend>
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br />
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br />
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label>
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1"><?php _ex( 'Approved', 'comment status' ); ?></label><br>
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0"><?php _ex( 'Pending', 'comment status' ); ?></label><br>
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam"><?php _ex( 'Spam', 'comment status' ); ?></label>
</fieldset>
</div><!-- .misc-pub-section -->

Expand Down Expand Up @@ -271,19 +271,19 @@
?>
</div>

<input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>" />
<input type="hidden" name="p" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" />
<input name="referredby" type="hidden" id="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" />
<input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>">
<input type="hidden" name="p" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>">
<input name="referredby" type="hidden" id="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>">
<?php wp_original_referer_field( true, 'previous' ); ?>
<input type="hidden" name="noredir" value="1" />
<input type="hidden" name="noredir" value="1">

</div><!-- /post-body -->
</div>
</div>
</form>

<?php if ( ! wp_is_mobile() ) : ?>
<script type="text/javascript">
<script>
try{document.post.name.focus();}catch(e){}
</script>
<?php
Expand Down
Loading
Loading