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:
Scott Taylor
2015-01-08 07:04:40 +00:00
parent d0767caf54
commit 6fd11624d1
48 changed files with 181 additions and 170 deletions

View File

@@ -506,7 +506,7 @@ class WP_Comment_Query {
// Disable ORDER BY with 'none', an empty array, or boolean false.
if ( in_array( $this->query_vars['orderby'], array( 'none', array(), false ), true ) ) {
$orderby = '';
} else if ( ! empty( $this->query_vars['orderby'] ) ) {
} elseif ( ! empty( $this->query_vars['orderby'] ) ) {
$ordersby = is_array( $this->query_vars['orderby'] ) ?
$this->query_vars['orderby'] :
preg_split( '/[,\s]/', $this->query_vars['orderby'] );
@@ -2228,9 +2228,9 @@ function wp_update_comment($commentarr) {
if ( ! isset( $data['comment_approved'] ) ) {
$data['comment_approved'] = 1;
} else if ( 'hold' == $data['comment_approved'] ) {
} elseif ( 'hold' == $data['comment_approved'] ) {
$data['comment_approved'] = 0;
} else if ( 'approve' == $data['comment_approved'] ) {
} elseif ( 'approve' == $data['comment_approved'] ) {
$data['comment_approved'] = 1;
}