Changes from trunk/wp-admin/includes/upgrade.php at r16959 to branches/3.0/wp-admin/includes/upgrade.php at r15458
- File:
-
- 1 edited
-
branches/3.0/wp-admin/includes/upgrade.php (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-admin/includes/upgrade.php
r16959 r15458 25 25 * {@internal Missing Long Description}} 26 26 * 27 * @since 2.1.027 * @since unknown 28 28 * 29 29 * @param string $blog_title Blog title. … … 65 65 $email_password = false; 66 66 if ( !$user_id && empty($user_password) ) { 67 $user_password = wp_generate_password( 12, false);67 $user_password = wp_generate_password(); 68 68 $message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.'); 69 69 $user_id = wp_create_user($user_name, $user_password, $user_email); … … 99 99 * {@internal Missing Long Description}} 100 100 * 101 * @since 2.1.0101 * @since unknown 102 102 * 103 103 * @param int $user_id User ID. … … 244 244 245 245 // 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ñ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.'); 255 247 if ( is_multisite() ) 256 248 $first_page = get_site_option( 'first_page', $first_page ); … … 262 254 'post_content' => $first_page, 263 255 'post_excerpt' => '', 264 'post_title' => __( 'Sample Page'),256 'post_title' => __('About'), 265 257 /* translators: Default page slug */ 266 'post_name' => _ _( 'sample-page'),258 'post_name' => _x('about', 'Default page slug'), 267 259 'post_modified' => $now, 268 260 'post_modified_gmt' => $now_gmt, … … 275 267 $wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) ); 276 268 277 // Set up default widgets for default theme.269 // Setup default widgets for default theme. 278 270 update_option( 'widget_search', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) ); 279 271 update_option( 'widget_recent-posts', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) ); … … 309 301 * {@internal Missing Long Description}} 310 302 * 311 * @since 2.1.0303 * @since unknown 312 304 * 313 305 * @param string $blog_title Blog title. … … 345 337 * {@internal Missing Long Description}} 346 338 * 347 * @since 2.1.0339 * @since unknown 348 340 * 349 341 * @return null … … 384 376 * {@internal Missing Long Description}} 385 377 * 386 * @since 1.0.1378 * @since unknown 387 379 */ 388 380 function upgrade_all() { … … 1196 1188 * {@internal Missing Long Description}} 1197 1189 * 1198 * @since 1.0.01190 * @since unknown 1199 1191 * 1200 1192 * @param string $table_name Database table name to create. … … 1219 1211 * {@internal Missing Long Description}} 1220 1212 * 1221 * @since 1.0.11213 * @since unknown 1222 1214 * 1223 1215 * @param string $table Database table name. … … 1242 1234 * {@internal Missing Long Description}} 1243 1235 * 1244 * @since 1.0.11236 * @since unknown 1245 1237 * 1246 1238 * @param string $table Database table name. … … 1305 1297 * Version of get_option that is private to install/upgrade. 1306 1298 * 1307 * @since 1.5.11299 * @since unknown 1308 1300 * @access private 1309 1301 * … … 1342 1334 * {@internal Missing Long Description}} 1343 1335 * 1344 * @since 1.5.01336 * @since unknown 1345 1337 * 1346 1338 * @param string $content … … 1369 1361 * {@internal Missing Long Description}} 1370 1362 * 1371 * @since 1.5.01363 * @since unknown 1372 1364 * 1373 1365 * @param unknown_type $queries … … 1576 1568 * {@internal Missing Long Description}} 1577 1569 * 1578 * @since 1.5.01570 * @since unknown 1579 1571 */ 1580 1572 function make_db_current() { … … 1592 1584 * {@internal Missing Long Description}} 1593 1585 * 1594 * @since 1.5.01586 * @since unknown 1595 1587 */ 1596 1588 function make_db_current_silent() { … … 1605 1597 * {@internal Missing Long Description}} 1606 1598 * 1607 * @since 1.5.01599 * @since unknown 1608 1600 * 1609 1601 * @param unknown_type $theme_name … … 1665 1657 1666 1658 // Add a theme header. 1667 $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the up date.\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"; 1668 1660 1669 1661 $stylelines = file_get_contents("$site_dir/style.css"); … … 1684 1676 * {@internal Missing Long Description}} 1685 1677 * 1686 * @since 1.5.01678 * @since unknown 1687 1679 * 1688 1680 * @param unknown_type $theme_name … … 1750 1742 * {@internal Missing Long Description}} 1751 1743 * 1752 * @since 1.5.01744 * @since unknown 1753 1745 * 1754 1746 * @return unknown … … 1798 1790 * Translate user level to user role name. 1799 1791 * 1800 * @since 2.0.01792 * @since unknown 1801 1793 * 1802 1794 * @param int $level User level. … … 1829 1821 * {@internal Missing Long Description}} 1830 1822 * 1831 * @since 2.1.01823 * @since unknown 1832 1824 */ 1833 1825 function wp_check_mysql_version() { … … 1843 1835 * {@internal Missing Long Description}} 1844 1836 * 1845 * @since 2.2.01837 * @since unknown 1846 1838 */ 1847 1839 function maybe_disable_automattic_widgets() { … … 1859 1851 /** 1860 1852 * Runs before the schema is upgraded. 1861 *1862 * @since 2.9.01863 1853 */ 1864 1854 function pre_schema_upgrade() {
Note: See TracChangeset
for help on using the changeset viewer.