From 60df42d187e0aef07c6dc34dce17f237586e1a1b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 23 May 2019 23:34:40 +0000 Subject: [PATCH] Networks and Sites: Readjust tabs in `wp-admin/includes/network.php` for (more or less) consistent alignment. See #47062. git-svn-id: https://develop.svn.wordpress.org/trunk@45391 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/network.php | 136 +++++++++++++++--------------- 1 file changed, 68 insertions(+), 68 deletions(-) diff --git a/src/wp-admin/includes/network.php b/src/wp-admin/includes/network.php index f2a8e82453..6e4ab0a9f7 100644 --- a/src/wp-admin/includes/network.php +++ b/src/wp-admin/includes/network.php @@ -257,7 +257,7 @@ function network_step1( $errors = false ) { echo '

' . __( 'Warning:' ) . ' ' . __( 'Subdirectory networks may not be fully compatible with custom wp-content directories.' ) . '

'; } - $is_www = ( 0 === strpos( $hostname, 'www.' ) ); + $is_www = ( 0 === strpos( $hostname, 'www.' ) ); if ( $is_www ) : ?>

@@ -462,24 +462,24 @@ function network_step2( $errors = false ) { -
    -
  1. - above the line reading %3$s:' ), - 'wp-config.php', - '' . $location_of_wp_config . '', - /* - * translators: This string should only be translated if wp-config-sample.php is localized. - * You can check the localized release package or - * https://i18n.svn.wordpress.org//branches//dist/wp-config-sample.php - */ - '/* ' . __( 'That’s all, stop editing! Happy publishing.' ) . ' */' - ); - ?> -

    - - '', - 'SECURE_AUTH_KEY' => '', - 'LOGGED_IN_KEY' => '', - 'NONCE_KEY' => '', - 'AUTH_SALT' => '', - 'SECURE_AUTH_SALT' => '', - 'LOGGED_IN_SALT' => '', - 'NONCE_SALT' => '', - ); - foreach ( $keys_salts as $c => $v ) { - if ( defined( $c ) ) { - unset( $keys_salts[ $c ] ); + '', + 'SECURE_AUTH_KEY' => '', + 'LOGGED_IN_KEY' => '', + 'NONCE_KEY' => '', + 'AUTH_SALT' => '', + 'SECURE_AUTH_SALT' => '', + 'LOGGED_IN_SALT' => '', + 'NONCE_SALT' => '', + ); + foreach ( $keys_salts as $c => $v ) { + if ( defined( $c ) ) { + unset( $keys_salts[ $c ] ); + } } - } - if ( ! empty( $keys_salts ) ) { - $keys_salts_str = ''; - $from_api = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' ); - if ( is_wp_error( $from_api ) ) { - foreach ( $keys_salts as $c => $v ) { - $keys_salts_str .= "\ndefine( '$c', '" . wp_generate_password( 64, true, true ) . "' );"; + if ( ! empty( $keys_salts ) ) { + $keys_salts_str = ''; + $from_api = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' ); + if ( is_wp_error( $from_api ) ) { + foreach ( $keys_salts as $c => $v ) { + $keys_salts_str .= "\ndefine( '$c', '" . wp_generate_password( 64, true, true ) . "' );"; + } + } else { + $from_api = explode( "\n", wp_remote_retrieve_body( $from_api ) ); + foreach ( $keys_salts as $c => $v ) { + $keys_salts_str .= "\ndefine( '$c', '" . substr( array_shift( $from_api ), 28, 64 ) . "' );"; + } } - } else { - $from_api = explode( "\n", wp_remote_retrieve_body( $from_api ) ); - foreach ( $keys_salts as $c => $v ) { - $keys_salts_str .= "\ndefine( '$c', '" . substr( array_shift( $from_api ), 28, 64 ) . "' );"; + $num_keys_salts = count( $keys_salts ); + ?> +

    + wp-config.php' + ); + } else { + printf( + /* translators: %s: wp-config.php */ + __( 'These unique authentication keys are also missing from your %s file.' ), + 'wp-config.php' + ); } - } - $num_keys_salts = count( $keys_salts ); - ?> -

    - wp-config.php' - ); - } else { - printf( - /* translators: %s: wp-config.php */ - __( 'These unique authentication keys are also missing from your %s file.' ), - 'wp-config.php' - ); + ?> + +

    + + - -

    - - -
  2. +