Changeset 53230
- Timestamp:
- 04/20/2022 10:44:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r53011 r53230 32 32 * @param string $user_name User's username. 33 33 * @param string $user_email User's email. 34 * @param bool $ public Whethersite is public.34 * @param bool $is_public Whether the site is public. 35 35 * @param string $deprecated Optional. Not used. 36 36 * @param string $user_password Optional. User's chosen password. Default empty (random password). … … 45 45 * } 46 46 */ 47 function wp_install( $blog_title, $user_name, $user_email, $ public, $deprecated = '', $user_password = '', $language = '' ) {47 function wp_install( $blog_title, $user_name, $user_email, $is_public, $deprecated = '', $user_password = '', $language = '' ) { 48 48 if ( ! empty( $deprecated ) ) { 49 49 _deprecated_argument( __FUNCTION__, '2.6.0' ); … … 58 58 update_option( 'blogname', $blog_title ); 59 59 update_option( 'admin_email', $user_email ); 60 update_option( 'blog_public', $ public );60 update_option( 'blog_public', $is_public ); 61 61 62 62 // Freshness of site - in the future, this could get more specific about actions taken, perhaps. … … 72 72 73 73 // If not a public site, don't ping. 74 if ( ! $ public ) {74 if ( ! $is_public ) { 75 75 update_option( 'default_pingback_flag', 0 ); 76 76 }
Note: See TracChangeset
for help on using the changeset viewer.