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/sites.php

    r47219 r47853  
    224224                                        }
    225225                                }
     226
    226227                                if ( ! in_array( $doaction, array( 'delete', 'spam', 'notspam' ), true ) ) {
    227228                                        $redirect_to = wp_get_referer();
    228229                                        $blogs       = (array) $_POST['allblogs'];
     230
    229231                                        /** This action is documented in wp-admin/network/site-themes.php */
    230232                                        $redirect_to = apply_filters( 'handle_network_bulk_actions-' . get_current_screen()->id, $redirect_to, $doaction, $blogs, $id ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
     233
    231234                                        wp_safe_redirect( $redirect_to );
    232235                                        exit();
    … …  
    238241                                        add_query_arg( $_POST, network_admin_url( 'sites.php' ) )
    239242                                );
     243
    240244                                wp_redirect( $location );
    241245                                exit;
    … …  
    271275                         */
    272276                        do_action( 'deactivate_blog', $id );
     277
    273278                        update_blog_status( $id, 'deleted', '1' );
    274279                        break;
Note: See TracChangeset for help on using the changeset viewer.