Ticket #11506: 11506.diff
File 11506.diff, 784 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
488 488 * @package WordPress 489 489 * @subpackage Option 490 490 * 491 * @param string $option_name Option name. Expected to not be SQL-escaped 491 * @param string $option_name Option name. Expected to not be SQL-escaped. Cannot be null or blank. 492 492 * @param mixed $newvalue Option value. 493 493 * @return bool False if value was not updated and true if value was updated. 494 494 */ 495 495 function update_option( $option_name, $newvalue ) { 496 496 global $wpdb; 497 498 $option_checker = trim( $option_name ); 499 if( empty( $option_checker ) ) return false; 497 500 498 501 wp_protect_special_option( $option_name ); 499 502