Make WordPress Core

Changeset 41429


Ignore:
Timestamp:
09/19/2017 11:49:35 AM (8 years ago)
Author:
ocean90
Message:

Customize: Ensure valid themes in the preview.

Merge of [41397] to the 4.8 branch.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-includes/class-wp-customize-manager.php

    r40804 r41429  
    266266
    267267        $this->original_stylesheet = get_stylesheet();
    268         $this->theme = wp_get_theme( $args['theme'] );
     268        $this->theme = wp_get_theme( 0 === validate_file( $args['theme'] ) ? $args['theme'] : null );
    269269        $this->messenger_channel = $args['messenger_channel'];
    270270        $this->_changeset_uuid = $args['changeset_uuid'];
Note: See TracChangeset for help on using the changeset viewer.