Make WordPress Core

Ticket #33008: 33008.diff

File 33008.diff, 790 bytes (added by DrewAPicture, 10 years ago)

Fixed docs

  • src/wp-admin/user-new.php

     
    7979
    8080                        $roles = get_editable_roles();
    8181                        $role = $roles[ $_REQUEST['role'] ];
     82
     83                        /**
     84                         * Fires immediately after a user is invited to join a site, but before the notification is sent.
     85                         *
     86                         * @since 4.4.0
     87                         *
     88                         * @param int    $user_id     The invited user's ID.
     89                         * @param array  $role        The role of invited user.
     90                         * @param string $newuser_key The key of the invitation.
     91                         */
     92                        do_action( 'invite_user', $user_id, $role, $newuser_key );
     93
    8294                        /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */
    8395                        $message = __( 'Hi,
    8496