Make WordPress Core


Ignore:
Timestamp:
08/23/2016 12:16:43 AM (8 years ago)
Author:
SergeyBiryukov
Message:

I18N: Replace unnecessary context with a translator comment for %s Sites string in network_step1().

Props ramiy.
Fixes #37777.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/network.php

    r37902 r38323  
    145145    }
    146146
    147     $site_name = ( ! empty( $_POST['sitename'] ) && ! in_array( 'empty_sitename', $error_codes ) ) ? $_POST['sitename'] : sprintf( _x('%s Sites', 'Default network name' ), get_option( 'blogname' ) );
    148     $admin_email = ( ! empty( $_POST['email'] ) && ! in_array( 'invalid_email', $error_codes ) ) ? $_POST['email'] : get_option( 'admin_email' );
     147    if ( ! empty( $_POST['sitename'] ) && ! in_array( 'empty_sitename', $error_codes ) ) {
     148        $site_name = $_POST['sitename'];
     149    } else {
     150        /* translators: %s: Default network name */
     151        $site_name = sprintf( __( '%s Sites' ), get_option( 'blogname' ) );
     152    }
     153
     154    if ( ! empty( $_POST['email'] ) && ! in_array( 'invalid_email', $error_codes ) ) {
     155        $admin_email = $_POST['email'];
     156    } else {
     157        $admin_email = get_option( 'admin_email' );
     158    }
    149159    ?>
    150160    <p><?php _e( 'Welcome to the Network installation process!' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.