Make WordPress Core


Ignore:
Timestamp:
10/26/2019 09:07:10 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Switch more docs over to typed array notation, plus some fixes.

See #48303, #41756

File:
1 edited

Legend:

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

    r46477 r46596  
    636636             * @since 2.7.0
    637637             *
    638              * @param array $cookie_elements An array of data for the authentication cookie.
     638             * @param string[] $cookie_elements An array of data for the authentication cookie.
    639639             */
    640640            do_action( 'auth_cookie_expired', $cookie_elements );
     
    649649             * @since 2.7.0
    650650             *
    651              * @param array $cookie_elements An array of data for the authentication cookie.
     651             * @param string[] $cookie_elements An array of data for the authentication cookie.
    652652             */
    653653            do_action( 'auth_cookie_bad_username', $cookie_elements );
     
    669669             * @since 2.7.0
    670670             *
    671              * @param array $cookie_elements An array of data for the authentication cookie.
     671             * @param string[] $cookie_elements An array of data for the authentication cookie.
    672672             */
    673673            do_action( 'auth_cookie_bad_hash', $cookie_elements );
     
    691691         * @since 2.7.0
    692692         *
    693          * @param array  $cookie_elements An array of data for the authentication cookie.
    694          * @param WP_User $user            User object.
     693         * @param string[] $cookie_elements An array of data for the authentication cookie.
     694         * @param WP_User  $user            User object.
    695695         */
    696696        do_action( 'auth_cookie_valid', $cookie_elements, $user );
     
    759759     * @param string $cookie Authentication cookie.
    760760     * @param string $scheme Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'.
    761      * @return array|false Authentication cookie components.
     761     * @return string[]|false Authentication cookie components.
    762762     */
    763763    function wp_parse_auth_cookie( $cookie = '', $scheme = '' ) {
     
    14431443         * @since 2.3.0
    14441444         *
    1445          * @param array       $hosts An array of allowed hosts.
    1446          * @param bool|string $host  The parsed host; empty if not isset.
     1445         * @param string[] $hosts An array of allowed host names.
     1446         * @param string   $host  The host name of the redirect destination; empty string if not set.
    14471447         */
    14481448        $allowed_hosts = (array) apply_filters( 'allowed_redirect_hosts', array( $wpp['host'] ), isset( $lp['host'] ) ? $lp['host'] : '' );
     
    14931493         * @since 3.7.0
    14941494         *
    1495          * @param array $emails     An array of email addresses to receive a comment notification.
    1496          * @param int   $comment_id The comment ID.
     1495         * @param string[] $emails     An array of email addresses to receive a comment notification.
     1496         * @param int      $comment_id The comment ID.
    14971497         */
    14981498        $emails = apply_filters( 'comment_notification_recipients', $emails, $comment->comment_ID );
     
    18051805         * @since 3.7.0
    18061806         *
    1807          * @param array $emails     List of email addresses to notify for comment moderation.
    1808          * @param int   $comment_id Comment ID.
     1807         * @param string[] $emails     List of email addresses to notify for comment moderation.
     1808         * @param int      $comment_id Comment ID.
    18091809         */
    18101810        $emails = apply_filters( 'comment_moderation_recipients', $emails, $comment_id );
Note: See TracChangeset for help on using the changeset viewer.