Make WordPress Core


Ignore:
Timestamp:
02/25/2015 03:53:04 AM (12 years ago)
Author:
markjaquith
Message:

Make sure WP_Customize_Manager::theme() never returns null.

  • Fixes issue in [31533] that caused unit test fatal error

fixes #31445

File:
1 edited

Legend:

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

    r31533 r31536  
    315315         */
    316316        public function theme() {
     317                if ( ! $this->theme ) {
     318                        $this->theme = wp_get_theme();
     319                }
    317320                return $this->theme;
    318321        }
Note: See TracChangeset for help on using the changeset viewer.