Make WordPress Core


Ignore:
Timestamp:
05/25/2023 12:53:24 PM (3 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r55703 r55857  
    22992299                WHERE post_date < '$thisyear-$thismonth-01'
    23002300                AND post_type = 'post' AND post_status = 'publish'
    2301                         ORDER BY post_date DESC
    2302                         LIMIT 1"
     2301                ORDER BY post_date DESC
     2302                LIMIT 1"
    23032303        );
    23042304        $next     = $wpdb->get_row(
    … …  
    23072307                WHERE post_date > '$thisyear-$thismonth-{$last_day} 23:59:59'
    23082308                AND post_type = 'post' AND post_status = 'publish'
    2309                         ORDER BY post_date ASC
    2310                         LIMIT 1"
     2309                ORDER BY post_date ASC
     2310                LIMIT 1"
    23112311        );
    23122312
Note: See TracChangeset for help on using the changeset viewer.