Skip to content

Commit 822bf7f

Browse files
revert format change because of phpcs
1 parent ccd79be commit 822bf7f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-includes/abilities/class-wp-post-type-abilities.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,8 @@ private static function format_post( WP_Post $post, WP_Post_Type $post_type_obje
11741174
}
11751175

11761176
if ( post_type_supports( $slug, 'post-formats' ) ) {
1177-
$data['format'] = get_post_format( $post ) ?: 'standard';
1177+
$format = get_post_format( $post );
1178+
$data['format'] = $format ? $format : 'standard';
11781179
}
11791180

11801181
if ( post_type_supports( $slug, 'comments' ) ) {

0 commit comments

Comments
 (0)