Changeset 46315 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 09/26/2019 12:56:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r46309 r46315 2063 2063 2064 2064 /** 2065 * Function to echo or return the Post States as HTML.2065 * Function to echo or return the post states as HTML. 2066 2066 * 2067 2067 * @since 2.7.0 2068 * @since 5.3.0 Adopted use of get_post_states 2068 * @since 5.3.0 Added the `$echo` parameter and a return value. 2069 * 2070 * @see get_post_states() 2069 2071 * 2070 2072 * @param WP_Post $post The post to retrieve states for. 2071 * @param boolean $echo Optional. Whether to echo or return the Post States as an HTML string. Default true for echo. 2072 * 2073 * @return string|void Post States string when echo is false. 2073 * @param bool $echo Optional. Whether to echo the post states as an HTML string. Default true. 2074 * @return string Post states string. 2074 2075 */ 2075 2076 function _post_states( $post, $echo = true ) { … … 2097 2098 2098 2099 /** 2099 * Function to retrieve an array of Post States from a Post.2100 * Function to retrieve an array of post states from a post. 2100 2101 * 2101 2102 * @since 5.3.0 2102 2103 * 2103 2104 * @param WP_Post $post The post to retrieve states for. 2104 * 2105 * @return array $post_states The array of translated post states. 2106 * 2105 * @return array The array of translated post states. 2107 2106 */ 2108 2107 function get_post_states( $post ) { … … 2171 2170 2172 2171 /** 2173 * @param WP_Post $post 2172 * Function to echo the attachment media states as HTML. 2173 * 2174 * @since 3.2.0 2175 * 2176 * @param WP_Post $post The attachment post to retrieve states for. 2177 * @return string Media states string. 2174 2178 */ 2175 2179 function _media_states( $post ) {
Note: See TracChangeset
for help on using the changeset viewer.