X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/38ca813a0e312e2768e5b9519f0415cd0aa84781..85ad385665744d9cc3bcd939906309be7268edb3:/wp-admin/options-discussion.php diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 862b002d..717defa6 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -5,9 +5,8 @@ * @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 site.' ) ); @@ -15,19 +14,23 @@ if ( ! current_user_can( 'manage_options' ) ) $title = __('Discussion Settings'); $parent_file = 'options-general.php'; -add_contextual_help($current_screen, - '

' . __('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 link below 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()->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('./admin-header.php'); +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

@@ -35,46 +38,53 @@ include('./admin-header.php'); - - + - - + - - + - - + - - + - - +
+
+
+
+
- +

- +
+

+
+
+
+
+
- +
-

+
+

-

+

-

+
+

@@ -157,28 +168,25 @@ printf( __('Comments should be displayed with the %s comments at the top of each
-

+

-

+

- - + - - + - - + @@ -245,4 +270,4 @@ echo apply_filters('default_avatar_select', $avatar_list); - +
- __( 'Don’t show Avatars' ), 1 => __( 'Show Avatars' ) ); - foreach ( $yesorno as $key => $value) { - $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : ''; - echo "\n\t
"; - } -?> +
+
+
+

@@ -215,7 +223,17 @@ $avatar_defaults = array( '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'; @@ -223,7 +241,7 @@ $size = 32; $avatar_list = ''; foreach ( $avatar_defaults as $default_key => $default_name ) { $selected = ($default == $default_key) ? 'checked="checked" ' : ''; - $avatar_list .= "\n\t