Ticket #4003: patch.diff
File patch.diff, 2.6 KB (added by , 18 years ago) |
---|
-
wp-includes/default-filters.php
145 145 // Misc filters 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'); 150 152 -
wp-includes/functions.php
1351 1351 die(); 1352 1352 } 1353 1353 1354 function _config_wp_home($url = '') { 1355 if ( defined( 'WP_HOME' ) ) 1356 return WP_HOME; 1357 else return $url; 1358 } 1359 1360 function _config_wp_siteurl($url = '') { 1361 if ( defined( 'WP_SITEURL' ) ) 1362 return WP_SITEURL; 1363 else return $url; 1364 } 1365 1354 1366 function _mce_set_direction() { 1355 1367 global $wp_locale; 1356 1368 -
wp-admin/options-general.php
25 25 </tr> 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"> 35 35 <th scope="row"><?php _e('E-mail address:') ?> </th>