Ticket #24800: 24800.diff
File 24800.diff, 933 bytes (added by , 11 years ago) |
---|
-
includes/testcase.php
29 29 function tearDown() { 30 30 global $wpdb; 31 31 $wpdb->query( 'ROLLBACK' ); 32 remove_filter( ' dbdelta_create_queries', array( $this, '_create_temporary_tables' ) );32 remove_filter( 'query', array( $this, '_create_temporary_tables' ) ); 33 33 remove_filter( 'query', array( $this, '_drop_temporary_tables' ) ); 34 34 remove_filter( 'wp_die_handler', array( $this, 'get_wp_die_handler' ) ); 35 35 } … … 56 56 global $wpdb; 57 57 $wpdb->query( 'SET autocommit = 0;' ); 58 58 $wpdb->query( 'START TRANSACTION;' ); 59 add_filter( ' dbdelta_create_queries', array( $this, '_create_temporary_tables' ) );59 add_filter( 'query', array( $this, '_create_temporary_tables' ) ); 60 60 add_filter( 'query', array( $this, '_drop_temporary_tables' ) ); 61 61 } 62 62