Changeset 11110 for trunk/wp-admin/options-discussion.php
- Timestamp:
- 04/28/2009 06:37:51 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-discussion.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-discussion.php
r11109 r11110 65 65 $thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; 66 66 for ( $i = 1; $i <= $maxdeep; $i++ ) { 67 $thread_comments_depth .= "<option value=' $i'";67 $thread_comments_depth .= "<option value='" . attr($i) . "'"; 68 68 if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; 69 69 $thread_comments_depth .= ">$i</option>"; … … 126 126 <th scope="row"><?php _e('Comment Moderation') ?></th> 127 127 <td><fieldset><legend class="hidden"><?php _e('Comment Moderation') ?></legend> 128 <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="text" id="comment_max_links" value="' . get_option('comment_max_links'). '" class="small-text" />' ) ?></label></p>128 <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="text" id="comment_max_links" value="' . attr(get_option('comment_max_links')) . '" class="small-text" />' ) ?></label></p> 129 129 130 130 <p><label for="moderation_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so "press" will match "WordPress".') ?></label></p> … … 160 160 foreach ( $yesorno as $key => $value) { 161 161 $selected = (get_option('show_avatars') == $key) ? 'checked="checked"' : ''; 162 echo "\n\t<label><input type='radio' name='show_avatars' value=' $key' $selected/> $value</label><br />";162 echo "\n\t<label><input type='radio' name='show_avatars' value='" . attr($key) . "' $selected/> $value</label><br />"; 163 163 } 164 164 ?> … … 173 173 foreach ($ratings as $key => $rating) : 174 174 $selected = (get_option('avatar_rating') == $key) ? 'checked="checked"' : ''; 175 echo "\n\t<label><input type='radio' name='avatar_rating' value=' $key' $selected/> $rating</label><br />";175 echo "\n\t<label><input type='radio' name='avatar_rating' value='" . attr($key) . "' $selected/> $rating</label><br />"; 176 176 endforeach; 177 177 ?> … … 202 202 foreach ( $avatar_defaults as $default_key => $default_name ) { 203 203 $selected = ($default == $default_key) ? 'checked="checked" ' : ''; 204 $avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value=' {$default_key}' {$selected}/> ";204 $avatar_list .= "\n\t<label><input type='radio' name='avatar_default' id='avatar_{$default_key}' value='" . attr($default_key) . "' {$selected}/> "; 205 205 206 206 $avatar = get_avatar( $user_email, $size, $default_key ); … … 221 221 222 222 <p class="submit"> 223 <input type="submit" name="Submit" class="button-primary" value="<?php _e ('Save Changes') ?>" />223 <input type="submit" name="Submit" class="button-primary" value="<?php _ea('Save Changes') ?>" /> 224 224 </p> 225 225 </form>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)