Changeset 10945
- Timestamp:
- 07/18/2016 02:54:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r10941 r10945 19 19 */ 20 20 function bp_get_default_options() { 21 static $email_unsubscribe_salt = null; 22 23 // Only generate this once to prevent loops in wp_rand() on WP < 4.4. 24 if ( $email_unsubscribe_salt === null ) { 25 $email_unsubscribe_salt = base64_encode( wp_generate_password( 64, true, true ) ); 26 } 21 27 22 28 // Default options. … … 75 81 76 82 // Email unsubscribe salt. 77 'bp-emails-unsubscribe-salt' => base64_encode( wp_generate_password( 64, true, true ) ),83 'bp-emails-unsubscribe-salt' => $email_unsubscribe_salt, 78 84 79 85 /* Groups ************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.