WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/26/2019 09:07:10 PM (21 months 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-admin/includes/file.php

    r46400 r46596  
    10621062    if ( $signature_verification ) {
    10631063        /**
    1064          * Filters the list of hosts which should have Signature Verification attempteds on.
     1064         * Filters the list of hosts which should have Signature Verification attempted on.
    10651065         *
    10661066         * @since 5.2.0
    10671067         *
    1068          * @param array List of hostnames.
     1068         * @param string[] $hostnames List of hostnames.
    10691069         */
    10701070        $signed_hostnames       = apply_filters( 'wp_signature_hosts', array( 'wordpress.org', 'downloads.wordpress.org', 's.w.org' ) );
     
    13421342 * @since 5.2.0
    13431343 *
    1344  * @return array List of base64-encoded Signing keys.
     1344 * @return string[] Array of base64-encoded signing keys.
    13451345 */
    13461346function wp_trusted_keys() {
     
    13551355
    13561356    /**
    1357      * Filter the valid Signing keys used to verify the contents of files.
     1357     * Filter the valid signing keys used to verify the contents of files.
    13581358     *
    13591359     * @since 5.2.0
    13601360     *
    1361      * @param array $trusted_keys The trusted keys that may sign packages.
     1361     * @param string[] $trusted_keys The trusted keys that may sign packages.
    13621362     */
    13631363    return apply_filters( 'wp_trusted_keys', $trusted_keys );
     
    14501450 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    14511451 *
    1452  * @param string $file       Full path and filename of ZIP archive.
    1453  * @param string $to         Full path on the filesystem to extract archive to.
    1454  * @param array $needed_dirs A partial list of required folders needed to be created.
     1452 * @param string   $file        Full path and filename of ZIP archive.
     1453 * @param string   $to          Full path on the filesystem to extract archive to.
     1454 * @param string[] $needed_dirs A partial list of required folders needed to be created.
    14551455 * @return true|WP_Error True on success, WP_Error on failure.
    14561456 */
     
    15811581 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    15821582 *
    1583  * @param string $file       Full path and filename of ZIP archive.
    1584  * @param string $to         Full path on the filesystem to extract archive to.
    1585  * @param array $needed_dirs A partial list of required folders needed to be created.
     1583 * @param string   $file        Full path and filename of ZIP archive.
     1584 * @param string   $to          Full path on the filesystem to extract archive to.
     1585 * @param string[] $needed_dirs A partial list of required folders needed to be created.
    15861586 * @return true|WP_Error True on success, WP_Error on failure.
    15871587 */
     
    16921692 * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass.
    16931693 *
    1694  * @param string $from     Source directory.
    1695  * @param string $to       Destination directory.
    1696  * @param array $skip_list A list of files/folders to skip copying.
     1694 * @param string   $from      Source directory.
     1695 * @param string   $to        Destination directory.
     1696 * @param string[] $skip_list An array of files/folders to skip copying.
    16971697 * @return true|WP_Error True on success, WP_Error on failure.
    16981698 */
Note: See TracChangeset for help on using the changeset viewer.