WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (4 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

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

    r41355 r42343  
    160160        if ( ! isset( $this->settings ) ) {
    161161            $this->settings = array( $id );
    162         } else if ( is_string( $this->settings ) ) {
     162        } elseif ( is_string( $this->settings ) ) {
    163163            $this->settings = array( $this->settings );
    164164        }
     
    202202            ob_start();
    203203            $return_render = call_user_func( $this->render_callback, $this, $container_context );
    204             $ob_render = ob_get_clean();
     204            $ob_render     = ob_get_clean();
    205205
    206206            if ( null !== $return_render && '' !== $ob_render ) {
Note: See TracChangeset for help on using the changeset viewer.