Skip to content

Commit

Permalink
Merge pull request #308 from globeandmail/update/category-handling
Browse files Browse the repository at this point in the history
update `sectionNames` to be same as `allSections` in content-sync.php
  • Loading branch information
jeffpaul authored Jul 14, 2022
2 parents 8317f1d + b292063 commit e2b06b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/functions/content-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function get_post_data( $post ) {
'plainText' => wp_strip_all_tags( $content ),
'size' => str_word_count( wp_strip_all_tags( $content ) ),
'allSections' => Utils\get_post_categories_paths( $post->ID ),
'sectionNames' => Utils\get_post_categories( $post->ID ),
'sectionNames' => Utils\get_post_categories_paths( $post->ID ),
'modifiedAt' => gmdate( \DateTime::RFC3339, strtotime( $post->post_modified_gmt ) ),
'tags' => Utils\get_post_tags( $post ),
'url' => $permalink,
Expand Down

0 comments on commit e2b06b0

Please sign in to comment.