Fixes too few parameters errpr on wpdb prepare
This commit is contained in:
parent
d497d43c42
commit
8e66ce2c73
|
@ -245,10 +245,7 @@ class Migrations {
|
|||
['meta_value' => 'Tainacan\Filter_Types\TaxonomySelectbox'],
|
||||
'%s', '%s');
|
||||
|
||||
$wpdb->query(
|
||||
$wpdb->prepare(
|
||||
"UPDATE $wpdb->postmeta SET meta_value = REPLACE(meta_value, 'tainacan-taxonomy-selectbox', 'tainacan-taxonomy-radio')"
|
||||
));
|
||||
$wpdb->query("UPDATE $wpdb->postmeta SET meta_value = REPLACE(meta_value, 'tainacan-taxonomy-selectbox', 'tainacan-taxonomy-radio')");
|
||||
}
|
||||
|
||||
static function update_core_metadata() {
|
||||
|
|
|
@ -99,7 +99,7 @@ class Filters extends TAINACAN_UnitTestCase {
|
|||
$Tainacan_Filters = \Tainacan\Repositories\Filters::get_instance();
|
||||
|
||||
$all_filter_types = $Tainacan_Filters->fetch_filter_types();
|
||||
$this->assertEquals( 8, count( $all_filter_types ) );
|
||||
$this->assertEquals( 7, count( $all_filter_types ) );
|
||||
|
||||
$float_filters = $Tainacan_Filters->fetch_supported_filter_types('float');
|
||||
$this->assertTrue( count( $float_filters ) > 0 );
|
||||
|
|
Loading…
Reference in New Issue