Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/23/2013 06:37:22 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Use strict comparisons where possible (excluding the converter code, as it needs dedicated testing.) See #2358.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/users/template-tags.php

    r4984 r4995  
    12371237
    12381238    // loggedout was passed
    1239     if ( !empty( $_GET['loggedout'] ) && ( true == $_GET['loggedout'] ) ) {
     1239    if ( !empty( $_GET['loggedout'] ) && ( true === $_GET['loggedout'] ) ) {
    12401240        bbp_add_error( 'loggedout', __( 'You are now logged out.', 'bbpress' ), 'message' );
    12411241
    12421242    // registration is disabled
    1243     } elseif ( !empty( $_GET['registration'] ) && ( 'disabled' == $_GET['registration'] ) ) {
     1243    } elseif ( !empty( $_GET['registration'] ) && ( 'disabled' === $_GET['registration'] ) ) {
    12441244        bbp_add_error( 'registerdisabled', __( 'New user registration is currently not allowed.', 'bbpress' ) );
    12451245
     
    14451445
    14461446            // Get avatar
    1447             if ( 'avatar' == $r['type'] || 'both' == $r['type'] ) {
     1447            if ( 'avatar' === $r['type'] || 'both' === $r['type'] ) {
    14481448                $author_links[] = get_avatar( $user_id, $r['size'] );
    14491449            }
    14501450
    14511451            // Get display name
    1452             if ( 'name' == $r['type'] || 'both' == $r['type'] ) {
     1452            if ( 'name' === $r['type'] || 'both' === $r['type'] ) {
    14531453                $author_links[] = get_the_author_meta( 'display_name', $user_id );
    14541454            }
Note: See TracChangeset for help on using the changeset viewer.