Changeset 33666 for trunk/src/wp-includes/post.php
- Timestamp:
- 08/20/2015 07:39:57 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r33637 r33666 1845 1845 1846 1846 /** 1847 * Determines whether a post type is considered "viewable". 1848 * 1849 * For built-in post types such as posts and pages, the 'public' value will be evaluated. 1850 * For all others, the 'publicly_queryable' value will be used. 1851 * 1852 * @since 4.4.0 1853 * 1854 * @param object $post_type_object Post type object. 1855 * @return bool Whether the post type should be considered viewable. 1856 */ 1857 function is_post_type_viewable( $post_type_object ) { 1858 return $post_type_object->publicly_queryable || ( $post_type_object->_builtin && $post_type_object->public ); 1859 } 1860 1861 /** 1847 1862 * Retrieve list of latest posts or posts matching criteria. 1848 1863 *
Note: See TracChangeset
for help on using the changeset viewer.