Changeset 9087

Show
Ignore:
Timestamp:
10/06/08 15:29:47 (2 months ago)
Author:
markjaquith
Message:

Allow a filter to disable the validate_current_theme() functionality

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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