Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/14/2025 04:17:43 PM (10 months ago)
Author:
johnjamesjacoby
Message:

Tools - Build: Clean-up PHPCS, and enforce Yoda conditionals.

This commit includes changes to various PHP files, Composer requirements, and PHPCS config, to confirm that the WordPress.PHP.YodaConditions code sniff passes.

Props sirlouen.

In trunk, for 2.7.

Fixes #3613.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/SMF.php

    r7006 r7352  
    677677        public function authenticate_pass( $password, $serialized_pass ) {
    678678                $pass_array = unserialize( $serialized_pass );
    679                 return ( $pass_array['hash'] === sha1( strtolower( $pass_array['username'] ) . $password ) ? true : false );
     679                return ( sha1( strtolower( $pass_array['username'] ) . $password ) === $pass_array['hash'] ? true : false );
    680680        }
    681681
Note: See TracChangeset for help on using the changeset viewer.