Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r15458 r16959  
    2525 * {@internal Missing Long Description}}
    2626 *
    27  * @since unknown
     27 * @since 2.1.0
    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();
     67        $user_password = wp_generate_password( 12, false );
    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 unknown
     101 * @since 2.1.0
    102102 *
    103103 * @param int $user_id User ID.
     
    244244
    245245    // First Page
    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.');
     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
     254As 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() );
    247255    if ( is_multisite() )
    248256        $first_page = get_site_option( 'first_page', $first_page );
     
    254262                                'post_content' => $first_page,
    255263                                'post_excerpt' => '',
    256                                 'post_title' => __('About'),
     264                                'post_title' => __( 'Sample Page' ),
    257265                                /* translators: Default page slug */
    258                                 'post_name' => _x('about', 'Default page slug'),
     266                                'post_name' => __( 'sample-page' ),
    259267                                'post_modified' => $now,
    260268                                'post_modified_gmt' => $now_gmt,
     
    267275    $wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) );
    268276
    269     // Setup default widgets for default theme.
     277    // Set up default widgets for default theme.
    270278    update_option( 'widget_search', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) );
    271279    update_option( 'widget_recent-posts', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );
     
    301309 * {@internal Missing Long Description}}
    302310 *
    303  * @since unknown
     311 * @since 2.1.0
    304312 *
    305313 * @param string $blog_title Blog title.
     
    337345 * {@internal Missing Long Description}}
    338346 *
    339  * @since unknown
     347 * @since 2.1.0
    340348 *
    341349 * @return null
     
    376384 * {@internal Missing Long Description}}
    377385 *
    378  * @since unknown
     386 * @since 1.0.1
    379387 */
    380388function upgrade_all() {
     
    11881196 * {@internal Missing Long Description}}
    11891197 *
    1190  * @since unknown
     1198 * @since 1.0.0
    11911199 *
    11921200 * @param string $table_name Database table name to create.
     
    12111219 * {@internal Missing Long Description}}
    12121220 *
    1213  * @since unknown
     1221 * @since 1.0.1
    12141222 *
    12151223 * @param string $table Database table name.
     
    12341242 * {@internal Missing Long Description}}
    12351243 *
    1236  * @since unknown
     1244 * @since 1.0.1
    12371245 *
    12381246 * @param string $table Database table name.
     
    12971305 * Version of get_option that is private to install/upgrade.
    12981306 *
    1299  * @since unknown
     1307 * @since 1.5.1
    13001308 * @access private
    13011309 *
     
    13341342 * {@internal Missing Long Description}}
    13351343 *
    1336  * @since unknown
     1344 * @since 1.5.0
    13371345 *
    13381346 * @param string $content
     
    13611369 * {@internal Missing Long Description}}
    13621370 *
    1363  * @since unknown
     1371 * @since 1.5.0
    13641372 *
    13651373 * @param unknown_type $queries
     
    15681576 * {@internal Missing Long Description}}
    15691577 *
    1570  * @since unknown
     1578 * @since 1.5.0
    15711579 */
    15721580function make_db_current() {
     
    15841592 * {@internal Missing Long Description}}
    15851593 *
    1586  * @since unknown
     1594 * @since 1.5.0
    15871595 */
    15881596function make_db_current_silent() {
     
    15971605 * {@internal Missing Long Description}}
    15981606 *
    1599  * @since unknown
     1607 * @since 1.5.0
    16001608 *
    16011609 * @param unknown_type $theme_name
     
    16571665
    16581666    // Add a theme header.
    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";
     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";
    16601668
    16611669    $stylelines = file_get_contents("$site_dir/style.css");
     
    16761684 * {@internal Missing Long Description}}
    16771685 *
    1678  * @since unknown
     1686 * @since 1.5.0
    16791687 *
    16801688 * @param unknown_type $theme_name
     
    17421750 * {@internal Missing Long Description}}
    17431751 *
    1744  * @since unknown
     1752 * @since 1.5.0
    17451753 *
    17461754 * @return unknown
     
    17901798 * Translate user level to user role name.
    17911799 *
    1792  * @since unknown
     1800 * @since 2.0.0
    17931801 *
    17941802 * @param int $level User level.
     
    18211829 * {@internal Missing Long Description}}
    18221830 *
    1823  * @since unknown
     1831 * @since 2.1.0
    18241832 */
    18251833function wp_check_mysql_version() {
     
    18351843 * {@internal Missing Long Description}}
    18361844 *
    1837  * @since unknown
     1845 * @since 2.2.0
    18381846 */
    18391847function maybe_disable_automattic_widgets() {
     
    18511859/**
    18521860 * Runs before the schema is upgraded.
     1861 *
     1862 * @since 2.9.0
    18531863 */
    18541864function pre_schema_upgrade() {
Note: See TracChangeset for help on using the changeset viewer.