author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:40:08 +0200 | |
changeset 21 | 48c4eec2b7e6 |
parent 18 | be944660c56a |
child 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* Edit comment form for inclusion in another file. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Administration |
|
7 |
*/ |
|
8 |
||
16 | 9 |
// Don't load directly. |
9 | 10 |
if ( ! defined( 'ABSPATH' ) ) { |
11 |
die( '-1' ); |
|
12 |
} |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
13 |
|
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
14 |
/** |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
15 |
* @global WP_Comment $comment Global comment object. |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
16 |
*/ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
17 |
global $comment; |
0 | 18 |
?> |
19 |
<form name="post" action="comment.php" method="post" id="post"> |
|
9 | 20 |
<?php wp_nonce_field( 'update-comment_' . $comment->comment_ID ); ?> |
0 | 21 |
<div class="wrap"> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
22 |
<h1><?php _e( 'Edit Comment' ); ?></h1> |
0 | 23 |
|
24 |
<div id="poststuff"> |
|
25 |
<input type="hidden" name="action" value="editedcomment" /> |
|
26 |
<input type="hidden" name="comment_ID" value="<?php echo esc_attr( $comment->comment_ID ); ?>" /> |
|
27 |
<input type="hidden" name="comment_post_ID" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" /> |
|
28 |
||
29 |
<div id="post-body" class="metabox-holder columns-2"> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
30 |
<div id="post-body-content" class="edit-form-section edit-comment-section"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
31 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
32 |
if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_ID > 0 ) : |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
33 |
$comment_link = get_comment_link( $comment ); |
9 | 34 |
?> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
35 |
<div class="inside"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
36 |
<div id="comment-link-box"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
37 |
<strong><?php _ex( 'Permalink:', 'comment' ); ?></strong> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
38 |
<span id="sample-permalink"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
39 |
<a href="<?php echo esc_url( $comment_link ); ?>"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
40 |
<?php echo esc_html( $comment_link ); ?> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
41 |
</a> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
42 |
</span> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
43 |
</div> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
44 |
</div> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
45 |
<?php endif; ?> |
0 | 46 |
<div id="namediv" class="stuffbox"> |
47 |
<div class="inside"> |
|
9 | 48 |
<h2 class="edit-comment-author"><?php _e( 'Author' ); ?></h2> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
49 |
<fieldset> |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
50 |
<legend class="screen-reader-text"> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
51 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
52 |
/* translators: Hidden accessibility text. */ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
53 |
_e( 'Comment Author' ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
54 |
?> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
55 |
</legend> |
9 | 56 |
<table class="form-table editcomment" role="presentation"> |
0 | 57 |
<tbody> |
5 | 58 |
<tr> |
9 | 59 |
<td class="first"><label for="name"><?php _e( 'Name' ); ?></label></td> |
0 | 60 |
<td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td> |
61 |
</tr> |
|
5 | 62 |
<tr> |
9 | 63 |
<td class="first"><label for="email"><?php _e( 'Email' ); ?></label></td> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
64 |
<td> |
18 | 65 |
<input type="text" name="newcomment_author_email" size="30" value="<?php echo esc_attr( $comment->comment_author_email ); ?>" id="email" /> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
66 |
</td> |
0 | 67 |
</tr> |
5 | 68 |
<tr> |
9 | 69 |
<td class="first"><label for="newcomment_author_url"><?php _e( 'URL' ); ?></label></td> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
70 |
<td> |
9 | 71 |
<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" /> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
72 |
</td> |
0 | 73 |
</tr> |
74 |
</tbody> |
|
75 |
</table> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
76 |
</fieldset> |
0 | 77 |
</div> |
78 |
</div> |
|
79 |
||
80 |
<div id="postdiv" class="postarea"> |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
81 |
<label for="content" class="screen-reader-text"> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
82 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
83 |
/* translators: Hidden accessibility text. */ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
84 |
_e( 'Comment' ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
85 |
?> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
86 |
</label> |
0 | 87 |
<?php |
88 |
$quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close' ); |
|
9 | 89 |
wp_editor( |
90 |
$comment->comment_content, |
|
91 |
'content', |
|
92 |
array( |
|
93 |
'media_buttons' => false, |
|
94 |
'tinymce' => false, |
|
95 |
'quicktags' => $quicktags_settings, |
|
96 |
) |
|
97 |
); |
|
98 |
wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); |
|
99 |
?> |
|
0 | 100 |
</div> |
101 |
</div><!-- /post-body-content --> |
|
102 |
||
103 |
<div id="postbox-container-1" class="postbox-container"> |
|
104 |
<div id="submitdiv" class="stuffbox" > |
|
16 | 105 |
<h2><?php _e( 'Save' ); ?></h2> |
0 | 106 |
<div class="inside"> |
107 |
<div class="submitbox" id="submitcomment"> |
|
108 |
<div id="minor-publishing"> |
|
109 |
||
110 |
<div id="misc-publishing-actions"> |
|
111 |
||
16 | 112 |
<div class="misc-pub-section misc-pub-comment-status" id="comment-status"> |
113 |
<?php _e( 'Status:' ); ?> <span id="comment-status-display"> |
|
114 |
<?php |
|
115 |
switch ( $comment->comment_approved ) { |
|
116 |
case '1': |
|
117 |
_e( 'Approved' ); |
|
118 |
break; |
|
119 |
case '0': |
|
120 |
_e( 'Pending' ); |
|
121 |
break; |
|
122 |
case 'spam': |
|
123 |
_e( 'Spam' ); |
|
124 |
break; |
|
125 |
} |
|
126 |
?> |
|
127 |
</span> |
|
128 |
||
129 |
<fieldset id="comment-status-radio"> |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
130 |
<legend class="screen-reader-text"> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
131 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
132 |
/* translators: Hidden accessibility text. */ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
133 |
_e( 'Comment status' ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
134 |
?> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
135 |
</legend> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
136 |
<label><input type="radio"<?php checked( $comment->comment_approved, '1' ); ?> name="comment_status" value="1" /><?php _ex( 'Approved', 'comment status' ); ?></label><br /> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
137 |
<label><input type="radio"<?php checked( $comment->comment_approved, '0' ); ?> name="comment_status" value="0" /><?php _ex( 'Pending', 'comment status' ); ?></label><br /> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
138 |
<label><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php _ex( 'Spam', 'comment status' ); ?></label> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
139 |
</fieldset> |
16 | 140 |
</div><!-- .misc-pub-section --> |
0 | 141 |
|
142 |
<div class="misc-pub-section curtime misc-pub-curtime"> |
|
143 |
<?php |
|
16 | 144 |
$submitted = sprintf( |
145 |
/* translators: 1: Comment date, 2: Comment time. */ |
|
146 |
__( '%1$s at %2$s' ), |
|
18 | 147 |
/* translators: Publish box date format, see https://www.php.net/manual/datetime.format.php */ |
16 | 148 |
date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ), |
18 | 149 |
/* translators: Publish box time format, see https://www.php.net/manual/datetime.format.php */ |
16 | 150 |
date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) ) |
151 |
); |
|
0 | 152 |
?> |
9 | 153 |
<span id="timestamp"> |
154 |
<?php |
|
16 | 155 |
/* translators: %s: Comment date. */ |
156 |
printf( __( 'Submitted on: %s' ), '<b>' . $submitted . '</b>' ); |
|
9 | 157 |
?> |
158 |
</span> |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
159 |
<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><span aria-hidden="true"><?php _e( 'Edit' ); ?></span> <span class="screen-reader-text"> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
160 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
161 |
/* translators: Hidden accessibility text. */ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
162 |
_e( 'Edit date and time' ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
163 |
?> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
164 |
</span></a> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
165 |
<fieldset id='timestampdiv' class='hide-if-js'> |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
166 |
<legend class="screen-reader-text"> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
167 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
168 |
/* translators: Hidden accessibility text. */ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
169 |
_e( 'Date and time' ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
170 |
?> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
171 |
</legend> |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
172 |
<?php |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
173 |
/** |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
174 |
* @global string $action |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
175 |
*/ |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
176 |
global $action; |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
177 |
|
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
178 |
touch_time( ( 'editcomment' === $action ), 0 ); |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
18
diff
changeset
|
179 |
?> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
180 |
</fieldset> |
0 | 181 |
</div> |
5 | 182 |
|
183 |
<?php |
|
184 |
$post_id = $comment->comment_post_ID; |
|
185 |
if ( current_user_can( 'edit_post', $post_id ) ) { |
|
9 | 186 |
$post_link = "<a href='" . esc_url( get_edit_post_link( $post_id ) ) . "'>"; |
5 | 187 |
$post_link .= esc_html( get_the_title( $post_id ) ) . '</a>'; |
188 |
} else { |
|
189 |
$post_link = esc_html( get_the_title( $post_id ) ); |
|
190 |
} |
|
191 |
?> |
|
192 |
||
193 |
<div class="misc-pub-section misc-pub-response-to"> |
|
9 | 194 |
<?php |
195 |
printf( |
|
16 | 196 |
/* translators: %s: Post link. */ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
197 |
__( 'In response to: %s' ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
198 |
'<b>' . $post_link . '</b>' |
9 | 199 |
); |
200 |
?> |
|
5 | 201 |
</div> |
202 |
||
203 |
<?php |
|
204 |
if ( $comment->comment_parent ) : |
|
9 | 205 |
$parent = get_comment( $comment->comment_parent ); |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
206 |
if ( $parent ) : |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
207 |
$parent_link = esc_url( get_comment_link( $parent ) ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
208 |
$name = get_comment_author( $parent ); |
9 | 209 |
?> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
210 |
<div class="misc-pub-section misc-pub-reply-to"> |
9 | 211 |
<?php |
212 |
printf( |
|
16 | 213 |
/* translators: %s: Comment link. */ |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
214 |
__( 'In reply to: %s' ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
215 |
'<b><a href="' . $parent_link . '">' . $name . '</a></b>' |
9 | 216 |
); |
217 |
?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
218 |
</div> |
9 | 219 |
<?php |
220 |
endif; |
|
221 |
endif; |
|
222 |
?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
223 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
224 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
225 |
/** |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
226 |
* Filters miscellaneous actions for the edit comment form sidebar. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
227 |
* |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
228 |
* @since 4.3.0 |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
229 |
* |
16 | 230 |
* @param string $html Output HTML to display miscellaneous action. |
231 |
* @param WP_Comment $comment Current comment object. |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
232 |
*/ |
9 | 233 |
echo apply_filters( 'edit_comment_misc_actions', '', $comment ); |
5 | 234 |
?> |
235 |
||
0 | 236 |
</div> <!-- misc actions --> |
237 |
<div class="clear"></div> |
|
238 |
</div> |
|
239 |
||
240 |
<div id="major-publishing-actions"> |
|
241 |
<div id="delete-action"> |
|
9 | 242 |
<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url( 'comment.php?action=' . ( ! EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&c=$comment->comment_ID&_wp_original_http_referer=" . urlencode( wp_get_referer() ), 'delete-comment_' . $comment->comment_ID ) . "'>" . ( ! EMPTY_TRASH_DAYS ? __( 'Delete Permanently' ) : __( 'Move to Trash' ) ) . "</a>\n"; ?> |
0 | 243 |
</div> |
244 |
<div id="publishing-action"> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
245 |
<?php submit_button( __( 'Update' ), 'primary large', 'save', false ); ?> |
0 | 246 |
</div> |
247 |
<div class="clear"></div> |
|
248 |
</div> |
|
249 |
</div> |
|
250 |
</div> |
|
251 |
</div><!-- /submitdiv --> |
|
252 |
</div> |
|
253 |
||
254 |
<div id="postbox-container-2" class="postbox-container"> |
|
255 |
<?php |
|
9 | 256 |
/** This action is documented in wp-admin/includes/meta-boxes.php */ |
5 | 257 |
do_action( 'add_meta_boxes', 'comment', $comment ); |
0 | 258 |
|
5 | 259 |
/** |
260 |
* Fires when comment-specific meta boxes are added. |
|
261 |
* |
|
262 |
* @since 3.0.0 |
|
263 |
* |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
264 |
* @param WP_Comment $comment Comment object. |
5 | 265 |
*/ |
266 |
do_action( 'add_meta_boxes_comment', $comment ); |
|
0 | 267 |
|
9 | 268 |
do_meta_boxes( null, 'normal', $comment ); |
0 | 269 |
|
5 | 270 |
$referer = wp_get_referer(); |
0 | 271 |
?> |
272 |
</div> |
|
273 |
||
9 | 274 |
<input type="hidden" name="c" value="<?php echo esc_attr( $comment->comment_ID ); ?>" /> |
275 |
<input type="hidden" name="p" value="<?php echo esc_attr( $comment->comment_post_ID ); ?>" /> |
|
5 | 276 |
<input name="referredby" type="hidden" id="referredby" value="<?php echo $referer ? esc_url( $referer ) : ''; ?>" /> |
9 | 277 |
<?php wp_original_referer_field( true, 'previous' ); ?> |
0 | 278 |
<input type="hidden" name="noredir" value="1" /> |
279 |
||
280 |
</div><!-- /post-body --> |
|
281 |
</div> |
|
282 |
</div> |
|
283 |
</form> |
|
284 |
||
5 | 285 |
<?php if ( ! wp_is_mobile() ) : ?> |
0 | 286 |
<script type="text/javascript"> |
287 |
try{document.post.name.focus();}catch(e){} |
|
288 |
</script> |
|
9 | 289 |
<?php |
290 |
endif; |