Changeset 36511 for trunk/src/wp-includes/meta.php
- Timestamp:
- 02/12/2016 02:46:28 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/meta.php
r36509 r36511 364 364 return false; 365 365 366 if ( $delete_all ) 367 $object_ids = $wpdb->get_col( $wpdb->prepare( "SELECT $type_column FROM $table WHERE meta_key = %s", $meta_key ) ); 366 if ( $delete_all ) { 367 $value_clause = ''; 368 if ( '' !== $meta_value && null !== $meta_value && false !== $meta_value ) { 369 $value_clause = $wpdb->prepare( " AND meta_value = %s", $meta_value ); 370 } 371 372 $object_ids = $wpdb->get_col( $wpdb->prepare( "SELECT $type_column FROM $table WHERE meta_key = %s $value_clause", $meta_key ) ); 373 } 368 374 369 375 /**
Note: See TracChangeset
for help on using the changeset viewer.