Changeset 11945 for trunk/wp-admin/includes/template.php
- Timestamp:
- 09/17/2009 08:51:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r11930 r11945 2194 2194 $action .= ' hide-if-no-js'; 2195 2195 elseif ($action == 'untrash' && $the_comment_status == 'trash') { 2196 $trash_meta = get_option('wp_trash_meta'); 2197 if (is_array($trash_meta) && isset($trash_meta['comments'][$comment_id]['status'])) { 2198 if ($trash_meta['comments'][$comment_id]['status'] == '1') 2199 $action .= ' approve'; 2200 else 2201 $action .= ' unapprove'; 2202 } 2196 if ('1' == get_comment_meta($comment_id, '_wp_trash_meta_status', true)) 2197 $action .= ' approve'; 2198 else 2199 $action .= ' unapprove'; 2203 2200 } 2204 2201
Note: See TracChangeset
for help on using the changeset viewer.