WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/16/2016 10:07:41 PM (3 years ago)
Author:
davidakennedy
Message:

Twenty Seventeen: Improves code readability and code standards in files

Adds better DocBlock comments and fixes some spacing issues based on PHP_CodeSniffer WordPress coding standards.

Props sstoqnov.

Fixes #39152.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyseventeen/inc/customizer.php

    r39227 r39618  
    124124/**
    125125 * Sanitize the page layout options.
     126 *
     127 * @param string $input Page layout.
    126128 */
    127129function twentyseventeen_sanitize_page_layout( $input ) {
     
    140142/**
    141143 * Sanitize the colorscheme.
     144 *
     145 * @param string $input Color scheme.
    142146 */
    143147function twentyseventeen_sanitize_colorscheme( $input ) {
    144148    $valid = array( 'light', 'dark', 'custom' );
    145149
    146     if ( in_array( $input, $valid ) ) {
     150    if ( in_array( $input, $valid, true ) ) {
    147151        return $input;
    148152    }
Note: See TracChangeset for help on using the changeset viewer.