Ticket #12203: would_be_nice_to_have_a_wildcard-2.diff
File would_be_nice_to_have_a_wildcard-2.diff, 663 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
627 627 return true; 628 628 } 629 629 630 function delete_bulk_options( $name ) 631 { 632 global $wpdb; 633 634 wp_protect_special_option( $name ) 635 636 $options = $wpdb->get_row( "SELECT autoload FROM $wpdb->options WHERE option_name LIKE '$name'" ); 637 if ( is_null($options) ) 638 return false; 639 640 foreach( $options as $option ) 641 { 642 delete_option( $option ); 643 } 644 645 do_action( 'delete_bulk_options', $name ); 646 return true; 647 } 648 630 649 /** 631 650 * Delete a transient 632 651 *