Plugin Directory

Changeset 337796


Ignore:
Timestamp:
01/27/2011 12:24:30 PM (15 years ago)
Author:
imaprogrammer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • customcomment/tags/2.1.2/CustomComment.php

    r337572 r337796  
    6868                //Remove the requested field values from all comments meta
    6969                foreach( $all_comments as $comment_id)
    70                     delete_post_meta($comment_id, "CuCo_".$field_name);
     70                    delete_comment_meta($comment_id, "CuCo_".$field_name);
    7171                //Remove the request field
    7272                unset($custom_fields[$key]);
     
    127127    $custom_fields = array_filter(explode(",", get_option('CComment_fields')));
    128128    foreach ($custom_fields as $custom_field) {
    129         $custom_field_arr = explode(";CuCo;", get_option("CuCo_".$custom_field));
     129        $custom_field_arr = explode(";CuCo;", get_option($custom_field));
    130130        if($custom_field_arr[2] == 1)
    131131            $required = '<span class="required"> *</span>';
     
    133133            $required = '';
    134134        if ($custom_field_arr[1] == 1)
    135             echo '<p><label for="'.$custom_field.'">'.$custom_field_arr[0].'</label>'.$required.'<input type="text" size="30" value="" name="'."CuCo_".$custom_field.'" id="'.$custom_field.'"></p>';
     135            echo '<p><label for="'.$custom_field.'">'.$custom_field_arr[0].'</label>'.$required.'<input type="text" size="30" value="" name="'.$custom_field.'" id="'.$custom_field.'"></p>';
    136136    }
    137137}
     
    186186                </tr>';
    187187        foreach ($CComment_fields as $CComment_field){
    188             $CComment_field_arr = explode(";CuCo;", get_option("CuCo_".$CComment_field));
     188            $CComment_field_arr = explode(";CuCo;", get_option($CComment_field));
    189189            $CComment_field_desc = $CComment_field_arr[0];
    190190            $CComment_field_active = $CComment_field_arr[1];
     
    215215                $CComment_fields = array_filter(explode(",", get_option('CComment_fields')));
    216216                foreach ($CComment_fields as $CComment_field) {
    217                     $CComment_field_arr = explode(";CuCo;", get_option("CuCo_".$CComment_field));
     217                    $CComment_field_arr = explode(";CuCo;", get_option($CComment_field));
    218218                    $CComment_field_desc = $CComment_field_arr[0];
    219219                    $CComment_field_active = $CComment_field_arr[1];
Note: See TracChangeset for help on using the changeset viewer.