mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
The keyword elseif should be used instead of else if so that all control keywords look like single words.
This was a mess, is now standardized across the codebase, except for a few 3rd-party libs. See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@31090 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -327,7 +327,7 @@ function remove_all_filters( $tag, $priority = false ) {
|
||||
if ( isset( $wp_filter[ $tag ]) ) {
|
||||
if ( false === $priority ) {
|
||||
$wp_filter[ $tag ] = array();
|
||||
} else if ( isset( $wp_filter[ $tag ][ $priority ] ) ) {
|
||||
} elseif ( isset( $wp_filter[ $tag ][ $priority ] ) ) {
|
||||
$wp_filter[ $tag ][ $priority ] = array();
|
||||
}
|
||||
}
|
||||
@@ -900,7 +900,7 @@ function _wp_filter_build_unique_id($tag, $function, $priority) {
|
||||
|
||||
return $obj_idx;
|
||||
}
|
||||
} else if ( is_string($function[0]) ) {
|
||||
} elseif ( is_string( $function[0] ) ) {
|
||||
// Static Calling
|
||||
return $function[0] . '::' . $function[1];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user