Make WordPress Core


Ignore:
Timestamp:
01/08/2015 07:04:40 AM (10 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r31018 r31090  
    19851985 */
    19861986function get_attachment_taxonomies($attachment) {
    1987     if ( is_int( $attachment ) )
    1988         $attachment = get_post($attachment);
    1989     else if ( is_array($attachment) )
     1987    if ( is_int( $attachment ) ) {
     1988        $attachment = get_post( $attachment );
     1989    } elseif ( is_array( $attachment ) ) {
    19901990        $attachment = (object) $attachment;
    1991 
     1991    }
    19921992    if ( ! is_object($attachment) )
    19931993        return array();
Note: See TracChangeset for help on using the changeset viewer.