Make WordPress Core

Ticket #4003: patch.diff

File patch.diff, 2.6 KB (added by filosofo, 18 years ago)
  • wp-includes/default-filters.php

     
    145145// Misc filters
    146146add_filter('option_ping_sites', 'privacy_ping_filter');
    147147add_filter('option_blog_charset', 'wp_specialchars');
     148add_filter('option_home', '_config_wp_home');
     149add_filter('option_siteurl', '_config_wp_siteurl');
    148150add_filter('mce_plugins', '_mce_load_rtl_plugin');
    149151add_filter('mce_buttons', '_mce_add_direction_buttons');
    150152
  • wp-includes/functions.php

     
    13511351        die();
    13521352}
    13531353
     1354function _config_wp_home($url = '') {
     1355        if ( defined( 'WP_HOME' ) )
     1356                return WP_HOME;
     1357        else return $url;
     1358}
     1359
     1360function _config_wp_siteurl($url = '') {
     1361        if ( defined( 'WP_SITEURL' ) )
     1362                return WP_SITEURL;
     1363        else return $url;
     1364}
     1365
    13541366function _mce_set_direction() {
    13551367        global $wp_locale;
    13561368
  • wp-admin/options-general.php

     
    2525</tr>
    2626<tr valign="top">
    2727<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>
    2929</tr>
    3030<tr valign="top">
    3131<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>
    3333</tr>
    3434<tr valign="top">
    3535<th scope="row"><?php _e('E-mail address:') ?> </th>