Ticket #10957: options-general.php.2.diff
File options-general.php.2.diff, 2.4 KB (added by , 16 years ago) |
---|
-
options-general.php
71 71 <span class="description"><?php _e('In a few words, explain what this blog is about.') ?></span></td> 72 72 </tr> 73 73 <tr valign="top"> 74 <th scope="row"><label for="siteurl"><?php _e('WordPress address (URL)') ?></label></th>75 <td><input name="siteurl" type="text" id="siteurl" value="<?php form_option('siteurl'); ?>" class="regular-text code<?php if ( defined( 'WP_SITEURL' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> /></td>76 </tr>77 <tr valign="top">78 <th scope="row"><label for="home"><?php _e('Blog address (URL)') ?></label></th>79 <td><input name="home" type="text" id="home" value="<?php form_option('home'); ?>" class="regular-text code<?php if ( defined( 'WP_HOME' ) ) : ?> disabled" disabled="disabled"<?php else: ?>"<?php endif; ?> />80 <span class="description"><?php _e('Enter the address here if you want your blog homepage <a href="http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory">to be different from the directory</a> you installed WordPress.'); ?></span></td>81 </tr>82 <tr valign="top">83 74 <th scope="row"><label for="admin_email"><?php _e('E-mail address') ?> </label></th> 84 75 <td><input name="admin_email" type="text" id="admin_email" value="<?php form_option('admin_email'); ?>" class="regular-text" /> 85 76 <span class="description"><?php _e('This address is used for admin purposes, like new user notification.') ?></span></td> -
options.php
30 30 'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'blog_charset', 'show_on_front', 'page_on_front', 'page_for_posts' ), 31 31 'writing' => array( 'default_post_edit_rows', 'use_smilies', 'ping_sites', 'mailserver_url', 'mailserver_port', 'mailserver_login', 'mailserver_pass', 'default_category', 'default_email_category', 'use_balanceTags', 'default_link_category', 'enable_app', 'enable_xmlrpc' ), 32 32 'options' => array( '' ) ); 33 if ( !defined( 'WP_SITEURL' ) ) $whitelist_options['general'][] = 'siteurl';34 if ( !defined( 'WP_HOME' ) ) $whitelist_options['general'][] = 'home';35 33 36 34 $whitelist_options = apply_filters( 'whitelist_options', $whitelist_options ); 37 35