Skip to content

Commit

Permalink
Improve the wp_set_password() PHPDoc with a note to guard against e…
Browse files Browse the repository at this point in the history
…xecuting the function on every page load, such as through a theme's functions.php file.

See #28316.

Built from https://develop.svn.wordpress.org/trunk@29461


git-svn-id: http://core.svn.wordpress.org/trunk@29239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
DrewAPicture committed Aug 10, 2014
1 parent d60a081 commit 0f7d355
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wp-includes/pluggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2052,6 +2052,10 @@ function wp_rand( $min = 0, $max = 0 ) {
* For integration with other applications, this function can be overwritten to
* instead use the other package password checking algorithm.
*
* Please note: This function should be used sparingly and is really only meant for single-time
* application. Leveraging this improperly in a plugin or theme could result in an endless loop
* of password resets if precautions are not taken to ensure it does execute on every page load.
*
* @since 2.5.0
*
* @uses $wpdb WordPress database object for queries
Expand Down

0 comments on commit 0f7d355

Please sign in to comment.