WordPress.org

Make WordPress Core

Ticket #39130: 39130.9.patch

File 39130.9.patch, 1.3 KB (added by keesiemeijer, 4 years ago)

improvements for /wp-includes/pluggable.php

  • src/wp-includes/pluggable.php

     
    24122412         * @param mixed  $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash,
    24132413         *                            user email, WP_User object, WP_Post object, or WP_Comment object.
    24142414         * @param int    $size        Square avatar width and height in pixels to retrieve.
    2415          * @param string $alt         Alternative text to use in the avatar image tag.
    2416          *                                       Default empty.
     2415         * @param string $default     URL for the default image or a default type. Accepts '404', 'retro', 'monsterid',
     2416         *                            'wavatar', 'indenticon','mystery' (or 'mm', or 'mysteryman'), 'blank', or 'gravatar_default'.
     2417         *                            Default is the value of the 'avatar_default' option, with a fallback of 'mystery'.
     2418         * @param string $alt         Alternative text to use in the avatar image tag. Default empty.
    24172419         * @param array  $args        Arguments passed to get_avatar_data(), after processing.
    24182420         */
    24192421        return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );