WordPress.org

Make WordPress Core

Changeset 13309


Ignore:
Timestamp:
02/22/2010 08:27:02 PM (8 years ago)
Author:
nacin
Message:

Remove unused 'secret' option. Fixes #12221

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/schema.php

    r13272 r13309  
    266266    'upload_path' => '',
    267267
    268     // 2.0.3
    269     'secret' => wp_generate_password( 64, true, true ),
    270 
    271268    // 2.1
    272269    'blog_public' => '1',
     
    358355    // Delete unused options
    359356    $unusedoptions = array ('blodotgsping_url', 'bodyterminator', 'emailtestonly', 'phoneemail_separator', 'smilies_directory', 'subjectprefix', 'use_bbcode', 'use_blodotgsping', 'use_phoneemail', 'use_quicktags', 'use_weblogsping', 'weblogs_cache_file', 'use_preview', 'use_htmltrans', 'smilies_directory', 'fileupload_allowedusers', 'use_phoneemail', 'default_post_status', 'default_post_category', 'archive_mode', 'time_difference', 'links_minadminlevel', 'links_use_adminlevels', 'links_rating_type', 'links_rating_char', 'links_rating_ignore_zero', 'links_rating_single_image', 'links_rating_image0', 'links_rating_image1', 'links_rating_image2', 'links_rating_image3', 'links_rating_image4', 'links_rating_image5', 'links_rating_image6', 'links_rating_image7', 'links_rating_image8', 'links_rating_image9', 'weblogs_cacheminutes', 'comment_allowed_tags', 'search_engine_friendly_urls', 'default_geourl_lat', 'default_geourl_lon', 'use_default_geourl', 'weblogs_xml_url', 'new_users_can_blog', '_wpnonce', '_wp_http_referer', 'Update', 'action', 'rich_editing', 'autosave_interval', 'deactivated_plugins', 'can_compress_scripts',
    360         'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length');
     357        'page_uris', 'update_core', 'update_plugins', 'update_themes', 'doing_cron', 'random_seed', 'rss_excerpt_length', 'secret');
    361358    foreach ($unusedoptions as $option)
    362359        delete_option($option);
  • trunk/wp-admin/includes/upgrade.php

    r13297 r13309  
    422422        upgrade_250();
    423423
    424     if ( $wp_current_db_version < 7796 )
    425         upgrade_251();
    426 
    427424    if ( $wp_current_db_version < 7935 )
    428425        upgrade_252();
     
    10101007    }
    10111008
    1012 }
    1013 
    1014 /**
    1015  * Execute changes made in WordPress 2.5.1.
    1016  *
    1017  * @since 2.5.1
    1018  */
    1019 function upgrade_251() {
    1020     global $wp_current_db_version;
    1021 
    1022     // Make the secret longer
    1023     update_option('secret', wp_generate_password(64));
    10241009}
    10251010
  • trunk/wp-includes/pluggable.php

    r13242 r13309  
    12891289 * @link https://api.wordpress.org/secret-key/1.1/ Create a Secret Key for wp-config.php
    12901290 *
    1291  * @return string Salt value from either 'SECRET_KEY' or 'secret' option
     1291 * @param string $scheme Authentication scheme
     1292 * @return string Salt value
    12921293 */
    12931294function wp_salt($scheme = 'auth') {
  • trunk/wp-includes/version.php

    r13227 r13309  
    1616 * @global int $wp_db_version
    1717 */
    18 $wp_db_version = 13226;
     18$wp_db_version = 13309;
    1919
    2020/**
Note: See TracChangeset for help on using the changeset viewer.