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:
@@ -45,8 +45,8 @@ elseif ( isset($_POST['wp-preview']) && 'dopreview' == $_POST['wp-preview'] )
|
||||
|
||||
$sendback = wp_get_referer();
|
||||
if ( ! $sendback ||
|
||||
strpos( $sendback, 'post.php' ) !== false ||
|
||||
strpos( $sendback, 'post-new.php' ) !== false ) {
|
||||
strpos( $sendback, 'post.php' ) !== false ||
|
||||
strpos( $sendback, 'post-new.php' ) !== false ) {
|
||||
if ( 'attachment' == $post_type ) {
|
||||
$sendback = admin_url( 'upload.php' );
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user