mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 07:36:58 +00:00
attr escaping. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11110 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -88,10 +88,10 @@ form {
|
||||
<form name="post" action="post.php" method="post">
|
||||
<div>
|
||||
<input type="hidden" name="action" value="post" />
|
||||
<input type="hidden" name="user_ID" value="<?php echo $user_ID ?>" />
|
||||
<input type="hidden" name="user_ID" value="<?php echo attr($user_ID) ?>" />
|
||||
<input type="hidden" name="mode" value="sidebar" />
|
||||
<input type="hidden" name="ping_status" value="<?php echo $post->ping_status; ?>" />
|
||||
<input type="hidden" name="comment_status" value="<?php echo $post->comment_status; ?>" />
|
||||
<input type="hidden" name="ping_status" value="<?php echo attr($post->ping_status); ?>" />
|
||||
<input type="hidden" name="comment_status" value="<?php echo attr($post->comment_status); ?>" />
|
||||
<?php wp_nonce_field('add-post');
|
||||
|
||||
if ( 'b' == $_GET['a'] )
|
||||
@@ -116,9 +116,9 @@ elseif ( 'c' == $_GET['a'] )
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" accesskey="s" class="button" value="<?php _e('Save as Draft'); ?>" />
|
||||
<input name="saveasdraft" type="submit" id="saveasdraft" tabindex="9" accesskey="s" class="button" value="<?php _ea('Save as Draft'); ?>" />
|
||||
<?php if ( current_user_can('publish_posts') ) : ?>
|
||||
<input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php _e('Publish') ?>" class="button button-highlighted" />
|
||||
<input name="publish" type="submit" id="publish" tabindex="6" accesskey="p" value="<?php _ea('Publish') ?>" class="button button-highlighted" />
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user