Changeset 23265 for trunk/wp-includes/post.php
- Timestamp:
- 01/04/2013 10:13:51 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r23212 r23265 862 862 * @return array List of post statuses. 863 863 */ 864 function get_post_statuses( 864 function get_post_statuses() { 865 865 $status = array( 866 866 'draft' => __('Draft'), … … 883 883 * @return array List of page statuses. 884 884 */ 885 function get_page_statuses( 885 function get_page_statuses() { 886 886 $status = array( 887 887 'draft' => __('Draft'), … … 2174 2174 $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 ); 2175 2175 2176 $stats = array( 2176 $stats = array(); 2177 2177 foreach( (array) $count as $row ) { 2178 2178 $stats[$row['post_mime_type']] = $row['num_posts'];
Note: See TracChangeset
for help on using the changeset viewer.