Skip to content

Commit

Permalink
- replace wordpress 6.0 dependent function
Browse files Browse the repository at this point in the history
  • Loading branch information
ojopaul committed Jun 27, 2022
1 parent 870fc16 commit 5567a72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/templates/parts/author-pages-grid.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<?php
$featured_image = ($show_post_featured_image && has_post_thumbnail())
? 'background-image: url("'. wp_get_attachment_image_src(get_post_thumbnail_id(), 'single-post-thumbnail')[0] .'");' : '';
$post_categories = ($show_post_category) ? get_the_category_list(wp_get_list_item_separator()) : false;
$post_categories = ($show_post_category) ? get_the_category_list(',') : false;
$post_tags = ($show_post_tags) ? get_the_tags() : [];
$post_authors = ($show_post_authors) ? get_post_authors() : [];
?>
Expand Down
2 changes: 1 addition & 1 deletion src/templates/parts/author-pages-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<?php
$featured_image = ($show_post_featured_image && has_post_thumbnail())
? 'background-image: url("'. wp_get_attachment_image_src(get_post_thumbnail_id(), 'single-post-thumbnail')[0] .'");' : '';
$post_categories = ($show_post_category) ? get_the_category_list(wp_get_list_item_separator()) : false;
$post_categories = ($show_post_category) ? get_the_category_list(',') : false;
$post_tags = ($show_post_tags) ? get_the_tags() : [];
$post_authors = ($show_post_authors) ? get_post_authors() : [];
?>
Expand Down

0 comments on commit 5567a72

Please sign in to comment.