Make WordPress Core

Changes between Version 2 and Version 3 of Ticket #57271, comment 93


Ignore:
Timestamp:
02/16/2025 06:17:48 PM (18 months ago)
Author:
Andy Schmidt

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57271, comment 93

    v2 v3  
    3737       
    3838        /* PATCH: Allow option_value to already contain intended value *************  */
    39         if ( 0 === $result ) {
     39        global $wpdb;           
     40        if ( !$result and 0 === $wpdb->rows_affected ) {
    4041                // Qualify why 0 rows were affected.
    41                 global $wpdb;           
    4242                if ( 1 === sscanf( (string) mysqli_info( $wpdb->dbh ), 'Rows matched: %d', $mysql_matched ) and $mysql_matched > 0 )
    4343                        // Rows did match; fields just had intended content already.