Changeset 43592
- Timestamp:
- 08/30/2018 09:00:42 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-formats.php
r42343 r43592 16 16 */ 17 17 function get_post_format( $post = null ) { 18 if ( ! $post = get_post( $post ) ) { 18 $post = get_post( $post ); 19 20 if ( ! $post ) { 19 21 return false; 20 22 } … … 68 70 $post = get_post( $post ); 69 71 70 if ( empty( $post )) {72 if ( ! $post ) { 71 73 return new WP_Error( 'invalid_post', __( 'Invalid post.' ) ); 72 74 }
Note: See TracChangeset
for help on using the changeset viewer.