Skip to content

Commit

Permalink
Fix get_post_count_by_post_format query
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Sep 5, 2024
1 parent 7fe9621 commit a0fd7ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-subscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public function get_post_count_by_post_format() {
foreach ( get_post_format_slugs() as $post_format ) {
$term = get_term_by( 'slug', 'post-format-' . $post_format, 'post_format' );
if ( $term ) {
$post_formats_term_ids[ $term->term_id ] = $post_format;
$post_formats_term_ids[ $term->term_taxonomy_id ] = $post_format;
}
}

Expand Down
2 changes: 1 addition & 1 deletion includes/class-user.php
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ public function get_post_count_by_post_format() {
foreach ( get_post_format_slugs() as $post_format ) {
$term = get_term_by( 'slug', 'post-format-' . $post_format, 'post_format' );
if ( $term ) {
$post_formats_term_ids[ $term->term_id ] = $post_format;
$post_formats_term_ids[ $term->term_taxonomy_id ] = $post_format;
}
}

Expand Down

0 comments on commit a0fd7ce

Please sign in to comment.