Ticket #2764: 2764-2.0.diff
| File 2764-2.0.diff, 1.3 KB (added by mdawaffe, 6 years ago) |
|---|
-
wp-includes/pluggable-functions.php
243 243 $q = explode( ini_get('arg_separator.output'), $q); 244 244 $html .= "\t<form method='post' action='$pagenow'>\n"; 245 245 foreach ( (array) $q as $a ) { 246 $v = substr(strstr($a, '='), 1); 247 $k = substr($a, 0, -(strlen($v)+1)); 246 list($k, $v) = explode('=', $a, 2); 248 247 $html .= "\t\t<input type='hidden' name='" . wp_specialchars( urldecode($k), 1 ) . "' value='" . wp_specialchars( urldecode($v), 1 ) . "' />\n"; 249 248 } 250 249 $html .= "\t\t<input type='hidden' name='_wpnonce' value='" . wp_create_nonce($action) . "' />\n"; -
wp-admin/post.php
322 322 323 323 case 'editedcomment': 324 324 325 $comment_ id= (int) $_POST['comment_ID'];326 check_admin_referer('update-comment_' . $comment_id);325 $comment_ID = (int) $_POST['comment_ID']; 326 $comment_post_ID = (int) $_POST['comment_post_ID']; 327 327 328 check_admin_referer('update-comment_' . $comment_ID); 329 328 330 edit_comment(); 329 331 330 332 $referredby = $_POST['referredby'];
