Ticket #6479: 6479.2.patch
File 6479.2.patch, 3.2 KB (added by , 9 years ago) |
---|
-
src/wp-admin/includes/upgrade.php
34 34 * @param string $deprecated Optional. Not used. 35 35 * @param string $user_password Optional. User's chosen password. Default empty (random password). 36 36 * @param string $language Optional. Language chosen. Default empty. 37 * @param string $blog_tagline Blog tagline. 37 38 * @return array Array keys 'url', 'user_id', 'password', and 'password_message'. 38 39 */ 39 function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' ) {40 function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '', $blog_tagline = '' ) { 40 41 if ( !empty( $deprecated ) ) 41 42 _deprecated_argument( __FUNCTION__, '2.6' ); 42 43 … … 54 55 update_option( 'WPLANG', $language ); 55 56 } 56 57 58 if ( $blog_tagline ) { 59 update_option( 'blogdescription', $blog_tagline ); 60 } 61 57 62 $guessurl = wp_guess_url(); 58 63 59 64 update_option('siteurl', $guessurl); -
src/wp-admin/install.php
101 101 } 102 102 103 103 $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : ''; 104 $weblog_tagline = isset( $_POST['weblog_tagline'] ) ? trim( wp_unslash( $_POST['weblog_tagline'] ) ) : ''; 104 105 $user_name = isset($_POST['user_name']) ? trim( wp_unslash( $_POST['user_name'] ) ) : ''; 105 106 $admin_email = isset( $_POST['admin_email'] ) ? trim( wp_unslash( $_POST['admin_email'] ) ) : ''; 106 107 … … 115 116 <td><input name="weblog_title" type="text" id="weblog_title" size="25" value="<?php echo esc_attr( $weblog_title ); ?>" /></td> 116 117 </tr> 117 118 <tr> 119 <th scope="row"><label for="weblog_tagline"><?php _e( 'Site Tagline' ); ?></label></th> 120 <td><input name="weblog_tagline" type="text" id="weblog_tagline" size="25" value="<?php echo esc_attr( $weblog_tagline ); ?>" /></td> 121 </tr> 122 <tr> 118 123 <th scope="row"><label for="user_login"><?php _e('Username'); ?></label></th> 119 124 <td> 120 125 <?php … … 306 311 display_header(); 307 312 // Fill in the data we gathered 308 313 $weblog_title = isset( $_POST['weblog_title'] ) ? trim( wp_unslash( $_POST['weblog_title'] ) ) : ''; 314 $weblog_tagline = isset( $_POST['weblog_tagline'] ) ? trim( wp_unslash( $_POST['weblog_tagline'] ) ) : ''; 309 315 $user_name = isset($_POST['user_name']) ? trim( wp_unslash( $_POST['user_name'] ) ) : ''; 310 316 $admin_password = isset($_POST['admin_password']) ? wp_unslash( $_POST['admin_password'] ) : ''; 311 317 $admin_password_check = isset($_POST['admin_password2']) ? wp_unslash( $_POST['admin_password2'] ) : ''; … … 337 343 338 344 if ( $error === false ) { 339 345 $wpdb->show_errors(); 340 $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language );346 $result = wp_install( $weblog_title, $user_name, $admin_email, $public, '', wp_slash( $admin_password ), $loaded_language, $weblog_tagline ); 341 347 ?> 342 348 343 349 <h1><?php _e( 'Success!' ); ?></h1>