diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php index 5efed2ad17..638f006e49 100644 --- a/wp-includes/bookmark.php +++ b/wp-includes/bookmark.php @@ -19,7 +19,7 @@ function get_bookmark($bookmark_id, $output = OBJECT) { // Deprecate function get_link($bookmark_id, $output = OBJECT) { - return get_bookmark($bookmark_id, $output); + return get_bookmark($bookmark_id, $output); } function get_bookmarks($args = '') { @@ -55,7 +55,7 @@ function get_bookmarks($args = '') { } } } - if (!empty($inclusions)) + if (!empty($inclusions)) $inclusions .= ')'; $exclusions = ''; @@ -70,7 +70,7 @@ function get_bookmarks($args = '') { } } } - if (!empty($exclusions)) + if (!empty($exclusions)) $exclusions .= ')'; if ( ! empty($category_name) ) { @@ -92,7 +92,7 @@ function get_bookmarks($args = '') { } } if (!empty($category_query)) { - $category_query .= ')'; + $category_query .= ')'; $join = " LEFT JOIN $wpdb->link2cat ON ($wpdb->links.link_id = $wpdb->link2cat.link_id) "; } diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index f4799583ed..c210ade366 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -480,7 +480,7 @@ function get_calendar($initial = true) { FROM $wpdb->posts WHERE post_date > '$thisyear-$thismonth-01' AND MONTH( post_date ) != MONTH( '$thisyear-$thismonth-01' ) - AND post_type = 'post' AND post_status = 'publish' + AND post_type = 'post' AND post_status = 'publish' ORDER BY post_date ASC LIMIT 1"); diff --git a/wp-includes/post.php b/wp-includes/post.php index 2a6e2974f8..3e562d595c 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -1062,7 +1062,7 @@ function &get_pages($args = '') { $inclusions = ''; if ( !empty($include) ) { $child_of = 0; //ignore child_of, exclude, meta_key, and meta_value params if using include - $exclude = ''; + $exclude = ''; $meta_key = ''; $meta_value = ''; $incpages = preg_split('/[\s,]+/',$include); @@ -1075,8 +1075,8 @@ function &get_pages($args = '') { } } } - if (!empty($inclusions)) - $inclusions .= ')'; + if (!empty($inclusions)) + $inclusions .= ')'; $exclusions = ''; if ( !empty($exclude) ) {