mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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:
@@ -596,12 +596,12 @@ function _wp_preview_post_thumbnail_filter( $value, $post_id, $meta_key ) {
|
||||
}
|
||||
|
||||
if ( empty( $_REQUEST['_thumbnail_id'] ) ||
|
||||
empty( $_REQUEST['preview_id'] ) ||
|
||||
$post->ID != $post_id ||
|
||||
'_thumbnail_id' != $meta_key ||
|
||||
'revision' == $post->post_type ||
|
||||
$post_id != $_REQUEST['preview_id']
|
||||
) {
|
||||
empty( $_REQUEST['preview_id'] ) ||
|
||||
$post->ID != $post_id ||
|
||||
'_thumbnail_id' != $meta_key ||
|
||||
'revision' == $post->post_type ||
|
||||
$post_id != $_REQUEST['preview_id'] ) {
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user