WordPress.org

Make WordPress Core

Changeset 14106


Ignore:
Timestamp:
04/16/2010 01:57:57 PM (8 years ago)
Author:
nacin
Message:

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

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r13969 r14106  
    165165<div id="message" class="updated"><p><?php echo $message; ?></p></div>
    166166<?php endif; ?>
    167 <form name="post" action="post.php" method="post" id="post">
     167<form name="post" action="post.php" method="post" id="post"<?php do_action('post_edit_form_tag'); ?>>
    168168<?php wp_nonce_field($nonce_action); ?>
    169169<input type="hidden" id="user-id" name="user_ID" value="<?php echo (int) $user_ID ?>" />
  • trunk/wp-admin/user-edit.php

    r14043 r14106  
    168168<h2><?php echo esc_html( $title ); ?></h2>
    169169
    170 <form id="your-profile" action="<?php echo esc_url( admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post">
     170<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'); ?>>
    171171<?php wp_nonce_field('update-user_' . $user_id) ?>
    172172<?php if ( $wp_http_referer ) : ?>
  • trunk/wp-admin/user-new.php

    r14039 r14106  
    169169}
    170170?>
    171 <form action="#add-new-user" method="post" name="adduser" id="adduser" class="add:users: validate">
     171<form action="#add-new-user" method="post" name="adduser" id="adduser" class="add:users: validate"<?php do_action('user_new_form_tag');?>>
    172172<?php wp_nonce_field('add-user') ?>
    173173<?php
Note: See TracChangeset for help on using the changeset viewer.