WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/01/2013 01:34:15 AM (7 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/user-new.php & wp-admin/user-edit.php.

Also fixes one parameter type in wp-includes/user.php.

Fixes #25726.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-new.php

    r25880 r26493  
    118118        } else {
    119119            /**
    120              * Filter the user_login, aka the username, before it is added to the site.
     120             * Filter the user_login, also known as the username, before it is added to the site.
    121121             *
    122              * @since 3.0.0
     122             * @since 2.0.3
    123123             *
    124              * @param string $_REQUEST['user_login'] The sanitized username.
     124             * @param string $user_login The sanitized username.
    125125             */
    126126            $new_user_login = apply_filters( 'pre_user_login', sanitize_user( wp_unslash( $_REQUEST['user_login'] ), true ) );
     
    190190
    191191/**
    192  * Allows you to enable user auto-complete for non-super admins in multisite.
     192 * Filter whether to enable user auto-complete for non-super admins in Multisite.
    193193 *
    194194 * @since 3.4.0
    195195 *
    196  * @param bool True or false, based on if you enable auto-complete for non-super admins. Default is false.
     196 * @param bool $enable Whether to enable auto-complete for non-super admins. Default false.
    197197 */
    198198if ( is_multisite() && current_user_can( 'promote_users' ) && ! wp_is_large_network( 'users' )
     
    288288 */
    289289?>
    290 <form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action('user_new_form_tag');?>>
     290<form action="" method="post" name="adduser" id="adduser" class="validate"<?php do_action( 'user_new_form_tag' );?>>
    291291<input name="action" type="hidden" value="adduser" />
    292292<?php wp_nonce_field( 'add-user', '_wpnonce_add-user' ) ?>
     
    321321 * @since 3.7.0
    322322 *
    323  * @param string A contextual string specifying which type of new user form the hook follows.
     323 * @param string $type A contextual string specifying which type of new user form the hook follows.
    324324 */
    325325do_action( 'user_new_form', 'add-existing-user' );
     
    335335?>
    336336<p><?php _e('Create a brand new user and add them to this site.'); ?></p>
    337 <?php
    338 /** This action is documented in wp-admin/user-new.php */
    339 ?>
    340 <form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action('user_new_form_tag');?>>
     337<?php /** This action is documented in wp-admin/user-new.php */ ?>
     338<form action="" method="post" name="createuser" id="createuser" class="validate"<?php do_action( 'user_new_form_tag' );?>>
    341339<input name="action" type="hidden" value="createuser" />
    342340<?php wp_nonce_field( 'create-user', '_wpnonce_create-user' ); ?>
     
    383381 * @since 1.5.1
    384382 *
    385  * @param bool True or false, based on if you want to show the password fields. Default is true.
     383 * @param bool $show Whether to show the password fields. Default true.
    386384 */
    387385if ( apply_filters( 'show_password_fields', true ) ) : ?>
Note: See TracChangeset for help on using the changeset viewer.