Changeset 6189
- Timestamp:
- 10/05/2007 04:27:48 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upload.php
r5965 r6189 40 40 if ( $href ) 41 41 $r .= "</a>\n"; 42 $r .= "\t\t\t\t<span class='upload-file-size'>".size_format(filesize($filesystem_path))."</span>\n"; 42 $size = @filesize($filesystem_path); 43 if ( !empty($size) ) 44 $r .= "\t\t\t\t<span class='upload-file-size'>".size_format($size)."</span>\n"; 43 45 $r .= "\n\t\t<div class='upload-file-data'>\n\t\t\t<p>\n"; 44 46 $r .= "\t\t\t\t<input type='hidden' name='attachment-url-$id' id='attachment-url-$id' value='$src' />\n"; -
trunk/wp-includes/query.php
r6186 r6189 1058 1058 $q[$item] = array_unique($q[$item]); 1059 1059 $tsql = "SELECT p.ID FROM $wpdb->posts p LEFT JOIN $wpdb->term_relationships tr ON (p.ID = tr.object_id) LEFT JOIN $wpdb->term_taxonomy tt ON (tr.term_taxonomy_id = tt.term_taxonomy_id) LEFT JOIN $wpdb->terms t ON (tt.term_id = t.term_id)"; 1060 $tsql .= " WHERE tt.taxonomy = '$taxonomy' AND t.$taxonomy_field IN ('" . implode("', '", $q[$item]) . "')";1061 $tsql .= " GROUP BY p.ID HAVING count(p.ID) = " . count($q[$item]);1060 $tsql .= " WHERE tt.taxonomy = '$taxonomy' AND t.$taxonomy_field IN ('" . implode("', '", $q[$item]) . "')"; 1061 $tsql .= " GROUP BY p.ID HAVING count(p.ID) = " . count($q[$item]); 1062 1062 1063 1063 $post_ids = $wpdb->get_col($tsql);
Note: See TracChangeset
for help on using the changeset viewer.