X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/53f4633144ed68c8b8fb5861f992b5489894a940..refs/heads/pristine:/wp-admin/options-discussion.php diff --git a/wp-admin/options-discussion.php b/wp-admin/options-discussion.php index 2ddaaac3..fefc0d82 100644 --- a/wp-admin/options-discussion.php +++ b/wp-admin/options-discussion.php @@ -9,29 +9,11 @@ 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.' ) ); + wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); $title = __('Discussion Settings'); $parent_file = 'options-general.php'; -/** - * Output JavaScript to toggle display of additional settings if avatars are disabled. - * - * @since 4.2.0 - */ -function options_discussion_add_js() { -?> - -add_help_tab( array( @@ -43,8 +25,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . - '

' . __('Support Forums') . '

' + '

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

' . + '

' . __('Support Forums') . '

' ); include( ABSPATH . 'wp-admin/admin-header.php' ); @@ -78,7 +60,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
- +

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

-

+

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

+

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

+

@@ -214,13 +196,13 @@ $show_avatars = get_option( 'show_avatars' ); __('G — Suitable for all audiences'), - /* translators: Content suitability rating: http://bit.ly/89QxZA */ + /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 'PG' => __('PG — Possibly offensive, usually for audiences 13 and above'), - /* translators: Content suitability rating: http://bit.ly/89QxZA */ + /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 'R' => __('R — Intended for adult audiences above 17'), - /* translators: Content suitability rating: http://bit.ly/89QxZA */ + /* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ 'X' => __('X — Even more mature than above') ); foreach ($ratings as $key => $rating) : @@ -235,7 +217,7 @@ endforeach;
-
+
__('Retro (Generated)') ); /** - * Filter the default avatars. + * Filters the default avatars. * * Avatars are stored in key/value pairs, where the key is option value, * and the name is the displayed avatar name. @@ -259,7 +241,6 @@ $avatar_defaults = array( */ $avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults ); $default = get_option( 'avatar_default', 'mystery' ); -$size = 32; $avatar_list = ''; // Force avatars on to display these choices @@ -268,12 +249,7 @@ add_filter( 'pre_option_show_avatars', '__return_true', 100 ); foreach ( $avatar_defaults as $default_key => $default_name ) { $selected = ($default == $default_key) ? 'checked="checked" ' : ''; $avatar_list .= "\n\t'; $avatar_list .= '
'; } @@ -281,7 +257,7 @@ foreach ( $avatar_defaults as $default_key => $default_name ) { remove_filter( 'pre_option_show_avatars', '__return_true', 100 ); /** - * Filter the HTML output of the default avatar list. + * Filters the HTML output of the default avatar list. * * @since 2.6.0 *