[wp-trac] [WordPress Trac] #39445: Add class_exists() check before defining the PasswordHash class

WordPress Trac noreply at wordpress.org
Thu Apr 6 18:22:34 UTC 2017


#39445: Add class_exists() check before defining the PasswordHash class
------------------------------------------+-------------------------
 Reporter:  DavidAnderson                 |       Owner:  swissspidy
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  4.7.4
Component:  Bootstrap/Load                |     Version:  4.7
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40389"]:
 {{{
 #!CommitTicketReference repository="" revision="40389"
 Bootstrap/Load: Only load `PasswordHash` class once.

 `require_once` prevents errors when loading WordPress and the class
 already exists.

 See [40387].
 Fixes #39445.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39445#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list