Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 157652f

Browse files
authored
fixed var naming
1 parent fb040c3 commit 157652f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

includes/class-linkbacks-handler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,18 +421,17 @@ public static function comment_text_add_cite( $text, $comment = null, $args = ar
421421
public static function get_post_type( $post_id ) {
422422
$post_format = 'post';
423423
if ( 'page' === get_post_type( $post_id ) ) {
424-
$post_format = 'page';
424+
$post_type = 'page';
425425
}
426426
if ( current_theme_supports( 'post-formats' ) ) {
427427
$post_typestrings = self::get_post_type_strings();
428428
$post_format = get_post_format( $post_id );
429+
$post_type = 'standard';
429430

430431
// add "standard" as default for post format enabled types
431432
if ( $post_format && in_array( $post_format, array_keys( $post_typestrings ), true ) ) {
432433
$post_type = $post_typestrings[ $post_format ];
433434
}
434-
435-
$post_format = 'standard';
436435
}
437436

438437
// If this is the page homepages are redirected to then use the site name

0 commit comments

Comments
 (0)