X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fd1685fbc29cf422e0d23f1bf1815bc023be805d..53a5df18dd17a11c18781e78349feb3e139096b4:/wp-admin/options-discussion.php diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 132f0b3c..76f6b322 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -5,17 +5,29 @@ * @package WordPress * @subpackage Administration */ - /** WordPress Administration Bootstrap */ -require_once('admin.php'); +require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( ! current_user_can('manage_options') ) - wp_die(__('You do not have sufficient permissions to manage options for this blog.')); +if ( ! current_user_can( 'manage_options' ) ) + wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); $title = __('Discussion Settings'); $parent_file = 'options-general.php'; -include('admin-header.php'); +get_current_screen()->add_help_tab( array( + 'id' => 'overview', + 'title' => __('Overview'), + 'content' => '
' . __('This screen provides many options for controlling the management and display of comments and links to your posts/pages. So many, in fact, they won’t all fit here! :) Use the documentation links to get information on what each discussion setting does.') . '
' . + '' . __('You must click the Save Changes button at the bottom of the screen for new settings to take effect.') . '
', +) ); + +get_current_screen()->set_help_sidebar( + '' . __('For more information:') . '
' . + '' . __('Documentation on Discussion Settings') . '
' . + '' . __('Support Forums') . '
' +); + +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>- | |||
---|---|---|---|
- |
+ | | |
- |
+ | | |
- |
+ | - | |
- |
+ | - + | |
- |
+ | - + |
- | "; - } -?> +
+ | | |
---|---|---|---|
- |
+ | "; @@ -182,8 +209,8 @@ endforeach; | |
- |
+ | |
@@ -222,10 +267,8 @@ echo apply_filters('default_avatar_select', $avatar_list);
-@@ -194,9 +221,20 @@ $avatar_defaults = array( 'gravatar_default' => __('Gravatar Logo'), 'identicon' => __('Identicon (Generated)'), 'wavatar' => __('Wavatar (Generated)'), - 'monsterid' => __('MonsterID (Generated)') + 'monsterid' => __('MonsterID (Generated)'), + 'retro' => __('Retro (Generated)') ); -$avatar_defaults = apply_filters('avatar_defaults', $avatar_defaults); +/** + * Filter the default avatars. + * + * Avatars are stored in key/value pairs, where the key is option value, + * and the name is the displayed avatar name. + * + * @since 2.6.0 + * + * @param array $avatar_defaults Array of default avatars. + */ +$avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults ); $default = get_option('avatar_default'); if ( empty($default) ) $default = 'mystery'; @@ -204,7 +242,7 @@ $size = 32; $avatar_list = ''; foreach ( $avatar_defaults as $default_key => $default_name ) { $selected = ($default == $default_key) ? 'checked="checked" ' : ''; - $avatar_list .= "\n\t '; } -echo apply_filters('default_avatar_select', $avatar_list); +/** + * Filter the HTML output of the default avatar list. + * + * @since 2.6.0 + * + * @param string $avatar_list HTML markup of the avatar list. + */ +echo apply_filters( 'default_avatar_select', $avatar_list ); ?> - - + - + |