Skip to content

Commit 85f3ea9

Browse files
committed
Account for when post format isn't set
1 parent 9363b63 commit 85f3ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Posts/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function status()
7676
*/
7777
public function format()
7878
{
79-
return \get_post_format($this->id());
79+
return (\get_post_format($this->id()) ?: 'standard');
8080
}
8181

8282
/**

0 commit comments

Comments
 (0)