Remove faulty integration with Autoshare for Twitter #221
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This hook in the Syndication Links plugin creates a conflict with the ongoing Autoshare for X + Syndication Links integration currently in progress at 10up/autoshare-for-twitter#331.
Incomplete Tweet URLs, such as
https://twitter.com/i/web/status/
, are being generated and added because the Syndication Links plugin hooks intoautoshare_for_twitter_after_status_update
to handle the same functionality being developed in the Autoshare for Twitter plugin PR.Additionally, this implementation contains a bug in the variable names – it attempts to use the undefined variable
$tweet_status
, leaving$data
unused.Finally, by using
add_post_syndication_link( $post->ID, $url )
, it does not account for saving syndication link metadata in custom post types. This contrasts with using\Syn_Meta::add_syndication_link( $type, $post_id, $uri );
, which allows specifying the post type object where the metadata should be saved through the$type
parameter.