Make WordPress Core

Ticket #39445: phppass.diff

File phppass.diff, 747 bytes (added by DavidAnderson, 8 years ago)

Do not define the PasswordHash class if it already exists

  • wp-includes/class-phpass.php

     
    33 * Portable PHP password hashing framework.
    44 * @package phpass
    55 * @since 2.5.0
    6  * @version 0.3 / WordPress
     6 * @version 0.3.1 / WordPress
    77 * @link http://www.openwall.com/phpass/
    88 */
    99
     
    2525# requirements (there can be none), but merely suggestions.
    2626#
    2727
     28if ( class_exists( 'PasswordHash' ) ) return;
     29
    2830/**
    2931 * Portable PHP password hashing framework.
    3032 *
    3133 * @package phpass
    32  * @version 0.3 / WordPress
     34 * @version 0.3.1 / WordPress
    3335 * @link http://www.openwall.com/phpass/
    3436 * @since 2.5.0
    3537 */