Function Reference/validate current theme

来自WordPress中文文档
跳转至: 导航搜索

Description

Checks that current theme files 'index.php' and 'style.css' exists.

Does not check the 'default' theme. The 'default' theme should always exist or should have another theme renamed to that template name and directory path. Will switch theme to default if current theme does not validate. You can use the 'validate_current_theme' filter to return false to disable this functionality.

Usage

%%%<?php validate_current_theme() ?>%%%

Parameters

None.

Return Values

(boolean) 

Examples

Notes

Change Log

Since: 1.5.0

Source File

validate_current_theme() is located in wp-includes/theme.php.

Related

includeonlydiv style=clear:both; background-color:#F7F7F7; border:1px solid #CCCCCC; color:#000000; padding:7px; margin:0.5em auto 0.5em auto; vertical-align:middle;See also index of Function Reference and index of Template Tags./div/includeonlynoinclude

Description

This Template is used by Codex:Template Messages.

Usage

pre 检查到模板循环:模板:Message /pre

Result

检查到模板循环:模板:Message

/noinclude