X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..f6364df6999f38896cc58171ec4a503f4f2dedcf:/wp-admin/options.php diff --git a/wp-admin/options.php b/wp-admin/options.php index 15f489d3..d802057f 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -60,7 +60,7 @@ $whitelist_options = array( 'media' => array( 'thumbnail_size_w', 'thumbnail_size_h', 'thumbnail_crop', 'medium_size_w', 'medium_size_h', 'large_size_w', 'large_size_h', 'image_default_size', 'image_default_align', 'image_default_link_type', 'embed_autourls', 'embed_size_w', 'embed_size_h' ), 'privacy' => array( 'blog_public' ), 'reading' => array( 'posts_per_page', 'posts_per_rss', 'rss_use_excerpt', 'blog_charset', 'show_on_front', 'page_on_front', 'page_for_posts' ), - 'writing' => array( 'default_post_edit_rows', 'use_smilies', 'default_category', 'default_email_category', 'use_balanceTags', 'default_link_category', 'enable_app', 'enable_xmlrpc' ), + 'writing' => array( 'default_post_edit_rows', 'use_smilies', 'default_category', 'default_email_category', 'use_balanceTags', 'default_link_category', 'default_post_format', 'enable_app', 'enable_xmlrpc' ), 'options' => array( '' ) ); $mail_options = array('mailserver_url', 'mailserver_port', 'mailserver_login', 'mailserver_pass'); @@ -157,7 +157,7 @@ if ( 'update' == $action ) { /** * Redirect back to the settings page that was submitted */ - $goback = add_query_arg( 'updated', 'true', wp_get_referer() ); + $goback = add_query_arg( 'settings-updated', 'true', wp_get_referer() ); wp_redirect( $goback ); exit; } @@ -201,7 +201,7 @@ foreach ( (array) $options as $option ) : "; if ( strpos( $value, "\n" ) !== false ) - echo ""; + echo ""; else echo ""; echo " @@ -209,7 +209,11 @@ foreach ( (array) $options as $option ) : endforeach; ?> -

+ + + + +