Make WordPress Core


Ignore:
Timestamp:
10/06/2008 03:29:47 PM (16 years ago)
Author:
markjaquith
Message:

Allow a filter to disable the validate_current_theme() functionality

File:
1 edited

Legend:

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

    r8974 r9087  
    933933 * or should have another theme renamed to that template name and directory
    934934 * path. Will switch theme to default if current theme does not validate.
     935 * You can use the 'validate_current_theme' filter to return FALSE to
     936 * disable this functionality.
    935937 *
    936938 * @since 1.5.0
     
    940942function validate_current_theme() {
    941943    // Don't validate during an install/upgrade.
    942     if ( defined('WP_INSTALLING') )
     944    if ( defined('WP_INSTALLING') || !apply_filters( 'validate_current_theme', true ) )
    943945        return true;
    944946
Note: See TracChangeset for help on using the changeset viewer.