mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Add nonces to quick edit, see #6815
git-svn-id: https://develop.svn.wordpress.org/trunk@8917 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -496,6 +496,7 @@ function inline_edit_row( $type ) {
|
||||
$attributes = "class=\"$type-title column-title\"" . $style;
|
||||
?>
|
||||
<td <?php echo $attributes ?>>
|
||||
<?php wp_nonce_field( 'inlineeditnonce', 'inline_edit_nonce', false ) ?>
|
||||
<div class="title">
|
||||
<input type="text" name="post_title" class="title" value="" /><br />
|
||||
<label><?php _e('Slug'); ?></label><input type="text" name="post_name" value="" class="slug" />
|
||||
@@ -519,6 +520,7 @@ function inline_edit_row( $type ) {
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="clear"></div>
|
||||
<div class="save">
|
||||
<?php
|
||||
$actions = array();
|
||||
$actions['save'] = '<a href="#">' . __('Save') . '</a>';
|
||||
@@ -531,6 +533,7 @@ function inline_edit_row( $type ) {
|
||||
echo "<span class='$action'>$link$sep</span>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
<?php
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user