Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r16959 r15458  
    2525 * {@internal Missing Long Description}}
    2626 *
    27  * @since 2.1.0
     27 * @since unknown
    2828 *
    2929 * @param string $blog_title Blog title.
     
    6565    $email_password = false;
    6666    if ( !$user_id && empty($user_password) ) {
    67         $user_password = wp_generate_password( 12, false );
     67        $user_password = wp_generate_password();
    6868        $message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.');
    6969        $user_id = wp_create_user($user_name, $user_password, $user_email);
     
    9999 * {@internal Missing Long Description}}
    100100 *
    101  * @since 2.1.0
     101 * @since unknown
    102102 *
    103103 * @param int $user_id User ID.
     
    244244
    245245    // First Page
    246     $first_page = sprintf( __( "This is an example page. It's different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:
    247 
    248 <blockquote>Hi there! I'm a bike messenger by day, aspiring actor by night, and this is my blog. I live in Los Angeles, have a great dog named Jack, and I like pi&#241;a coladas. (And gettin' caught in the rain.)</blockquote>
    249 
    250 ...or something like this:
    251 
    252 <blockquote>The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickies to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.</blockquote>
    253 
    254 As a new WordPress user, you should go to <a href=\"%s\">your dashboard</a> to delete this page and create new pages for your content. Have fun!" ), admin_url() );
     246    $first_page = __('This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.');
    255247    if ( is_multisite() )
    256248        $first_page = get_site_option( 'first_page', $first_page );
     
    262254                                'post_content' => $first_page,
    263255                                'post_excerpt' => '',
    264                                 'post_title' => __( 'Sample Page' ),
     256                                'post_title' => __('About'),
    265257                                /* translators: Default page slug */
    266                                 'post_name' => __( 'sample-page' ),
     258                                'post_name' => _x('about', 'Default page slug'),
    267259                                'post_modified' => $now,
    268260                                'post_modified_gmt' => $now_gmt,
     
    275267    $wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) );
    276268
    277     // Set up default widgets for default theme.
     269    // Setup default widgets for default theme.
    278270    update_option( 'widget_search', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) );
    279271    update_option( 'widget_recent-posts', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );
     
    309301 * {@internal Missing Long Description}}
    310302 *
    311  * @since 2.1.0
     303 * @since unknown
    312304 *
    313305 * @param string $blog_title Blog title.
     
    345337 * {@internal Missing Long Description}}
    346338 *
    347  * @since 2.1.0
     339 * @since unknown
    348340 *
    349341 * @return null
     
    384376 * {@internal Missing Long Description}}
    385377 *
    386  * @since 1.0.1
     378 * @since unknown
    387379 */
    388380function upgrade_all() {
     
    11961188 * {@internal Missing Long Description}}
    11971189 *
    1198  * @since 1.0.0
     1190 * @since unknown
    11991191 *
    12001192 * @param string $table_name Database table name to create.
     
    12191211 * {@internal Missing Long Description}}
    12201212 *
    1221  * @since 1.0.1
     1213 * @since unknown
    12221214 *
    12231215 * @param string $table Database table name.
     
    12421234 * {@internal Missing Long Description}}
    12431235 *
    1244  * @since 1.0.1
     1236 * @since unknown
    12451237 *
    12461238 * @param string $table Database table name.
     
    13051297 * Version of get_option that is private to install/upgrade.
    13061298 *
    1307  * @since 1.5.1
     1299 * @since unknown
    13081300 * @access private
    13091301 *
     
    13421334 * {@internal Missing Long Description}}
    13431335 *
    1344  * @since 1.5.0
     1336 * @since unknown
    13451337 *
    13461338 * @param string $content
     
    13691361 * {@internal Missing Long Description}}
    13701362 *
    1371  * @since 1.5.0
     1363 * @since unknown
    13721364 *
    13731365 * @param unknown_type $queries
     
    15761568 * {@internal Missing Long Description}}
    15771569 *
    1578  * @since 1.5.0
     1570 * @since unknown
    15791571 */
    15801572function make_db_current() {
     
    15921584 * {@internal Missing Long Description}}
    15931585 *
    1594  * @since 1.5.0
     1586 * @since unknown
    15951587 */
    15961588function make_db_current_silent() {
     
    16051597 * {@internal Missing Long Description}}
    16061598 *
    1607  * @since 1.5.0
     1599 * @since unknown
    16081600 *
    16091601 * @param unknown_type $theme_name
     
    16651657
    16661658    // Add a theme header.
    1667     $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the update.\nVersion: 1.0\nAuthor: Moi\n*/\n";
     1659    $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the upgrade.\nVersion: 1.0\nAuthor: Moi\n*/\n";
    16681660
    16691661    $stylelines = file_get_contents("$site_dir/style.css");
     
    16841676 * {@internal Missing Long Description}}
    16851677 *
    1686  * @since 1.5.0
     1678 * @since unknown
    16871679 *
    16881680 * @param unknown_type $theme_name
     
    17501742 * {@internal Missing Long Description}}
    17511743 *
    1752  * @since 1.5.0
     1744 * @since unknown
    17531745 *
    17541746 * @return unknown
     
    17981790 * Translate user level to user role name.
    17991791 *
    1800  * @since 2.0.0
     1792 * @since unknown
    18011793 *
    18021794 * @param int $level User level.
     
    18291821 * {@internal Missing Long Description}}
    18301822 *
    1831  * @since 2.1.0
     1823 * @since unknown
    18321824 */
    18331825function wp_check_mysql_version() {
     
    18431835 * {@internal Missing Long Description}}
    18441836 *
    1845  * @since 2.2.0
     1837 * @since unknown
    18461838 */
    18471839function maybe_disable_automattic_widgets() {
     
    18591851/**
    18601852 * Runs before the schema is upgraded.
    1861  *
    1862  * @since 2.9.0
    18631853 */
    18641854function pre_schema_upgrade() {
Note: See TracChangeset for help on using the changeset viewer.