Make WordPress Core

Ticket #63420: use-identity-operator-to-detect-failure.patch

File use-identity-operator-to-detect-failure.patch, 395 bytes (added by gdogabriel, 2 months ago)
  • src/wp-includes/meta.php

    diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php
    index 6982e618c3..6c8a1350ef 100644
    a b function update_metadata( $meta_type, $object_id, $meta_key, $meta_value, $prev_ 
    312312        }
    313313
    314314        $result = $wpdb->update( $table, $data, $where );
    315         if ( ! $result ) {
     315        if ( false === $result ) {
    316316                return false;
    317317        }
    318318