WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/24/2008 12:33:19 AM (12 years ago)
Author:
ryan
Message:

Add length arg to wp_generate_password() and lengthen secret. Props tellyworth. fixes #6146 for 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/includes/upgrade.php

    r7629 r7798  
    202202    if ( $wp_current_db_version < 7499 )
    203203        upgrade_250();
     204
     205    if ( $wp_current_db_version < 7796 )
     206        upgrade_251();
    204207
    205208    maybe_disable_automattic_widgets();
     
    728731    }
    729732   
     733}
     734
     735function upgrade_251() {
     736    global $wp_current_db_version;
     737
     738    // Make the secret longer
     739    update_option('secret', wp_generate_password(64));
    730740}
    731741
Note: See TracChangeset for help on using the changeset viewer.