Changeset 337796
- Timestamp:
- 01/27/2011 12:24:30 PM (15 years ago)
- File:
-
- 1 edited
-
customcomment/tags/2.1.2/CustomComment.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
customcomment/tags/2.1.2/CustomComment.php
r337572 r337796 68 68 //Remove the requested field values from all comments meta 69 69 foreach( $all_comments as $comment_id) 70 delete_ post_meta($comment_id, "CuCo_".$field_name);70 delete_comment_meta($comment_id, "CuCo_".$field_name); 71 71 //Remove the request field 72 72 unset($custom_fields[$key]); … … 127 127 $custom_fields = array_filter(explode(",", get_option('CComment_fields'))); 128 128 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)); 130 130 if($custom_field_arr[2] == 1) 131 131 $required = '<span class="required"> *</span>'; … … 133 133 $required = ''; 134 134 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>'; 136 136 } 137 137 } … … 186 186 </tr>'; 187 187 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)); 189 189 $CComment_field_desc = $CComment_field_arr[0]; 190 190 $CComment_field_active = $CComment_field_arr[1]; … … 215 215 $CComment_fields = array_filter(explode(",", get_option('CComment_fields'))); 216 216 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)); 218 218 $CComment_field_desc = $CComment_field_arr[0]; 219 219 $CComment_field_active = $CComment_field_arr[1];
Note: See TracChangeset
for help on using the changeset viewer.