Changeset 4995 for trunk/includes/users/template-tags.php
- Timestamp:
- 06/23/2013 06:37:22 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/includes/users/template-tags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/users/template-tags.php
r4984 r4995 1237 1237 1238 1238 // loggedout was passed 1239 if ( !empty( $_GET['loggedout'] ) && ( true == $_GET['loggedout'] ) ) {1239 if ( !empty( $_GET['loggedout'] ) && ( true === $_GET['loggedout'] ) ) { 1240 1240 bbp_add_error( 'loggedout', __( 'You are now logged out.', 'bbpress' ), 'message' ); 1241 1241 1242 1242 // registration is disabled 1243 } elseif ( !empty( $_GET['registration'] ) && ( 'disabled' == $_GET['registration'] ) ) {1243 } elseif ( !empty( $_GET['registration'] ) && ( 'disabled' === $_GET['registration'] ) ) { 1244 1244 bbp_add_error( 'registerdisabled', __( 'New user registration is currently not allowed.', 'bbpress' ) ); 1245 1245 … … 1445 1445 1446 1446 // Get avatar 1447 if ( 'avatar' == $r['type'] || 'both'== $r['type'] ) {1447 if ( 'avatar' === $r['type'] || 'both' === $r['type'] ) { 1448 1448 $author_links[] = get_avatar( $user_id, $r['size'] ); 1449 1449 } 1450 1450 1451 1451 // Get display name 1452 if ( 'name' == $r['type'] || 'both'== $r['type'] ) {1452 if ( 'name' === $r['type'] || 'both' === $r['type'] ) { 1453 1453 $author_links[] = get_the_author_meta( 'display_name', $user_id ); 1454 1454 }
Note: See TracChangeset
for help on using the changeset viewer.