Make WordPress Core

Ticket #49239: my-sites.php.patch

File my-sites.php.patch, 843 bytes (added by pikamander2, 6 years ago)
  • my-sites.php

     
    2222$blogs = get_blogs_of_user( $current_user->ID );
    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
    2828        $blog = get_site( (int) $_POST['primary_blog'] );
     
    107107         * @param string $context       Context of the setting (global or site-specific). Default 'global'.
    108108         */
    109109        $settings_html = apply_filters( 'myblogs_options', '', 'global' );
    110         if ( $settings_html != '' ) {
     110        if ( '' !== $settings_html) {
    111111                echo '<h3>' . __( 'Global Settings' ) . '</h3>';
    112112                echo $settings_html;
    113113        }