Make WordPress Core

Changeset 37092


Ignore:
Timestamp:
03/30/2016 02:21:57 AM (9 years ago)
Author:
jorbin
Message:

Prevent PHP Warnings when using Custom Logo with no params

The parsing of defaults assumes that $args will be an array. This solves it for Custom Logo the same way it is solved for custom-header and custom-background.

Props obenland.
Fixes #36332.

File:
1 edited

Legend:

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

    r37083 r37092  
    15611561
    15621562        case 'custom-logo':
     1563            if ( ! is_array( $args ) ) {
     1564                $args = array( 0 => array() );
     1565            }
    15631566            $defaults = array(
    15641567                'width'       => null,
Note: See TracChangeset for help on using the changeset viewer.