Tighten our braces. Fixes #23118 props evansolomon.

git-svn-id: https://develop.svn.wordpress.org/trunk@23265 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood
2013-01-04 10:13:51 +00:00
parent 672bd9a43d
commit d927271553
10 changed files with 32 additions and 32 deletions
+3 -3
View File
@@ -861,7 +861,7 @@ function get_post_status($ID = '') {
*
* @return array List of post statuses.
*/
function get_post_statuses( ) {
function get_post_statuses() {
$status = array(
'draft' => __('Draft'),
'pending' => __('Pending Review'),
@@ -882,7 +882,7 @@ function get_post_statuses( ) {
*
* @return array List of page statuses.
*/
function get_page_statuses( ) {
function get_page_statuses() {
$status = array(
'draft' => __('Draft'),
'private' => __('Private'),
@@ -2173,7 +2173,7 @@ function wp_count_attachments( $mime_type = '' ) {
$and = wp_post_mime_type_where( $mime_type );
$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 );
$stats = array( );
$stats = array();
foreach( (array) $count as $row ) {
$stats[$row['post_mime_type']] = $row['num_posts'];
}