diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php index 5e48437434..82fda9682f 100644 --- a/src/wp-admin/includes/upgrade.php +++ b/src/wp-admin/includes/upgrade.php @@ -31,7 +31,7 @@ if ( ! function_exists( 'wp_install' ) ) : * @param string $blog_title Site title. * @param string $user_name User's username. * @param string $user_email User's email. - * @param bool $public Whether site is public. + * @param bool $is_public Whether the site is public. * @param string $deprecated Optional. Not used. * @param string $user_password Optional. User's chosen password. Default empty (random password). * @param string $language Optional. Language chosen. Default empty. @@ -44,7 +44,7 @@ if ( ! function_exists( 'wp_install' ) ) : * @type string $password_message The explanatory message regarding the password. * } */ - function wp_install( $blog_title, $user_name, $user_email, $public, $deprecated = '', $user_password = '', $language = '' ) { + function wp_install( $blog_title, $user_name, $user_email, $is_public, $deprecated = '', $user_password = '', $language = '' ) { if ( ! empty( $deprecated ) ) { _deprecated_argument( __FUNCTION__, '2.6.0' ); } @@ -57,7 +57,7 @@ if ( ! function_exists( 'wp_install' ) ) : update_option( 'blogname', $blog_title ); update_option( 'admin_email', $user_email ); - update_option( 'blog_public', $public ); + update_option( 'blog_public', $is_public ); // Freshness of site - in the future, this could get more specific about actions taken, perhaps. update_option( 'fresh_site', 1 ); @@ -71,7 +71,7 @@ if ( ! function_exists( 'wp_install' ) ) : update_option( 'siteurl', $guessurl ); // If not a public site, don't ping. - if ( ! $public ) { + if ( ! $is_public ) { update_option( 'default_pingback_flag', 0 ); }