WordPress.org

Make WordPress Core

Changeset 6189


Ignore:
Timestamp:
10/05/2007 04:27:48 PM (11 years ago)
Author:
ryan
Message:

Add some spacing. fixes #5137 for trunk

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/upload.php

    r5965 r6189  
    4040    if ( $href )
    4141        $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";
    4345    $r .= "\n\t\t<div class='upload-file-data'>\n\t\t\t<p>\n";
    4446    $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  
    10581058            $q[$item] = array_unique($q[$item]);
    10591059            $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]);
    10621062
    10631063            $post_ids = $wpdb->get_col($tsql);
Note: See TracChangeset for help on using the changeset viewer.