Make WordPress Core


Ignore:
Timestamp:
05/23/2020 11:36:36 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison for count() calls.

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-user.php

    r47808 r47848  
    591591     */
    592592    public function set_role( $role ) {
    593         if ( 1 == count( $this->roles ) && current( $this->roles ) == $role ) {
     593        if ( 1 === count( $this->roles ) && current( $this->roles ) == $role ) {
    594594            return;
    595595        }
Note: See TracChangeset for help on using the changeset viewer.