mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Improve documentation of validate_current_theme()
git-svn-id: http://svn.automattic.com/wordpress/trunk@14175 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
219f902d3d
commit
8ce9670189
@ -1176,13 +1176,13 @@ function switch_theme($template, $stylesheet) {
|
||||
/**
|
||||
* 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.
|
||||
* Does not check the fallback theme. The fallback theme should always exist.
|
||||
* Will switch theme to the fallback theme if current theme does not validate.
|
||||
* You can use the 'validate_current_theme' filter to return FALSE to
|
||||
* disable this functionality.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @see WP_FALLBACK_THEME
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user