Changeset 13858 for trunk/wp-includes/functions.php
- Timestamp:
- 03/28/2010 03:10:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r13829 r13858 319 319 return $pre; 320 320 321 $option = trim($option); 322 if ( empty($option) ) 323 return false; 324 321 325 // prevent non-existent options from triggering multiple queries 322 326 if ( defined( 'WP_INSTALLING' ) && is_multisite() ) { … … 489 493 global $wpdb; 490 494 495 $option = trim($option); 496 if ( empty($option) ) 497 return false; 498 491 499 wp_protect_special_option( $option ); 492 500 … … 560 568 */ 561 569 function add_option( $option, $value = '', $deprecated = '', $autoload = 'yes' ) { 570 global $wpdb; 571 562 572 if ( !empty( $deprecated ) ) 563 573 _deprecated_argument( __FUNCTION__, '2.3' ); 564 574 565 global $wpdb; 575 $option = trim($option); 576 if ( empty($option) ) 577 return false; 566 578 567 579 wp_protect_special_option( $option );
Note: See TracChangeset
for help on using the changeset viewer.