Warning: This function has been deprecated. Use wp_get_themes() instead.
get_broken_themes()
Retrieves a list of broken themes.
描述
返回值
(array)
源代码
File: wp-admin/includes/deprecated.php
function get_broken_themes() {
_deprecated_function( __FUNCTION__, '3.4.0', "wp_get_themes( array( 'errors' => true )" );
$themes = wp_get_themes( array( 'errors' => true ) );
$broken = array();
foreach ( $themes as $theme ) {
$name = $theme->get('Name');
$broken[ $name ] = array(
'Name' => $name,
'Title' => $name,
'描述' => $theme->errors()->get_error_message(),
);
}
return $broken;
}
更新日志
Version | 描述 |
---|---|
3.4.0 | Use wp_get_themes() |
1.5.0 | Introduced. |
相关函数
Uses
-
wp-includes/theme.php:
wp_get_themes() -
wp-includes/functions.php:
_deprecated_function()
你可能对这些文章感兴趣:
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_title()用法示例
- wordpress函数get_the_terms()用法示例
- wordpress函数get_the_tags()用法示例
- wordpress函数get_the_taxonomies()用法示例
- wordpress函数get_the_permalink()用法示例
- wordpress函数get_the_password_form()用法示例
- wordpress函数get_the_posts_pagination()用法示例
- wordpress函数get_the_modified_date()用法示例
- wordpress函数get_the_modified_time()用法示例
- wordpress函数get_the_modified_author()用法示例
- wordpress函数get_the_guid()用法示例
- wordpress函数get_the_ID()用法示例
- wordpress函数get_the_excerpt()用法示例
如有疑问,请前往问答中心反馈!
反馈