Make WordPress Core


Ignore:
Timestamp:
05/24/2020 09:14:21 AM (6 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-info.php

    r47557 r47853  
    3636$is_main_site  = is_main_site( $id );
    3737
    38 if ( isset( $_REQUEST['action'] ) && 'update-site' == $_REQUEST['action'] ) {
     38if ( isset( $_REQUEST['action'] ) && 'update-site' === $_REQUEST['action'] ) {
    3939    check_admin_referer( 'edit-site' );
    4040
     
    118118if ( isset( $_GET['update'] ) ) {
    119119    $messages = array();
    120     if ( 'updated' == $_GET['update'] ) {
     120    if ( 'updated' === $_GET['update'] ) {
    121121        $messages[] = __( 'Site info updated.' );
    122122    }
Note: See TracChangeset for help on using the changeset viewer.