mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.
See #47632. git-svn-id: https://develop.svn.wordpress.org/trunk@45583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -20,12 +20,14 @@
|
||||
* Or, false on failure.
|
||||
*/
|
||||
function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
||||
if ( ! $post = get_post( $post ) ) {
|
||||
$post = get_post( $post );
|
||||
if ( ! $post ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $compare_from ) {
|
||||
if ( ! $compare_from = get_post( $compare_from ) ) {
|
||||
$compare_from = get_post( $compare_from );
|
||||
if ( ! $compare_from ) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
@@ -33,7 +35,8 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
||||
$compare_from = false;
|
||||
}
|
||||
|
||||
if ( ! $compare_to = get_post( $compare_to ) ) {
|
||||
$compare_to = get_post( $compare_to );
|
||||
if ( ! $compare_to ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user