Changeset 5093
- Timestamp:
- 03/23/2007 05:45:40 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-general.php
r4802 r5093 26 26 <tr valign="top"> 27 27 <th scope="row"><?php _e('WordPress address (URL):') ?></th> 28 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code "/></td>28 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" size="40" class="code<?php if ( defined( 'WP_SITEURL' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> /></td> 29 29 </tr> 30 30 <tr valign="top"> 31 31 <th scope="row"><?php _e('Blog address (URL):') ?></th> 32 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" size="40" class="code "/><br /><?php _e('If you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different than the directory</a> you installed WordPress in, enter that address here.'); ?></td>32 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" size="40" class="code<?php if ( defined( 'WP_HOME' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> /><br /><?php _e('If you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different than the directory</a> you installed WordPress in, enter that address here.'); ?></td> 33 33 </tr> 34 34 <tr valign="top"> -
trunk/wp-admin/upgrade-functions.php
r4990 r5093 22 22 update_option('blog_public', $public); 23 23 $schema = ( isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on' ) ? 'https://' : 'http://'; 24 $guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 24 25 if ( defined('WP_SITEURL') && '' != WP_SITEURL ) 26 $guessurl = WP_SITEURL; 27 else 28 $guessurl = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 29 25 30 update_option('siteurl', $guessurl); 26 31 -
trunk/wp-includes/default-filters.php
r5039 r5093 146 146 add_filter('option_ping_sites', 'privacy_ping_filter'); 147 147 add_filter('option_blog_charset', 'wp_specialchars'); 148 add_filter('option_home', '_config_wp_home'); 149 add_filter('option_siteurl', '_config_wp_siteurl'); 148 150 add_filter('mce_plugins', '_mce_load_rtl_plugin'); 149 151 add_filter('mce_buttons', '_mce_add_direction_buttons'); -
trunk/wp-includes/functions.php
r5087 r5093 994 994 $installed = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'"); 995 995 $wpdb->show_errors(); 996 return $installed; 996 997 $install_status = !empty( $installed ) ? TRUE : FALSE; 998 return $install_status; 997 999 } 998 1000 … … 1350 1352 <?php 1351 1353 die(); 1354 } 1355 1356 function _config_wp_home($url = '') { 1357 if ( defined( 'WP_HOME' ) ) 1358 return WP_HOME; 1359 else return $url; 1360 } 1361 1362 function _config_wp_siteurl($url = '') { 1363 if ( defined( 'WP_SITEURL' ) ) 1364 return WP_SITEURL; 1365 else return $url; 1352 1366 } 1353 1367
Note: See TracChangeset
for help on using the changeset viewer.