WordPress.org

Plugin Directory

Changeset 229824


Ignore:
Timestamp:
04/16/10 09:15:33 (8 years ago)
Author:
Utkarsh
Message:

Fixed bug in caused in 1.0.2 update.

Location:
feature-comments/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • feature-comments/trunk/feature-comments.php

    r228027 r229824  
    99 
    1010== Release Notes == 
     112010-04-16 - v1.0.3 - Fixed a bug introduced in the last update. 
    11122010-04-12 - v1.0.2 - Refactored source code 
    12132010-01-13 - v1.0.1 - Added missing screenshot files 
     
    5354    static function save_meta_box_postdata($comment_id) 
    5455    { 
     56        global $comment; 
    5557        if(!wp_verify_nonce( $_POST['nonce'], plugin_basename(__FILE__))) 
    5658            return; 
     
    6870        echo '<input type="hidden" name="nonce" id="nonce" value="' .  
    6971        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' : '') . ' />'; 
    7173        echo ' <label for="featured">' . __("Featured") . '</label>'; 
    7274        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' : '') . ' />'; 
    7476        echo ' <label for="buried">' . __("Buried") . '</label> '; 
    7577        echo '</p>'; 
     
    8688        $unbury_url = esc_url( "comment.php?action=unburycomment&p=$post->ID&c=$comment->comment_ID&$approve_nonce" ); 
    8789 
    88         if(is_comment_featured($comment->comment_ID)) 
     90        if(FeatureComments::is_comment_featured($comment->comment_ID)) 
    8991            $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>'; 
    9092        else     
    9193            $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>'; 
    9294 
    93         if(is_comment_buried($comment->comment_ID)) 
     95        if(FeatureComments::is_comment_buried($comment->comment_ID)) 
    9496            $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>'; 
    9597        else     
     
    148150        $comment_id = $comment->comment_ID; 
    149151         
    150         if(is_comment_featured($comment_id)) 
     152        if(FeatureComments::is_comment_featured($comment_id)) 
    151153            $classes [] = 'featured'; 
    152154 
    153         if(is_comment_buried($comment_id)) 
     155        if(FeatureComments::is_comment_buried($comment_id)) 
    154156            $classes [] = 'buried'; 
    155157         
  • feature-comments/trunk/readme.txt

    r193471 r229824  
    44Tags: comments 
    55Requires at least: 2.9 
    6 Tested up to: 2.9 
     6Tested up to: 3.0-beta 
    77Stable tag: trunk 
    88 
     
    3232== Changelog == 
    3333 
     34= 1.0.3 = 
     35* Fixed a bug introduced in the last update 
     36 
     37= 1.0.2 = 
     38* Refactored source code 
     39 
    3440= 1.0.1 = 
    3541* Added missing screenshot files 
    3642 
    3743= 1.0 = 
    38 * First version. 
     44* First version 
Note: See TracChangeset for help on using the changeset viewer.