[wp-trac] [WordPress Trac] #27606: "Add Existing User" form does not preserve input in case of an error
WordPress Trac
noreply at wordpress.org
Wed Dec 9 22:22:49 UTC 2015
#27606: "Add Existing User" form does not preserve input in case of an error
----------------------------------+----------------------------------------
Reporter: SergeyBiryukov | Owner:
Type: defect (bug) | Status: new
Priority: low | Milestone: Awaiting Review
Component: Users | Version:
Severity: minor | Resolution:
Keywords: has-patch needs- | Focuses: administration, multisite
refresh |
----------------------------------+----------------------------------------
Comment (by SergeyBiryukov):
> {{{
> foreach ( array( 'username', 'email' ) as $post_key ) {
> $$post_key = isset( $_POST['user'][ $post_key ] ) ? stripslashes(
$_POST['user'][ $post_key ] ) : '';
> }
> }}}
Should probably avoid variable variables, see [28736] and other commits.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27606#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list