Changeset 5394 for trunk/wp-admin/upgrade-functions.php
- Timestamp:
- 05/05/2007 12:17:05 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-functions.php
r5345 r5394 672 672 function __get_option($setting) { 673 673 global $wpdb; 674 674 675 if ( $setting == 'home' && defined( 'WP_HOME' ) ) { 676 return preg_replace( '|/+$|', '', constant( 'WP_HOME' ) ); 677 } 678 679 if ( $setting == 'siteurl' && defined( 'WP_SITEURL' ) ) { 680 return preg_replace( '|/+$|', '', constant( 'WP_SITEURL' ) ); 681 } 682 675 683 $option = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = '$setting'"); 676 684
Note: See TracChangeset
for help on using the changeset viewer.