mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
General: Fix some precision alignment formatting warnings.
The WPCS `WordPress.WhiteSpace.PrecisionAlignment` rule throws warnings for a bunch of code that will likely cause issues for `wpcbf`. Fixing these manually beforehand gives us better auto-fixed results later. See #41057. git-svn-id: https://develop.svn.wordpress.org/trunk@42228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -410,16 +410,16 @@ class WP {
|
||||
|
||||
// We're showing a feed, so WP is indeed the only thing that last changed.
|
||||
if ( ! empty( $this->query_vars['withcomments'] )
|
||||
|| false !== strpos( $this->query_vars['feed'], 'comments-' )
|
||||
|| ( empty( $this->query_vars['withoutcomments'] )
|
||||
&& ( ! empty( $this->query_vars['p'] )
|
||||
|| ! empty( $this->query_vars['name'] )
|
||||
|| ! empty( $this->query_vars['page_id'] )
|
||||
|| ! empty( $this->query_vars['pagename'] )
|
||||
|| ! empty( $this->query_vars['attachment'] )
|
||||
|| ! empty( $this->query_vars['attachment_id'] )
|
||||
)
|
||||
)
|
||||
|| false !== strpos( $this->query_vars['feed'], 'comments-' )
|
||||
|| ( empty( $this->query_vars['withoutcomments'] )
|
||||
&& ( ! empty( $this->query_vars['p'] )
|
||||
|| ! empty( $this->query_vars['name'] )
|
||||
|| ! empty( $this->query_vars['page_id'] )
|
||||
|| ! empty( $this->query_vars['pagename'] )
|
||||
|| ! empty( $this->query_vars['attachment'] )
|
||||
|| ! empty( $this->query_vars['attachment_id'] )
|
||||
)
|
||||
)
|
||||
) {
|
||||
$wp_last_modified = mysql2date( 'D, d M Y H:i:s', get_lastcommentmodified( 'GMT' ), false );
|
||||
} else {
|
||||
@@ -449,8 +449,8 @@ class WP {
|
||||
$wp_modified_timestamp = strtotime($wp_last_modified);
|
||||
|
||||
if ( ($client_last_modified && $client_etag) ?
|
||||
(($client_modified_timestamp >= $wp_modified_timestamp) && ($client_etag == $wp_etag)) :
|
||||
(($client_modified_timestamp >= $wp_modified_timestamp) || ($client_etag == $wp_etag)) ) {
|
||||
(($client_modified_timestamp >= $wp_modified_timestamp) && ($client_etag == $wp_etag)) :
|
||||
(($client_modified_timestamp >= $wp_modified_timestamp) || ($client_etag == $wp_etag)) ) {
|
||||
$status = 304;
|
||||
$exit_required = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user