WordPress.org

Make WordPress Core

Ticket #11276: 11276.diff

File 11276.diff, 1.5 KB (added by Denis-de-Bernardy, 8 years ago)
  • wp-includes/version.php

     
    1515 *
    1616 * @global int $wp_db_version
    1717 */
    18 $wp_db_version = 12217;
     18$wp_db_version = 12290;
    1919
    2020/**
    2121 * Holds the TinyMCE version
  • wp-admin/includes/upgrade.php

     
    373373        if ( $wp_current_db_version < 10360 )
    374374                upgrade_280();
    375375
    376         if ( $wp_current_db_version < 11958 )
     376        if ( $wp_current_db_version < 12290 )
    377377                upgrade_290();
    378378
    379379        maybe_disable_automattic_widgets();
     
    10281028                        update_option( 'thread_comments', 0 );
    10291029                }
    10301030        }
     1031
     1032        if ( $wp_current_db_version < 12290 ) {
     1033                $upload_path = get_option('upload_path');
     1034                $upload_path = str_replace(ABSPATH, '', $upload_path);
     1035                if ( get_option('upload_path') != $upload_path )
     1036                        update_option('upload_path', $upload_path);
     1037        }
    10311038}
    10321039
    10331040
  • wp-admin/includes/schema.php

     
    198198                $upload_path = WP_CONTENT_DIR . '/uploads';
    199199        }
    200200
     201        $upload_path = str_replace(ABSPATH, '', $upload_path);
     202
    201203        $options = array(
    202204        'siteurl' => $guessurl,
    203205        'blogname' => __('My Blog'),