Ticket #23198: add-WP_Error.diff
File add-WP_Error.diff, 440 bytes (added by , 11 years ago) |
---|
-
wp-includes/post.php
765 765 function get_post_format( $post = null ) { 766 766 $post = get_post($post); 767 767 768 if ( empty($post) ) 769 return new WP_Error('invalid_post', __('Invalid post')); 770 768 771 if ( ! post_type_supports( $post->post_type, 'post-formats' ) ) 769 772 return false; 770 773