Make WordPress Core

Changeset 30667


Ignore:
Timestamp:
11/30/2014 10:18:33 PM (10 years ago)
Author:
wonderboymusic
Message:

Improve the @param docs for src/wp-includes/pluggable*.

See #30224.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable-deprecated.php

    r27369 r30667  
    2929 * @param int|null $id User ID.
    3030 * @param string $name Optional. The user's username
    31  * @return object returns wp_set_current_user()
     31 * @return WP_User returns wp_set_current_user()
    3232 */
    3333function set_current_user($id, $name = '') {
     
    149149 * @global string $error Error when false is returned
    150150 *
    151  * @param string $username User's username
    152  * @param string $password User's password
    153  * @param bool $deprecated Not used
     151 * @param string $username   User's username
     152 * @param string $password   User's password
     153 * @param string $deprecated Not used
    154154 * @return bool False on login failure, true on successful check
    155155 */
  • trunk/src/wp-includes/pluggable.php

    r30580 r30667  
    7474 * @uses $current_user Checks if the current user is set
    7575 *
    76  * @return bool|null False on XML-RPC Request and invalid auth cookie. Null when current user set.
     76 * @return null|false False on XML-RPC Request and invalid auth cookie. Null when current user set.
    7777 */
    7878function get_currentuserinfo() {
     
    10651065 * @since 1.2.0
    10661066 *
    1067  * @param string $action Action nonce
    1068  * @param string $query_arg where to look for nonce in $_REQUEST (since 2.5)
     1067 * @param int|string $action    Action nonce
     1068 * @param string     $query_arg Where to look for nonce in $_REQUEST (since 2.5)
    10691069 */
    10701070function check_admin_referer($action = -1, $query_arg = '_wpnonce') {
     
    10991099 * @since 2.0.3
    11001100 *
    1101  * @param string $action Action nonce
    1102  * @param string $query_arg where to look for nonce in $_REQUEST (since 2.5)
     1101 * @param int|string $action    Action nonce
     1102 * @param string     $query_arg Where to look for nonce in $_REQUEST (since 2.5)
    11031103 */
    11041104function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
     
    16671667 * @since 2.5.0
    16681668 *
    1669  * @return int
     1669 * @return float Float value rounded up to the next highest integer.
    16701670 */
    16711671function wp_nonce_tick() {
     
    16921692 * @since 2.0.3
    16931693 *
    1694  * @param string $nonce Nonce that was used in the form to verify
     1694 * @param string     $nonce Nonce that was used in the form to verify
    16951695 * @param string|int $action Should give context to what is taking place and be the same when nonce was created.
    16961696 * @return bool Whether the nonce check passed or failed.
     
    17421742 * @since 2.0.3
    17431743 *
    1744  * @param string $action Scalar value to add context to the nonce.
     1744 * @param string|int $action Scalar value to add context to the nonce.
    17451745 * @return string The token.
    17461746 */
     
    20912091 * @param string $default URL to a default image to use if no avatar is available
    20922092 * @param string $alt Alternative text to use in image tag. Defaults to blank
    2093  * @return string `<img>` tag for the user's avatar.
     2093 * @return false|string `<img>` tag for the user's avatar.
    20942094*/
    20952095function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
Note: See TracChangeset for help on using the changeset viewer.