Ticket #6479: 6479.patch
File 6479.patch, 3.9 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/upgrade.php
27 27 * @since 2.1.0 28 28 * 29 29 * @param string $blog_title Blog title. 30 * @param string $blog_tagline Blog tagline/description 30 31 * @param string $user_name User's username. 31 32 * @param string $user_email User's email. 32 33 * @param bool $public Whether blog is public. … … 34 35 * @param string $user_password Optional. User's chosen password. Will default to a random password. 35 36 * @return array Array keys 'url', 'user_id', 'password', 'password_message'. 36 37 */ 37 function wp_install( $blog_title, $ user_name, $user_email, $public, $deprecated = '', $user_password = '' ) {38 function wp_install( $blog_title, $blog_tagline, $user_name, $user_email, $public, $deprecated = '', $user_password = '' ) { 38 39 global $wp_rewrite; 39 40 40 41 if ( !empty( $deprecated ) ) … … 47 48 populate_roles(); 48 49 49 50 update_option('blogname', $blog_title); 51 update_option('blogdescription', $blog_tagline); 50 52 update_option('admin_email', $user_email); 51 53 update_option('blog_public', $public); 52 54 -
wp-admin/includes/schema.php
199 199 'siteurl' => $guessurl, 200 200 'blogname' => __('My Site'), 201 201 /* translators: blog tagline */ 202 'blogdescription' => __(' Just another WordPress site'),202 'blogdescription' => __(''), 203 203 'users_can_register' => 0, 204 204 'admin_email' => 'you@example.com', 205 205 'start_of_week' => 1, -
wp-admin/install.php
83 83 $blog_public = isset( $_POST['blog_public'] ); 84 84 85 85 $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; 86 $weblog_tagline = isset( $_POST['weblog_tagline'] ) ? trim( stripslashes( $_POST['weblog_tagline'] ) ) : ''; 86 87 $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; 87 88 $admin_password = isset($_POST['admin_password']) ? trim( stripslashes( $_POST['admin_password'] ) ) : ''; 88 89 $admin_email = isset( $_POST['admin_email'] ) ? trim( stripslashes( $_POST['admin_email'] ) ) : ''; … … 98 99 <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td> 99 100 </tr> 100 101 <tr> 102 <th scope="row"><label for="weblog_tagline"><?php _e( 'Site Tagline' ); ?></label></th> 103 <td><input name="weblog_tagline" type="text" id="weblog_tagline" size="25" value="<?php echo esc_attr( $weblog_tagline ); ?>" /></td> 104 </tr> 105 <tr> 101 106 <th scope="row"><label for="user_name"><?php _e('Username'); ?></label></th> 102 107 <td> 103 108 <?php … … 182 187 display_header(); 183 188 // Fill in the data we gathered 184 189 $weblog_title = isset( $_POST['weblog_title'] ) ? trim( stripslashes( $_POST['weblog_title'] ) ) : ''; 190 $weblog_tagline = isset( $_POST['weblog_tagline'] ) ? trim( stripslashes( $_POST['weblog_tagline'] ) ) : ''; 185 191 $user_name = isset($_POST['user_name']) ? trim( stripslashes( $_POST['user_name'] ) ) : 'admin'; 186 192 $admin_password = isset($_POST['admin_password']) ? $_POST['admin_password'] : ''; 187 193 $admin_password_check = isset($_POST['admin_password2']) ? $_POST['admin_password2'] : ''; … … 212 218 213 219 if ( $error === false ) { 214 220 $wpdb->show_errors(); 215 $result = wp_install($weblog_title, $ user_name, $admin_email, $public, '', $admin_password);221 $result = wp_install($weblog_title, $weblog_tagline, $user_name, $admin_email, $public, '', $admin_password); 216 222 extract( $result, EXTR_SKIP ); 217 223 ?> 218 224 ` 219 225 <h1><?php _e( 'Success!' ); ?></h1> 220 226 221 227 <p><?php _e( 'WordPress has been installed. Were you expecting more steps? Sorry to disappoint.' ); ?></p>