Make WordPress Core


Ignore:
Timestamp:
11/23/2016 06:04:23 AM (8 years ago)
Author:
westonruter
Message:

Customize: Clean up docs and code style for customize changes in 4.7.

  • Adds missing resolve/fail for promise returned by loadThemePreview.
  • Adds missing jsdoc blocks and tags.
  • Adds missing phpdoc and makes corrections.

See #37770.
Fixes #38908.

File:
1 edited

Legend:

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

    r39332 r39345  
    39683968                return new WP_Error( 'invalid_value', __( 'Invalid value for background repeat.' ) );
    39693969            }
    3970         } else if ( 'background_attachment' === $setting->id ) {
     3970        } elseif ( 'background_attachment' === $setting->id ) {
    39713971            if ( ! in_array( $value, array( 'fixed', 'scroll' ) ) ) {
    39723972                return new WP_Error( 'invalid_value', __( 'Invalid value for background attachment.' ) );
    39733973            }
    3974         } else if ( 'background_position_x' === $setting->id ) {
     3974        } elseif ( 'background_position_x' === $setting->id ) {
    39753975            if ( ! in_array( $value, array( 'left', 'center', 'right' ), true ) ) {
    39763976                return new WP_Error( 'invalid_value', __( 'Invalid value for background position X.' ) );
    39773977            }
    3978         } else if ( 'background_position_y' === $setting->id ) {
     3978        } elseif ( 'background_position_y' === $setting->id ) {
    39793979            if ( ! in_array( $value, array( 'top', 'center', 'bottom' ), true ) ) {
    39803980                return new WP_Error( 'invalid_value', __( 'Invalid value for background position Y.' ) );
    39813981            }
    3982         } else if ( 'background_size' === $setting->id ) {
     3982        } elseif ( 'background_size' === $setting->id ) {
    39833983            if ( ! in_array( $value, array( 'auto', 'contain', 'cover' ), true ) ) {
    39843984                return new WP_Error( 'invalid_value', __( 'Invalid value for background size.' ) );
    39853985            }
    3986         } else if ( 'background_preset' === $setting->id ) {
     3986        } elseif ( 'background_preset' === $setting->id ) {
    39873987            if ( ! in_array( $value, array( 'default', 'fill', 'fit', 'repeat', 'custom' ), true ) ) {
    39883988                return new WP_Error( 'invalid_value', __( 'Invalid value for background size.' ) );
    39893989            }
    3990         } else if ( 'background_image' === $setting->id || 'background_image_thumb' === $setting->id ) {
     3990        } elseif ( 'background_image' === $setting->id || 'background_image_thumb' === $setting->id ) {
    39913991            $value = empty( $value ) ? '' : esc_url_raw( $value );
    39923992        } else {
Note: See TracChangeset for help on using the changeset viewer.