WordPress.org

Make WordPress Core

Ticket #11649: 11649-memory-is-the-cause-not-sql.patch

File 11649-memory-is-the-cause-not-sql.patch, 491 bytes (added by hakre, 6 years ago)
  • wp-admin/includes/upgrade.php

     
    16921692                if ( !empty($delete_options) ) { 
    16931693                        $delete_options = implode(',', $delete_options); 
    16941694                        $wpdb->query("DELETE FROM $wpdb->options WHERE option_id IN ($delete_options)"); 
     1695                        unset( $delete_options ); 
    16951696                } 
    16961697 
    16971698                // Drop the old primary key and add the new.