Changeset 12825 for trunk/wp-admin/options.php
- Timestamp:
- 01/25/2010 09:33:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r12789 r12825 23 23 24 24 $whitelist_options = array( 25 'general' => array( 'blogname', 'blogdescription', ' admin_email', 'users_can_register', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'default_role', 'timezone_string' ),25 'general' => array( 'blogname', 'blogdescription', 'gmt_offset', 'date_format', 'time_format', 'start_of_week', 'timezone_string' ), 26 26 'discussion' => array( 'default_pingback_flag', 'default_ping_status', 'default_comment_status', 'comments_notify', 'moderation_notify', 'comment_moderation', 'require_name_email', 'comment_whitelist', 'comment_max_links', 'moderation_keys', 'blacklist_keys', 'show_avatars', 'avatar_rating', 'avatar_default', 'close_comments_for_old_posts', 'close_comments_days_old', 'thread_comments', 'thread_comments_depth', 'page_comments', 'comments_per_page', 'default_comments_page', 'comment_order', 'comment_registration' ), 27 27 'misc' => array( 'use_linksupdate', 'uploads_use_yearmonth_folders', 'upload_path', 'upload_url_path' ), … … 29 29 'privacy' => array( 'blog_public' ), 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 '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' ),31 'writing' => array( 'default_post_edit_rows', 'use_smilies', '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'; 33 34 $mail_options = array('mailserver_url', 'mailserver_port', 'mailserver_login', 'mailserver_pass'); 35 36 if ( !is_multisite() ) { 37 if ( !defined( 'WP_SITEURL' ) ) $whitelist_options['general'][] = 'siteurl'; 38 if ( !defined( 'WP_HOME' ) ) $whitelist_options['general'][] = 'home'; 39 $whitelist_options['general'][] = 'admin_email'; 40 $whitelist_options['general'][] = 'users_can_register'; 41 $whitelist_options['general'][] = 'default_role'; 42 43 $whitelist_options['writing'] = array_merge($whitelist_options['writing'], $mail_options); 44 $whitelist_options['writing'][] = 'ping_sites'; 45 } else { 46 $whitelist_options['general'][] = 'new_admin_email'; 47 $whitelist_options['general'][] = 'WPLANG'; 48 $whitelist_options['general'][] = 'language'; 49 50 $whitelist_options[ 'misc' ] = array(); 51 52 if ( defined( 'POST_BY_EMAIL' ) ) 53 $whitelist_options['writing'] = array_merge($whitelist_options['writing'], $mail_options); 54 55 $whitelist_options[ 'misc' ] = array(); 56 } 35 57 36 58 $whitelist_options = apply_filters( 'whitelist_options', $whitelist_options ); … … 39 61 wp_die(__('Cheatin’ uh?')); 40 62 41 if ( is_multisite() && is_super_admin() && $_GET[ 'adminhash' ] ) {63 if ( is_multisite() && is_super_admin() && isset($_GET[ 'adminhash' ]) && $_GET[ 'adminhash' ] ) { 42 64 $new_admin_details = get_option( 'adminhash' ); 43 65 if ( is_array( $new_admin_details ) && $new_admin_details[ 'hash' ] == $_GET[ 'adminhash' ] && $new_admin_details[ 'newemail' ] != '' ) {
Note: See TracChangeset
for help on using the changeset viewer.