Add actions to the form tags of user-new, user-edit, and post edit. props sivel, fixes #11933.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14106 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-04-16 13:57:57 +00:00
parent 207a1d6958
commit 1c25af8cb6
3 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ require_once('admin-header.php');
<?php if ( $message ) : ?> <?php if ( $message ) : ?>
<div id="message" class="updated"><p><?php echo $message; ?></p></div> <div id="message" class="updated"><p><?php echo $message; ?></p></div>
<?php endif; ?> <?php endif; ?>
<form name="post" action="post.php" method="post" id="post"> <form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
<?php wp_nonce_field($nonce_action); ?> <?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="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="hiddenaction" name="action" value="<?php echo esc_attr($form_action) ?>" />

View File

@ -167,7 +167,7 @@ include ('admin-header.php');
<?php screen_icon(); ?> <?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); ?></h2> <h2><?php echo esc_html( $title ); ?></h2>
<form id="your-profile" action="<?php echo esc_url( admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"> <form id="your-profile" action="<?php echo esc_url( admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post"<?php do_action('user_edit_form_tag'); ?>>
<?php wp_nonce_field('update-user_' . $user_id) ?> <?php wp_nonce_field('update-user_' . $user_id) ?>
<?php if ( $wp_http_referer ) : ?> <?php if ( $wp_http_referer ) : ?>
<input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" /> <input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" />

View File

@ -168,7 +168,7 @@ if ( !is_multisite() ) {
echo '<p>' . __( 'That person will be sent an email asking them to click a link confirming the invite. New users will then be sent an email with a randomly generated password and a login link.' ) . '</p>'; echo '<p>' . __( 'That person will be sent an email asking them to click a link confirming the invite. New users will then be sent an email with a randomly generated password and a login link.' ) . '</p>';
} }
?> ?>
<form action="#add-new-user" method="post" name="adduser" id="adduser" class="add:users: validate"> <form action="#add-new-user" method="post" name="adduser" id="adduser" class="add:users: validate"<?php do_action('user_new_form_tag');?>>
<?php wp_nonce_field('add-user') ?> <?php wp_nonce_field('add-user') ?>
<?php <?php
//Load up the passed data, else set to a default. //Load up the passed data, else set to a default.