X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/6c8f14c09105d0afa4c1574215c59b5021040e76..1132430022383fdf47fa6cb9377300fd885297aa:/wp-admin/options-discussion.php diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index df14d51a..c9c8627e 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.' ) ); @@ -25,21 +24,20 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . '

' . __('Documentation on Discussion Settings') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Support Forums') . '

' ); -include('./admin-header.php'); +include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

- + - + - + - + - + - +

- +

@@ -77,7 +75,13 @@ include('./admin-header.php');
+

@@ -152,7 +156,7 @@ printf( __('Comments should be displayed with the %s comments at the top of each

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

+

- + - + - + @@ -249,4 +270,4 @@ echo apply_filters('default_avatar_select', $avatar_list); - +
@@ -203,7 +207,7 @@ endforeach;
@@ -211,7 +215,7 @@ endforeach; __('Mystery Man'), + 'mystery' => __('Mystery Person'), 'blank' => __('Blank'), 'gravatar_default' => __('Gravatar Logo'), 'identicon' => __('Identicon (Generated)'), @@ -219,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'; @@ -235,7 +249,14 @@ foreach ( $avatar_defaults as $default_key => $default_name ) { $avatar_list .= ' ' . $default_name . ''; $avatar_list .= '
'; } -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 ); ?>