Changes from branches/3.0/wp-admin/includes/upgrade.php at r15458 to trunk/wp-admin/includes/upgrade.php at r16959
- File:
-
- 1 edited
-
trunk/wp-admin/includes/upgrade.php (modified) (25 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r15458 r16959 25 25 * {@internal Missing Long Description}} 26 26 * 27 * @since unknown27 * @since 2.1.0 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( );67 $user_password = wp_generate_password( 12, false ); 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 unknown101 * @since 2.1.0 102 102 * 103 103 * @param int $user_id User ID. … … 244 244 245 245 // 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ñ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() ); 247 255 if ( is_multisite() ) 248 256 $first_page = get_site_option( 'first_page', $first_page ); … … 254 262 'post_content' => $first_page, 255 263 'post_excerpt' => '', 256 'post_title' => __( 'About'),264 'post_title' => __( 'Sample Page' ), 257 265 /* translators: Default page slug */ 258 'post_name' => _ x('about', 'Default page slug'),266 'post_name' => __( 'sample-page' ), 259 267 'post_modified' => $now, 260 268 'post_modified_gmt' => $now_gmt, … … 267 275 $wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) ); 268 276 269 // Set up default widgets for default theme.277 // Set up default widgets for default theme. 270 278 update_option( 'widget_search', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) ); 271 279 update_option( 'widget_recent-posts', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) ); … … 301 309 * {@internal Missing Long Description}} 302 310 * 303 * @since unknown311 * @since 2.1.0 304 312 * 305 313 * @param string $blog_title Blog title. … … 337 345 * {@internal Missing Long Description}} 338 346 * 339 * @since unknown347 * @since 2.1.0 340 348 * 341 349 * @return null … … 376 384 * {@internal Missing Long Description}} 377 385 * 378 * @since unknown386 * @since 1.0.1 379 387 */ 380 388 function upgrade_all() { … … 1188 1196 * {@internal Missing Long Description}} 1189 1197 * 1190 * @since unknown1198 * @since 1.0.0 1191 1199 * 1192 1200 * @param string $table_name Database table name to create. … … 1211 1219 * {@internal Missing Long Description}} 1212 1220 * 1213 * @since unknown1221 * @since 1.0.1 1214 1222 * 1215 1223 * @param string $table Database table name. … … 1234 1242 * {@internal Missing Long Description}} 1235 1243 * 1236 * @since unknown1244 * @since 1.0.1 1237 1245 * 1238 1246 * @param string $table Database table name. … … 1297 1305 * Version of get_option that is private to install/upgrade. 1298 1306 * 1299 * @since unknown1307 * @since 1.5.1 1300 1308 * @access private 1301 1309 * … … 1334 1342 * {@internal Missing Long Description}} 1335 1343 * 1336 * @since unknown1344 * @since 1.5.0 1337 1345 * 1338 1346 * @param string $content … … 1361 1369 * {@internal Missing Long Description}} 1362 1370 * 1363 * @since unknown1371 * @since 1.5.0 1364 1372 * 1365 1373 * @param unknown_type $queries … … 1568 1576 * {@internal Missing Long Description}} 1569 1577 * 1570 * @since unknown1578 * @since 1.5.0 1571 1579 */ 1572 1580 function make_db_current() { … … 1584 1592 * {@internal Missing Long Description}} 1585 1593 * 1586 * @since unknown1594 * @since 1.5.0 1587 1595 */ 1588 1596 function make_db_current_silent() { … … 1597 1605 * {@internal Missing Long Description}} 1598 1606 * 1599 * @since unknown1607 * @since 1.5.0 1600 1608 * 1601 1609 * @param unknown_type $theme_name … … 1657 1665 1658 1666 // Add a theme header. 1659 $header = "/*\nTheme Name: $theme_name\nTheme URI: " . __get_option('siteurl') . "\nDescription: A theme automatically created by the up grade.\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"; 1660 1668 1661 1669 $stylelines = file_get_contents("$site_dir/style.css"); … … 1676 1684 * {@internal Missing Long Description}} 1677 1685 * 1678 * @since unknown1686 * @since 1.5.0 1679 1687 * 1680 1688 * @param unknown_type $theme_name … … 1742 1750 * {@internal Missing Long Description}} 1743 1751 * 1744 * @since unknown1752 * @since 1.5.0 1745 1753 * 1746 1754 * @return unknown … … 1790 1798 * Translate user level to user role name. 1791 1799 * 1792 * @since unknown1800 * @since 2.0.0 1793 1801 * 1794 1802 * @param int $level User level. … … 1821 1829 * {@internal Missing Long Description}} 1822 1830 * 1823 * @since unknown1831 * @since 2.1.0 1824 1832 */ 1825 1833 function wp_check_mysql_version() { … … 1835 1843 * {@internal Missing Long Description}} 1836 1844 * 1837 * @since unknown1845 * @since 2.2.0 1838 1846 */ 1839 1847 function maybe_disable_automattic_widgets() { … … 1851 1859 /** 1852 1860 * Runs before the schema is upgraded. 1861 * 1862 * @since 2.9.0 1853 1863 */ 1854 1864 function pre_schema_upgrade() {
Note: See TracChangeset
for help on using the changeset viewer.