Changeset 10949 for trunk/src/bp-core/bp-core-options.php
- Timestamp:
- 07/20/2016 06:12:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r10945 r10949 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 }27 21 28 22 // Default options. … … 81 75 82 76 // Email unsubscribe salt. 83 'bp-emails-unsubscribe-salt' => $email_unsubscribe_salt,77 'bp-emails-unsubscribe-salt' => base64_encode( wp_generate_password( 64, true, true ) ), 84 78 85 79 /* Groups ************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.