Make WordPress Core


Ignore:
Timestamp:
05/24/2020 09:14:21 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp-admin/network where static strings are involved.

Includes minor code layout fixes for better readability.

Follow-up to [47808].

See #49542.

File:
1 edited

Legend:

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

    r47606 r47853  
    3434);
    3535
    36 if ( isset( $_REQUEST['action'] ) && 'add-site' == $_REQUEST['action'] ) {
     36if ( isset( $_REQUEST['action'] ) && 'add-site' === $_REQUEST['action'] ) {
    3737    check_admin_referer( 'add-blog', '_wpnonce_add-blog' );
    3838
     
    140140    $id = wpmu_create_blog( $newdomain, $path, $title, $user_id, $meta, get_current_network_id() );
    141141    $wpdb->show_errors();
     142
    142143    if ( ! is_wp_error( $id ) ) {
    143144        if ( ! is_super_admin( $user_id ) && ! get_user_option( 'primary_blog', $user_id ) ) {
     
    188189if ( isset( $_GET['update'] ) ) {
    189190    $messages = array();
    190     if ( 'added' == $_GET['update'] ) {
     191    if ( 'added' === $_GET['update'] ) {
    191192        $messages[] = sprintf(
    192193            /* translators: 1: Dashboard URL, 2: Network admin edit URL. */
Note: See TracChangeset for help on using the changeset viewer.