Skip to content

Commit

Permalink
Coding Standards: Replace else if with elseif after [52338].
Browse files Browse the repository at this point in the history
Follow-up to [52338].


git-svn-id: https://develop.svn.wordpress.org/trunk@52339 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
audrasjb committed Dec 7, 2021
1 parent 6f546a0 commit 6fa3ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class.wp-dependencies.php
Expand Up @@ -355,7 +355,7 @@ public function enqueue( $handles ) {
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] ) ) {
Expand Down Expand Up @@ -387,7 +387,7 @@ public function dequeue( $handles ) {

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

0 comments on commit 6fa3ac1

Please sign in to comment.