*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 2.1.0
*
* @param string $blog_title Blog title.
* @param string $user_name User's username.
$user_password = trim($user_password);
$email_password = false;
if ( !$user_id && empty($user_password) ) {
- $user_password = wp_generate_password();
+ $user_password = wp_generate_password( 12, false );
$message = __('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.');
$user_id = wp_create_user($user_name, $user_password, $user_email);
update_user_option($user_id, 'default_password_nag', true, true);
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 2.1.0
*
* @param int $user_id User ID.
*/
));
// First Page
- $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.');
+ $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:
+
+<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>
+
+...or something like this:
+
+<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>
+
+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() );
if ( is_multisite() )
$first_page = get_site_option( 'first_page', $first_page );
$first_post_guid = get_option('home') . '/?page_id=2';
'post_date_gmt' => $now_gmt,
'post_content' => $first_page,
'post_excerpt' => '',
- 'post_title' => __('About'),
+ 'post_title' => __( 'Sample Page' ),
/* translators: Default page slug */
- 'post_name' => _x('about', 'Default page slug'),
+ 'post_name' => __( 'sample-page' ),
'post_modified' => $now,
'post_modified_gmt' => $now_gmt,
'guid' => $first_post_guid,
));
$wpdb->insert( $wpdb->postmeta, array( 'post_id' => 2, 'meta_key' => '_wp_page_template', 'meta_value' => 'default' ) );
- // Setup default widgets for default theme.
+ // Set up default widgets for default theme.
update_option( 'widget_search', array ( 2 => array ( 'title' => '' ), '_multiwidget' => 1 ) );
update_option( 'widget_recent-posts', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );
update_option( 'widget_recent-comments', array ( 2 => array ( 'title' => '', 'number' => 5 ), '_multiwidget' => 1 ) );
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 2.1.0
*
* @param string $blog_title Blog title.
* @param string $blog_url Blog url.
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 2.1.0
*
* @return null
*/
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.0.1
*/
function upgrade_all() {
global $wp_current_db_version, $wp_db_version, $wp_rewrite;
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.0.0
*
* @param string $table_name Database table name to create.
* @param string $create_ddl SQL statement to create table.
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.0.1
*
* @param string $table Database table name.
* @param string $index Index name to drop.
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.0.1
*
* @param string $table Database table name.
* @param string $index Database table index column.
/**
* Version of get_option that is private to install/upgrade.
*
- * @since unknown
+ * @since 1.5.1
* @access private
*
* @param string $setting Option name.
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.5.0
*
* @param string $content
* @return string
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.5.0
*
* @param unknown_type $queries
* @param unknown_type $execute
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.5.0
*/
function make_db_current() {
global $wp_queries;
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.5.0
*/
function make_db_current_silent() {
global $wp_queries;
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.5.0
*
* @param unknown_type $theme_name
* @param unknown_type $template
}
// Add a theme header.
- $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";
+ $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";
$stylelines = file_get_contents("$site_dir/style.css");
if ($stylelines) {
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.5.0
*
* @param unknown_type $theme_name
* @param unknown_type $template
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 1.5.0
*
* @return unknown
*/
/**
* Translate user level to user role name.
*
- * @since unknown
+ * @since 2.0.0
*
* @param int $level User level.
* @return string User role name.
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 2.1.0
*/
function wp_check_mysql_version() {
global $wpdb;
*
* {@internal Missing Long Description}}
*
- * @since unknown
+ * @since 2.2.0
*/
function maybe_disable_automattic_widgets() {
$plugins = __get_option( 'active_plugins' );
/**
* Runs before the schema is upgraded.
+ *
+ * @since 2.9.0
*/
function pre_schema_upgrade() {
global $wp_current_db_version, $wp_db_version, $wpdb;