Make WordPress Core


Ignore:
Timestamp:
05/12/2020 06:30:03 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in some wp-admin files.

Props pikamander2, mukesh27, SergeyBiryukov.
Fixes #49239.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/my-sites.php

    r47550 r47785  
    2323
    2424$updated = false;
    25 if ( 'updateblogsettings' == $action && isset( $_POST['primary_blog'] ) ) {
     25if ( 'updateblogsettings' === $action && isset( $_POST['primary_blog'] ) ) {
    2626    check_admin_referer( 'update-my-sites' );
    2727
     
    108108     */
    109109    $settings_html = apply_filters( 'myblogs_options', '', 'global' );
    110     if ( '' != $settings_html ) {
     110
     111    if ( $settings_html ) {
    111112        echo '<h3>' . __( 'Global Settings' ) . '</h3>';
    112113        echo $settings_html;
    113114    }
     115
    114116    reset( $blogs );
    115117
     
    135137         */
    136138        $actions = apply_filters( 'myblogs_blog_actions', $actions, $user_blog );
     139
    137140        echo "<p class='my-sites-actions'>" . $actions . '</p>';
    138141
    139142        /** This filter is documented in wp-admin/my-sites.php */
    140143        echo apply_filters( 'myblogs_options', '', $user_blog );
     144
    141145        echo '</li>';
    142146
Note: See TracChangeset for help on using the changeset viewer.