From 92159ea0c24e2432b50a787b293b12a5ac5c4f83 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Fri, 5 Nov 2010 09:40:36 +0000 Subject: [PATCH] Allow get_post_format() to assume current post if none passed in. see #14746 git-svn-id: http://svn.automattic.com/wordpress/trunk@16202 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 9be325708..1c4dcaf11 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -480,7 +480,7 @@ function get_post_mime_type($ID = '') { * * @return mixed The format if successful. False if no format is set. WP_Error if errors. */ -function get_post_format( $post ) { +function get_post_format( $post = null ) { $post = get_post($post); $format = wp_get_object_terms( $post->ID, 'post_format', array('orderby' => 'none', 'fields' => 'names') );