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
This commit is contained in:
Jb Audras 2021-12-07 17:47:28 +00:00
parent 6f546a023c
commit 6fa3ac1b1e

View File

@ -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] ] );
}
}