$status shouldn't be loosely compared to true in wp_xmlrpc_server::wp_deleteComment().
`$initial` shouldn't be loosely compared to `true` in `get_calendar()`. `current_user_can()` shouldn't be loosely compared to `false` in `kses_init()` `$get_all` shouldn't be loosely compared to `true` in `get_blog_details()`. `is_array()` and `in_array()` shouldn't be loosely compared in `wpmu_validate_user_signup()`. `$result` should by strictly compared in `check_ajax_referer()`. `wp_verify_nonce()` should by strictly compared in `_show_post_preview()`. `is_user_logged_in()` should not be loosly compared against `false` in `wp-signup.php`. See #32444. Built from https://develop.svn.wordpress.org/trunk@32733 git-svn-id: http://core.svn.wordpress.org/trunk@32704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1137,7 +1137,7 @@ function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
|
||||
|
||||
$result = wp_verify_nonce( $nonce, $action );
|
||||
|
||||
if ( $die && false == $result ) {
|
||||
if ( $die && false === $result ) {
|
||||
if ( defined( 'DOING_AJAX' ) && DOING_AJAX )
|
||||
wp_die( -1 );
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user