author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 18:28:13 +0200 | |
changeset 9 | 177826044cd9 |
parent 7 | cf61fcea0001 |
child 16 | a86126ab1dd4 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* Discussion settings administration panel. |
|
4 |
* |
|
5 |
* @package WordPress |
|
6 |
* @subpackage Administration |
|
7 |
*/ |
|
8 |
/** WordPress Administration Bootstrap */ |
|
9 |
require_once( dirname( __FILE__ ) . '/admin.php' ); |
|
10 |
||
9 | 11 |
if ( ! current_user_can( 'manage_options' ) ) { |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
12 |
wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); |
9 | 13 |
} |
0 | 14 |
|
9 | 15 |
$title = __( 'Discussion Settings' ); |
0 | 16 |
$parent_file = 'options-general.php'; |
17 |
||
5 | 18 |
add_action( 'admin_print_footer_scripts', 'options_discussion_add_js' ); |
19 |
||
9 | 20 |
get_current_screen()->add_help_tab( |
21 |
array( |
|
22 |
'id' => 'overview', |
|
23 |
'title' => __( 'Overview' ), |
|
24 |
'content' => '<p>' . __( '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.' ) . '</p>' . |
|
25 |
'<p>' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '</p>', |
|
26 |
) |
|
27 |
); |
|
0 | 28 |
|
29 |
get_current_screen()->set_help_sidebar( |
|
9 | 30 |
'<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
31 |
'<p>' . __( '<a href="https://codex.wordpress.org/Settings_Discussion_Screen">Documentation on Discussion Settings</a>' ) . '</p>' . |
|
32 |
'<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' |
|
0 | 33 |
); |
34 |
||
35 |
include( ABSPATH . 'wp-admin/admin-header.php' ); |
|
36 |
?> |
|
37 |
||
38 |
<div class="wrap"> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
39 |
<h1><?php echo esc_html( $title ); ?></h1> |
0 | 40 |
|
41 |
<form method="post" action="options.php"> |
|
9 | 42 |
<?php settings_fields( 'discussion' ); ?> |
0 | 43 |
|
9 | 44 |
<table class="form-table" role="presentation"> |
5 | 45 |
<tr> |
9 | 46 |
<th scope="row"><?php _e( 'Default article settings' ); ?></th> |
47 |
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default article settings' ); ?></span></legend> |
|
0 | 48 |
<label for="default_pingback_flag"> |
9 | 49 |
<input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked( '1', get_option( 'default_pingback_flag' ) ); ?> /> |
50 |
<?php _e( 'Attempt to notify any blogs linked to from the article' ); ?></label> |
|
0 | 51 |
<br /> |
52 |
<label for="default_ping_status"> |
|
9 | 53 |
<input name="default_ping_status" type="checkbox" id="default_ping_status" value="open" <?php checked( 'open', get_option( 'default_ping_status' ) ); ?> /> |
54 |
<?php _e( 'Allow link notifications from other blogs (pingbacks and trackbacks) on new articles' ); ?></label> |
|
0 | 55 |
<br /> |
56 |
<label for="default_comment_status"> |
|
9 | 57 |
<input name="default_comment_status" type="checkbox" id="default_comment_status" value="open" <?php checked( 'open', get_option( 'default_comment_status' ) ); ?> /> |
58 |
<?php _e( 'Allow people to post comments on new articles' ); ?></label> |
|
0 | 59 |
<br /> |
5 | 60 |
<p class="description"><?php echo '(' . __( 'These settings may be overridden for individual articles.' ) . ')'; ?></p> |
0 | 61 |
</fieldset></td> |
62 |
</tr> |
|
5 | 63 |
<tr> |
9 | 64 |
<th scope="row"><?php _e( 'Other comment settings' ); ?></th> |
65 |
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Other comment settings' ); ?></span></legend> |
|
66 |
<label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked( '1', get_option( 'require_name_email' ) ); ?> /> <?php _e( 'Comment author must fill out name and email' ); ?></label> |
|
0 | 67 |
<br /> |
68 |
<label for="comment_registration"> |
|
9 | 69 |
<input name="comment_registration" type="checkbox" id="comment_registration" value="1" <?php checked( '1', get_option( 'comment_registration' ) ); ?> /> |
70 |
<?php _e( 'Users must be registered and logged in to comment' ); ?> |
|
71 |
<?php |
|
72 |
if ( ! get_option( 'users_can_register' ) && is_multisite() ) { |
|
73 |
echo ' ' . __( '(Signup has been disabled. Only members of this site can comment.)' );} |
|
74 |
?> |
|
0 | 75 |
</label> |
76 |
<br /> |
|
77 |
||
78 |
<label for="close_comments_for_old_posts"> |
|
9 | 79 |
<input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked( '1', get_option( 'close_comments_for_old_posts' ) ); ?> /> |
80 |
<?php |
|
81 |
printf( |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
82 |
__( 'Automatically close comments on articles older than %s days' ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
83 |
'</label> <label for="close_comments_days_old"><input name="close_comments_days_old" type="number" min="0" step="1" id="close_comments_days_old" value="' . esc_attr( get_option( 'close_comments_days_old' ) ) . '" class="small-text" />' |
9 | 84 |
); |
85 |
?> |
|
0 | 86 |
</label> |
87 |
<br /> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
88 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
89 |
<label for="show_comments_cookies_opt_in"> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
90 |
<input name="show_comments_cookies_opt_in" type="checkbox" id="show_comments_cookies_opt_in" value="1" <?php checked( '1', get_option( 'show_comments_cookies_opt_in' ) ); ?> /> |
9 | 91 |
<?php _e( 'Show comments cookies opt-in checkbox, allowing comment author cookies to be set.' ); ?> |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
92 |
</label> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
93 |
<br /> |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
94 |
|
0 | 95 |
<label for="thread_comments"> |
9 | 96 |
<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked( '1', get_option( 'thread_comments' ) ); ?> /> |
0 | 97 |
<?php |
98 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
99 |
* Filters the maximum depth of threaded/nested comments. |
0 | 100 |
* |
9 | 101 |
* @since 2.7.0 |
0 | 102 |
* |
5 | 103 |
* @param int $max_depth The maximum depth of threaded comments. Default 10. |
0 | 104 |
*/ |
105 |
$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); |
|
106 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
107 |
$thread_comments_depth = '</label> <label for="thread_comments_depth"><select name="thread_comments_depth" id="thread_comments_depth">'; |
0 | 108 |
for ( $i = 2; $i <= $maxdeep; $i++ ) { |
9 | 109 |
$thread_comments_depth .= "<option value='" . esc_attr( $i ) . "'"; |
110 |
if ( get_option( 'thread_comments_depth' ) == $i ) { |
|
111 |
$thread_comments_depth .= " selected='selected'"; |
|
112 |
} |
|
0 | 113 |
$thread_comments_depth .= ">$i</option>"; |
114 |
} |
|
115 |
$thread_comments_depth .= '</select>'; |
|
116 |
||
9 | 117 |
printf( __( 'Enable threaded (nested) comments %s levels deep' ), $thread_comments_depth ); |
0 | 118 |
|
9 | 119 |
?> |
120 |
</label> |
|
0 | 121 |
<br /> |
122 |
<label for="page_comments"> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
123 |
<input name="page_comments" type="checkbox" id="page_comments" value="1" <?php checked( '1', get_option( 'page_comments' ) ); ?> /> |
0 | 124 |
<?php |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
125 |
$default_comments_page = '</label> <label for="default_comments_page"><select name="default_comments_page" id="default_comments_page"><option value="newest"'; |
9 | 126 |
if ( 'newest' == get_option( 'default_comments_page' ) ) { |
127 |
$default_comments_page .= ' selected="selected"'; |
|
128 |
} |
|
129 |
$default_comments_page .= '>' . __( 'last' ) . '</option><option value="oldest"'; |
|
130 |
if ( 'oldest' == get_option( 'default_comments_page' ) ) { |
|
131 |
$default_comments_page .= ' selected="selected"'; |
|
132 |
} |
|
133 |
$default_comments_page .= '>' . __( 'first' ) . '</option></select>'; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
134 |
printf( |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
135 |
/* translators: 1: Form field control for number of top level comments per page, 2: Form field control for the 'first' or 'last' page */ |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
136 |
__( 'Break comments into pages with %1$s top level comments per page and the %2$s page displayed by default' ), |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
137 |
'</label> <label for="comments_per_page"><input name="comments_per_page" type="number" step="1" min="0" id="comments_per_page" value="' . esc_attr( get_option( 'comments_per_page' ) ) . '" class="small-text" />', |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
138 |
$default_comments_page |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
139 |
); |
9 | 140 |
?> |
141 |
</label> |
|
0 | 142 |
<br /> |
9 | 143 |
<label for="comment_order"> |
144 |
<?php |
|
0 | 145 |
|
146 |
$comment_order = '<select name="comment_order" id="comment_order"><option value="asc"'; |
|
9 | 147 |
if ( 'asc' == get_option( 'comment_order' ) ) { |
148 |
$comment_order .= ' selected="selected"'; |
|
149 |
} |
|
150 |
$comment_order .= '>' . __( 'older' ) . '</option><option value="desc"'; |
|
151 |
if ( 'desc' == get_option( 'comment_order' ) ) { |
|
152 |
$comment_order .= ' selected="selected"'; |
|
153 |
} |
|
154 |
$comment_order .= '>' . __( 'newer' ) . '</option></select>'; |
|
0 | 155 |
|
9 | 156 |
printf( __( 'Comments should be displayed with the %s comments at the top of each page' ), $comment_order ); |
0 | 157 |
|
9 | 158 |
?> |
159 |
</label> |
|
0 | 160 |
</fieldset></td> |
161 |
</tr> |
|
5 | 162 |
<tr> |
9 | 163 |
<th scope="row"><?php _e( 'Email me whenever' ); ?></th> |
164 |
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Email me whenever' ); ?></span></legend> |
|
0 | 165 |
<label for="comments_notify"> |
9 | 166 |
<input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked( '1', get_option( 'comments_notify' ) ); ?> /> |
167 |
<?php _e( 'Anyone posts a comment' ); ?> </label> |
|
0 | 168 |
<br /> |
169 |
<label for="moderation_notify"> |
|
9 | 170 |
<input name="moderation_notify" type="checkbox" id="moderation_notify" value="1" <?php checked( '1', get_option( 'moderation_notify' ) ); ?> /> |
171 |
<?php _e( 'A comment is held for moderation' ); ?> </label> |
|
0 | 172 |
</fieldset></td> |
173 |
</tr> |
|
5 | 174 |
<tr> |
9 | 175 |
<th scope="row"><?php _e( 'Before a comment appears' ); ?></th> |
176 |
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Before a comment appears' ); ?></span></legend> |
|
0 | 177 |
<label for="comment_moderation"> |
9 | 178 |
<input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked( '1', get_option( 'comment_moderation' ) ); ?> /> |
179 |
<?php _e( 'Comment must be manually approved' ); ?> </label> |
|
0 | 180 |
<br /> |
9 | 181 |
<label for="comment_whitelist"><input type="checkbox" name="comment_whitelist" id="comment_whitelist" value="1" <?php checked( '1', get_option( 'comment_whitelist' ) ); ?> /> <?php _e( 'Comment author must have a previously approved comment' ); ?></label> |
0 | 182 |
</fieldset></td> |
183 |
</tr> |
|
5 | 184 |
<tr> |
9 | 185 |
<th scope="row"><?php _e( 'Comment Moderation' ); ?></th> |
186 |
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Comment Moderation' ); ?></span></legend> |
|
187 |
<p><label for="comment_max_links"><?php printf( __( 'Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)' ), '<input name="comment_max_links" type="number" step="1" min="0" id="comment_max_links" value="' . esc_attr( get_option( 'comment_max_links' ) ) . '" class="small-text" />' ); ?></label></p> |
|
0 | 188 |
|
9 | 189 |
<p><label for="moderation_keys"><?php _e( 'When a comment contains any of these words in its content, name, URL, email, or IP address, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.' ); ?></label></p> |
0 | 190 |
<p> |
191 |
<textarea name="moderation_keys" rows="10" cols="50" id="moderation_keys" class="large-text code"><?php echo esc_textarea( get_option( 'moderation_keys' ) ); ?></textarea> |
|
192 |
</p> |
|
193 |
</fieldset></td> |
|
194 |
</tr> |
|
5 | 195 |
<tr> |
9 | 196 |
<th scope="row"><?php _e( 'Comment Blacklist' ); ?></th> |
197 |
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Comment Blacklist' ); ?></span></legend> |
|
198 |
<p><label for="blacklist_keys"><?php _e( 'When a comment contains any of these words in its content, name, URL, email, or IP address, it will be put in the trash. One word or IP address per line. It will match inside words, so “press” will match “WordPress”.' ); ?></label></p> |
|
0 | 199 |
<p> |
200 |
<textarea name="blacklist_keys" rows="10" cols="50" id="blacklist_keys" class="large-text code"><?php echo esc_textarea( get_option( 'blacklist_keys' ) ); ?></textarea> |
|
201 |
</p> |
|
202 |
</fieldset></td> |
|
203 |
</tr> |
|
9 | 204 |
<?php do_settings_fields( 'discussion', 'default' ); ?> |
0 | 205 |
</table> |
206 |
||
9 | 207 |
<h2 class="title"><?php _e( 'Avatars' ); ?></h2> |
0 | 208 |
|
9 | 209 |
<p><?php _e( 'An avatar is an image that follows you from weblog to weblog appearing beside your name when you comment on avatar enabled sites. Here you can enable the display of avatars for people who comment on your site.' ); ?></p> |
0 | 210 |
|
5 | 211 |
<?php |
212 |
// the above would be a good place to link to codex documentation on the gravatar functions, for putting it in themes. anything like that? |
|
213 |
||
9 | 214 |
$show_avatars = get_option( 'show_avatars' ); |
215 |
$show_avatars_class = ''; |
|
216 |
if ( ! $show_avatars ) { |
|
217 |
$show_avatars_class = ' hide-if-js'; |
|
218 |
} |
|
5 | 219 |
?> |
0 | 220 |
|
9 | 221 |
<table class="form-table" role="presentation"> |
5 | 222 |
<tr> |
9 | 223 |
<th scope="row"><?php _e( 'Avatar Display' ); ?></th> |
224 |
<td> |
|
0 | 225 |
<label for="show_avatars"> |
5 | 226 |
<input type="checkbox" id="show_avatars" name="show_avatars" value="1" <?php checked( $show_avatars, 1 ); ?> /> |
0 | 227 |
<?php _e( 'Show Avatars' ); ?> |
228 |
</label> |
|
9 | 229 |
</td> |
0 | 230 |
</tr> |
9 | 231 |
<tr class="avatar-settings<?php echo $show_avatars_class; ?>"> |
232 |
<th scope="row"><?php _e( 'Maximum Rating' ); ?></th> |
|
233 |
<td><fieldset><legend class="screen-reader-text"><span><?php _e( 'Maximum Rating' ); ?></span></legend> |
|
0 | 234 |
|
235 |
<?php |
|
236 |
$ratings = array( |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
237 |
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ |
9 | 238 |
'G' => __( 'G — Suitable for all audiences' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
239 |
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ |
9 | 240 |
'PG' => __( 'PG — Possibly offensive, usually for audiences 13 and above' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
241 |
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ |
9 | 242 |
'R' => __( 'R — Intended for adult audiences above 17' ), |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
243 |
/* translators: Content suitability rating: https://en.wikipedia.org/wiki/Motion_Picture_Association_of_America_film_rating_system */ |
9 | 244 |
'X' => __( 'X — Even more mature than above' ), |
0 | 245 |
); |
9 | 246 |
foreach ( $ratings as $key => $rating ) : |
247 |
$selected = ( get_option( 'avatar_rating' ) == $key ) ? 'checked="checked"' : ''; |
|
248 |
echo "\n\t<label><input type='radio' name='avatar_rating' value='" . esc_attr( $key ) . "' $selected/> $rating</label><br />"; |
|
0 | 249 |
endforeach; |
250 |
?> |
|
251 |
||
252 |
</fieldset></td> |
|
253 |
</tr> |
|
9 | 254 |
<tr class="avatar-settings<?php echo $show_avatars_class; ?>"> |
255 |
<th scope="row"><?php _e( 'Default Avatar' ); ?></th> |
|
256 |
<td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e( 'Default Avatar' ); ?></span></legend> |
|
0 | 257 |
|
9 | 258 |
<p> |
259 |
<?php _e( 'For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their email address.' ); ?><br /> |
|
260 |
</p> |
|
0 | 261 |
|
262 |
<?php |
|
263 |
$avatar_defaults = array( |
|
9 | 264 |
'mystery' => __( 'Mystery Person' ), |
265 |
'blank' => __( 'Blank' ), |
|
266 |
'gravatar_default' => __( 'Gravatar Logo' ), |
|
267 |
'identicon' => __( 'Identicon (Generated)' ), |
|
268 |
'wavatar' => __( 'Wavatar (Generated)' ), |
|
269 |
'monsterid' => __( 'MonsterID (Generated)' ), |
|
270 |
'retro' => __( 'Retro (Generated)' ), |
|
0 | 271 |
); |
272 |
/** |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
273 |
* Filters the default avatars. |
0 | 274 |
* |
275 |
* Avatars are stored in key/value pairs, where the key is option value, |
|
276 |
* and the name is the displayed avatar name. |
|
277 |
* |
|
278 |
* @since 2.6.0 |
|
279 |
* |
|
9 | 280 |
* @param string[] $avatar_defaults Associative array of default avatars. |
0 | 281 |
*/ |
282 |
$avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults ); |
|
9 | 283 |
$default = get_option( 'avatar_default', 'mystery' ); |
284 |
$avatar_list = ''; |
|
5 | 285 |
|
286 |
// Force avatars on to display these choices |
|
287 |
add_filter( 'pre_option_show_avatars', '__return_true', 100 ); |
|
288 |
||
0 | 289 |
foreach ( $avatar_defaults as $default_key => $default_name ) { |
9 | 290 |
$selected = ( $default == $default_key ) ? 'checked="checked" ' : ''; |
291 |
$avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value='" . esc_attr( $default_key ) . "' {$selected}/> "; |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
292 |
$avatar_list .= get_avatar( $user_email, 32, $default_key, '', array( 'force_default' => true ) ); |
0 | 293 |
$avatar_list .= ' ' . $default_name . '</label>'; |
294 |
$avatar_list .= '<br />'; |
|
295 |
} |
|
5 | 296 |
|
297 |
remove_filter( 'pre_option_show_avatars', '__return_true', 100 ); |
|
298 |
||
0 | 299 |
/** |
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
300 |
* Filters the HTML output of the default avatar list. |
0 | 301 |
* |
302 |
* @since 2.6.0 |
|
303 |
* |
|
304 |
* @param string $avatar_list HTML markup of the avatar list. |
|
305 |
*/ |
|
306 |
echo apply_filters( 'default_avatar_select', $avatar_list ); |
|
307 |
?> |
|
308 |
||
309 |
</fieldset></td> |
|
310 |
</tr> |
|
9 | 311 |
<?php do_settings_fields( 'discussion', 'avatars' ); ?> |
0 | 312 |
</table> |
313 |
||
9 | 314 |
<?php do_settings_sections( 'discussion' ); ?> |
0 | 315 |
|
316 |
<?php submit_button(); ?> |
|
317 |
</form> |
|
318 |
</div> |
|
319 |
||
320 |
<?php include( ABSPATH . 'wp-admin/admin-footer.php' ); ?> |