Changeset 23449 for trunk/wp-includes/post.php
- Timestamp:
- 02/18/2013 07:11:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r23420 r23449 1952 1952 1953 1953 /** 1954 * Retrieve post format metadata for a post 1955 * 1956 * @since 3.6.0 1957 * 1958 * @param int $post_id 1959 * @return null 1960 */ 1961 function get_post_format_meta( $post_id = 0 ) { 1962 $values = array( 1963 'quote' => '', 1964 'quote_source' => '', 1965 'image' => '', 1966 'url' => '', 1967 'gallery' => '', 1968 'media' => '', 1969 ); 1970 1971 foreach ( $values as $key => $value ) 1972 $values[$key] = get_post_meta( $post_id, '_wp_format_' . $key, true ); 1973 1974 return $values; 1975 } 1976 1977 /** 1954 1978 * Check if post is sticky. 1955 1979 *
Note: See TracChangeset
for help on using the changeset viewer.