Make WordPress Core


Ignore:
Timestamp:
01/04/2013 10:13:51 AM (12 years ago)
Author:
westi
Message:

Tighten our braces. Fixes #23118 props evansolomon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r23212 r23265  
    862862 * @return array List of post statuses.
    863863 */
    864 function get_post_statuses( ) {
     864function get_post_statuses() {
    865865    $status = array(
    866866        'draft'         => __('Draft'),
     
    883883 * @return array List of page statuses.
    884884 */
    885 function get_page_statuses( ) {
     885function get_page_statuses() {
    886886    $status = array(
    887887        'draft'         => __('Draft'),
     
    21742174    $count = $wpdb->get_results( "SELECT post_mime_type, COUNT( * ) AS num_posts FROM $wpdb->posts WHERE post_type = 'attachment' AND post_status != 'trash' $and GROUP BY post_mime_type", ARRAY_A );
    21752175
    2176     $stats = array( );
     2176    $stats = array();
    21772177    foreach( (array) $count as $row ) {
    21782178        $stats[$row['post_mime_type']] = $row['num_posts'];
Note: See TracChangeset for help on using the changeset viewer.