Skip to content

Commit

Permalink
Specify the post type dynamically, supporting custom post types corre…
Browse files Browse the repository at this point in the history
…ctly.
  • Loading branch information
elvismdev committed Jan 6, 2025
1 parent ccda7ff commit e93392f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-syndication-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function handle_syndication_after_tweet_status_updated( $post_id,

// Only add valid tweet URLs.
if ( self::is_valid_tweet_url( $uri ) ) {
\Syn_Meta::add_syndication_link( 'post', $post_id, $uri );
\Syn_Meta::add_syndication_link( get_post_type( $post_id ), $post_id, $uri );
}
}
}
Expand Down

0 comments on commit e93392f

Please sign in to comment.