From 6fa3ac1b1e317410d0844525182907f9a3997044 Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Tue, 7 Dec 2021 17:47:28 +0000 Subject: [PATCH] Coding Standards: Replace `else if` with `elseif` after [52338]. Follow-up to [52338]. git-svn-id: https://develop.svn.wordpress.org/trunk@52339 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class.wp-dependencies.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class.wp-dependencies.php b/src/wp-includes/class.wp-dependencies.php index 649bf172c3..2157871ea5 100644 --- a/src/wp-includes/class.wp-dependencies.php +++ b/src/wp-includes/class.wp-dependencies.php @@ -355,7 +355,7 @@ class WP_Dependencies { if ( isset( $handle[1] ) ) { $this->args[ $handle[0] ] = $handle[1]; } - } else if ( ! isset( $this->registered[ $handle[0] ] ) ) { + } elseif ( ! isset( $this->registered[ $handle[0] ] ) ) { $this->queued_before_register[ $handle[0] ] = null; // $args if ( isset( $handle[1] ) ) { @@ -387,7 +387,7 @@ class WP_Dependencies { unset( $this->queue[ $key ] ); unset( $this->args[ $handle[0] ] ); - } else if ( array_key_exists( $handle[0], $this->queued_before_register ) ) { + } elseif ( array_key_exists( $handle[0], $this->queued_before_register ) ) { unset( $this->queued_before_register[ $handle[0] ] ); } }