Make WordPress Core

Ticket #54453: 54453.patch

File 54453.patch, 479 bytes (added by mjaschen, 3 years ago)

Patch

  • wp-includes/wp-db.php

    diff --git wp-includes/wp-db.php wp-includes/wp-db.php
    index 2ec3312c4..2f4d4a994 100644
    class wpdb { 
    13201320
    13211321                // If args were passed as an array (as in vsprintf), move them up.
    13221322                $passed_as_array = false;
    1323                 if ( is_array( $args[0] ) && count( $args ) === 1 ) {
     1323                if ( isset( $args[0] ) && is_array( $args[0] ) && count( $args ) === 1 ) {
    13241324                        $passed_as_array = true;
    13251325                        $args            = $args[0];
    13261326                }