WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/19/2015 10:00:33 PM (6 years ago)
Author:
wonderboymusic
Message:

Customizer et al, use elseif in PHP, not else if.
This was corrected via brute force in [31090].

See #32444.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-setting.php

    r32806 r32874  
    859859                    if ( 'post_type' === $value['type'] ) {
    860860                        $original_title = get_the_title( $value['object_id'] );
    861                     } else if ( 'taxonomy' === $value['type'] ) {
     861                    } elseif ( 'taxonomy' === $value['type'] ) {
    862862                        $original_title = get_term_field( 'name', $value['object_id'], $value['object'], 'raw' );
    863863                        if ( is_wp_error( $original_title ) ) {
     
    17381738        if ( $auto_add && false === $i ) {
    17391739            array_push( $nav_menu_options['auto_add'], $this->term_id );
    1740         } else if ( ! $auto_add && false !== $i ) {
     1740        } elseif ( ! $auto_add && false !== $i ) {
    17411741            array_splice( $nav_menu_options['auto_add'], $i, 1 );
    17421742        }
Note: See TracChangeset for help on using the changeset viewer.