mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-23 12:44:30 +00:00
Coding Standards: Improve formatting of some SQL queries for better readability.
This corrects the placement of double quotes around the query and makes sure the alignment is consistent. Props umeshmcakadi, mukesh27, krupalpanchal, dhrumilk, SergeyBiryukov. Fixes #58372. git-svn-id: https://develop.svn.wordpress.org/trunk@55857 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2298,16 +2298,16 @@ function get_calendar( $initial = true, $display = true ) {
|
||||
FROM $wpdb->posts
|
||||
WHERE post_date < '$thisyear-$thismonth-01'
|
||||
AND post_type = 'post' AND post_status = 'publish'
|
||||
ORDER BY post_date DESC
|
||||
LIMIT 1"
|
||||
ORDER BY post_date DESC
|
||||
LIMIT 1"
|
||||
);
|
||||
$next = $wpdb->get_row(
|
||||
"SELECT MONTH(post_date) AS month, YEAR(post_date) AS year
|
||||
FROM $wpdb->posts
|
||||
WHERE post_date > '$thisyear-$thismonth-{$last_day} 23:59:59'
|
||||
AND post_type = 'post' AND post_status = 'publish'
|
||||
ORDER BY post_date ASC
|
||||
LIMIT 1"
|
||||
ORDER BY post_date ASC
|
||||
LIMIT 1"
|
||||
);
|
||||
|
||||
/* translators: Calendar caption: 1: Month name, 2: 4-digit year. */
|
||||
|
||||
Reference in New Issue
Block a user