Make WordPress Core


Ignore:
Timestamp:
06/11/2025 02:19:57 PM (7 months ago)
Author:
johnbillion
Message:

Docs: Correct the documented types of the password algorithm constants in PHP 7.3 and earlier.

See #63166

File:
1 edited

Legend:

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

    r60275 r60297  
    26772677         * - `PASSWORD_DEFAULT`
    26782678         *
     2679         * The values of the algorithm constants are strings in PHP 7.4+ and integers in PHP 7.3 and earlier.
     2680         *
    26792681         * @since 6.8.0
    26802682         *
    2681          * @param string $algorithm The hashing algorithm. Default is the value of the `PASSWORD_BCRYPT` constant.
     2683         * @param string|int $algorithm The hashing algorithm. Default is the value of the `PASSWORD_BCRYPT` constant.
    26822684         */
    26832685        $algorithm = apply_filters( 'wp_hash_password_algorithm', PASSWORD_BCRYPT );
     
    26892691         * filter. You must ensure that the options are appropriate for the algorithm in use.
    26902692         *
     2693         * The values of the algorithm constants are strings in PHP 7.4+ and integers in PHP 7.3 and earlier.
     2694         *
    26912695         * @since 6.8.0
    26922696         *
    2693          * @param array $options    Array of options to pass to the password hashing functions.
    2694          *                          By default this is an empty array which means the default
    2695          *                          options will be used.
    2696          * @param string $algorithm The hashing algorithm in use.
     2697         * @param array      $options   Array of options to pass to the password hashing functions.
     2698         *                              By default this is an empty array which means the default
     2699         *                              options will be used.
     2700         * @param string|int $algorithm The hashing algorithm in use.
    26972701         */
    26982702        $options = apply_filters( 'wp_hash_password_options', array(), $algorithm );
Note: See TracChangeset for help on using the changeset viewer.