Ticket #11506: unnamed_option.diff
File unnamed_option.diff, 595 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
494 494 */ 495 495 function update_option( $option_name, $newvalue ) { 496 496 global $wpdb; 497 498 // Trim whitespace from the $option_name so we can check if it's a real entry 499 // If the $option_name is empty or blank, we don't add it to the options table 500 $option_checker = trim( $option_name ); 501 if( empty( $option_checker ) ) return false; 497 502 498 503 wp_protect_special_option( $option_name ); 499 504