Changeset 673438
- Timestamp:
- 02/26/2013 08:58:56 AM (13 years ago)
- Location:
- per-post-comment-settings/trunk
- Files:
-
- 2 edited
-
per-post-comment-settings.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
per-post-comment-settings/trunk/per-post-comment-settings.php
r173431 r673438 3 3 Plugin Name: Per Post Comment Settings 4 4 Plugin URI: http://082net.com/tag/per-post-comment-settings/?orderby=modified 5 Version: 0.12 5 Version: 0.121 6 6 Description: You can change comment settings post by post on WP 2.7 or greater. 7 7 Author: Cheon, Youngmin … … 161 161 <p><label for="close_comments_for_old_posts"> 162 162 <input name="close_comments_for_old_posts" type="checkbox" id="close_comments_for_old_posts" value="1" <?php checked('1', $conf['close_comments_for_old_posts']); ?> /> 163 <?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="text" id="close_comments_days_old" value="' . attribute_escape($conf['close_comments_days_old']) . '" class="small-text" />') ?>163 <?php printf( __('Automatically close comments on articles older than %s days'), '</label><input name="close_comments_days_old" type="text" id="close_comments_days_old" value="' . esc_attr($conf['close_comments_days_old']) . '" class="small-text" />') ?> 164 164 </p> 165 165 … … 192 192 $default_comments_page .= '>' . __('first') . '</option></select>'; 193 193 194 printf( __('Break comments into pages with %1$s comments per page and the %2$s page displayed by default'), '</label><label for="comments_per_page"><input name="comments_per_page" type="text" id="comments_per_page" value="' . attribute_escape($conf['comments_per_page']) . '" class="small-text" />', $default_comments_page );194 printf( __('Break comments into pages with %1$s comments per page and the %2$s page displayed by default'), '</label><label for="comments_per_page"><input name="comments_per_page" type="text" id="comments_per_page" value="' . esc_attr($conf['comments_per_page']) . '" class="small-text" />', $default_comments_page ); 195 195 196 196 ?></label> … … 217 217 return false; 218 218 219 $post_id = (int) $post->ID;220 if (!$post_id )219 $post_id = isset($post) ? (int) $post->ID : 0; 220 if (!$post_id && isset($id)) 221 221 $post_id = (int) $id; 222 if ( !$post_id )222 if ( !$post_id && isset($_POST['comment_post_ID']) ) 223 223 $post_id = (int) $_POST['comment_post_ID']; 224 224 if (!$post_id) -
per-post-comment-settings/trunk/readme.txt
r121155 r673438 5 5 Requires at least: 2.7 6 6 Tested up to: 2.7.1 7 Stable tag: 0.12 7 Stable tag: 0.121 8 8 9 9 You can change comment settings post by post on WP 2.7 or greater.
Note: See TracChangeset
for help on using the changeset viewer.