Changeset 229824
- Timestamp:
- 04/16/2010 09:15:33 AM (16 years ago)
- Location:
- feature-comments/trunk
- Files:
-
- 2 edited
-
feature-comments.php (modified) (5 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
feature-comments/trunk/feature-comments.php
r228027 r229824 9 9 10 10 == Release Notes == 11 2010-04-16 - v1.0.3 - Fixed a bug introduced in the last update. 11 12 2010-04-12 - v1.0.2 - Refactored source code 12 13 2010-01-13 - v1.0.1 - Added missing screenshot files … … 53 54 static function save_meta_box_postdata($comment_id) 54 55 { 56 global $comment; 55 57 if(!wp_verify_nonce( $_POST['nonce'], plugin_basename(__FILE__))) 56 58 return; … … 68 70 echo '<input type="hidden" name="nonce" id="nonce" value="' . 69 71 wp_create_nonce( plugin_basename(__FILE__) ) . '" />'; 70 echo '<input id = "featured" type="checkbox" name="featured" value="true" ' . ( is_comment_featured($comment_id)? 'checked' : '') . ' />';72 echo '<input id = "featured" type="checkbox" name="featured" value="true" ' . (FeatureComments::is_comment_featured($comment_id)? 'checked' : '') . ' />'; 71 73 echo ' <label for="featured">' . __("Featured") . '</label>'; 72 74 echo '<br/>'; 73 echo '<input id = "buried" type="checkbox" name="buried" value="true" ' . ( is_comment_buried($comment_id)? 'checked' : '') . ' />';75 echo '<input id = "buried" type="checkbox" name="buried" value="true" ' . (FeatureComments::is_comment_buried($comment_id)? 'checked' : '') . ' />'; 74 76 echo ' <label for="buried">' . __("Buried") . '</label> '; 75 77 echo '</p>'; … … 86 88 $unbury_url = esc_url( "comment.php?action=unburycomment&p=$post->ID&c=$comment->comment_ID&$approve_nonce" ); 87 89 88 if( is_comment_featured($comment->comment_ID))90 if(FeatureComments::is_comment_featured($comment->comment_ID)) 89 91 $actions['unfeature'] = "<a href='$unfeature_url' class='dim:the-comment-list:comment-$comment->comment_ID:unfeatured:e7e7d3:e7e7d3:new=unfeatured vim-u' title='" . esc_attr__( 'Unfeature this comment' ) . "'>" . __( 'Unfeature' ) . '</a>'; 90 92 else 91 93 $actions['feature'] = "<a href='$feature_url' class='dim:the-comment-list:comment-$comment->comment_ID:unfeatured:e7e7d3:e7e7d3:new=featured vim-a' title='" . esc_attr__( 'Feature this comment' ) . "'>" . __( 'Feature' ) . '</a>'; 92 94 93 if( is_comment_buried($comment->comment_ID))95 if(FeatureComments::is_comment_buried($comment->comment_ID)) 94 96 $actions['unbury'] = "<a href='$unbury_url' class='dim:the-comment-list:comment-$comment->comment_ID:unburied:e7e7d3:e7e7d3:new=unburied vim-u' title='" . esc_attr__( 'Unbury this comment' ) . "'>" . __( 'Unbury' ) . '</a>'; 95 97 else … … 148 150 $comment_id = $comment->comment_ID; 149 151 150 if( is_comment_featured($comment_id))152 if(FeatureComments::is_comment_featured($comment_id)) 151 153 $classes [] = 'featured'; 152 154 153 if( is_comment_buried($comment_id))155 if(FeatureComments::is_comment_buried($comment_id)) 154 156 $classes [] = 'buried'; 155 157 -
feature-comments/trunk/readme.txt
r193471 r229824 4 4 Tags: comments 5 5 Requires at least: 2.9 6 Tested up to: 2.96 Tested up to: 3.0-beta 7 7 Stable tag: trunk 8 8 … … 32 32 == Changelog == 33 33 34 = 1.0.3 = 35 * Fixed a bug introduced in the last update 36 37 = 1.0.2 = 38 * Refactored source code 39 34 40 = 1.0.1 = 35 41 * Added missing screenshot files 36 42 37 43 = 1.0 = 38 * First version .44 * First version
Note: See TracChangeset
for help on using the changeset viewer.