mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-31 18:54:29 +00:00
Deprecate is_term, is_taxonomy, is_post_type for *_exists(). Props nacin. fixes #13747
git-svn-id: https://develop.svn.wordpress.org/trunk@15220 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1041,7 +1041,7 @@ class WP_Widget_Tag_Cloud extends WP_Widget {
|
||||
}
|
||||
|
||||
function _get_current_taxonomy($instance) {
|
||||
if ( !empty($instance['taxonomy']) && is_taxonomy($instance['taxonomy']) )
|
||||
if ( !empty($instance['taxonomy']) && taxonomy_exists($instance['taxonomy']) )
|
||||
return $instance['taxonomy'];
|
||||
|
||||
return 'post_tag';
|
||||
|
||||
Reference in New Issue
Block a user