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:
parent
207a1d6958
commit
1c25af8cb6
|
@ -164,7 +164,7 @@ require_once('admin-header.php');
|
|||
<?php if ( $message ) : ?>
|
||||
<div id="message" class="updated"><p><?php echo $message; ?></p></div>
|
||||
<?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); ?>
|
||||
<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) ?>" />
|
||||
|
|
|
@ -167,7 +167,7 @@ include ('admin-header.php');
|
|||
<?php screen_icon(); ?>
|
||||
<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 if ( $wp_http_referer ) : ?>
|
||||
<input type="hidden" name="wp_http_referer" value="<?php echo esc_url($wp_http_referer); ?>" />
|
||||
|
|
|
@ -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>';
|
||||
}
|
||||
?>
|
||||
<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
|
||||
//Load up the passed data, else set to a default.
|
||||
|
|
Loading…
Reference in New Issue