Ticket #44466: 44466-2.diff
| File 44466-2.diff, 666 bytes (added by , 8 years ago) |
|---|
-
wp-includes/taxonomy.php
4548 4548 4549 4549 return $parent; 4550 4550 } 4551 4552 /** 4553 * Determines whether a taxonomy is considered "viewable". 4554 * * 4555 * @param string|WP_Taxonomy $taxonomy Taxonomy name or object. 4556 * @return bool Whether the taxonomy should be considered viewable. 4557 */ 4558 function is_taxonomy_viewable( $taxonomy ) { 4559 if ( is_scalar( $taxonomy ) ) { 4560 $taxonomy = get_taxonomy( $taxonomy ); 4561 if ( ! $taxonomy ) { 4562 return false; 4563 } 4564 } 4565 4566 return $taxonomy->publicly_queryable; 4567 }