Skip to content

Sharing: Use an unfiltered post permalink for all sharing links#2420

Merged
samhotchkiss merged 1 commit into
masterfrom
update/sharing-url-pinterest
Aug 25, 2015
Merged

Sharing: Use an unfiltered post permalink for all sharing links#2420
samhotchkiss merged 1 commit into
masterfrom
update/sharing-url-pinterest

Conversation

@jeherve
Copy link
Copy Markdown
Member

@jeherve jeherve commented Jul 20, 2015

Fixes https://wordpress.org/support/topic/pinterest-sharing-button-not-working and a Pinterest issue that was introduced in 888a5ae

Create a new function, get_process_request_url
Use instead of get_share_url for non-official styles as get_permalink ensures that process_request
will be executed more reliably, in the case that the filtered URL uses a service that strips query parameters.

Fixes https://wordpress.org/support/topic/pinterest-sharing-button-not-working

Create a new function, get_process_request_url
Use instead of get_share_url for non-official styles as get_permalink ensures that process_request
will be executed more reliably, in the case that the filtered URL uses a service that strips query parameters.
@jeherve jeherve added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Sharing Post sharing, sharing buttons [Status] Needs Review This PR is ready for review. labels Jul 20, 2015
@jeherve jeherve added this to the 3.7 milestone Jul 20, 2015
@jeherve
Copy link
Copy Markdown
Member Author

jeherve commented Jul 20, 2015

cc @aduth

@aduth
Copy link
Copy Markdown
Member

aduth commented Jul 20, 2015

An effective clarification to why get_permalink is used in some cases, and get_share_url in others. 👍

I wasn't able to find any cases of get_permalink which should have been converted to use this new method, and I confirmed that the non-official Pinterest styles display link was updated.

@jeherve
Copy link
Copy Markdown
Member Author

jeherve commented Aug 12, 2015

@samhotchkiss
Copy link
Copy Markdown
Contributor

I was unable to reproduce the original issue, but the code looks fine, and @aduth signed off, so I'm going to go ahead and accept it

samhotchkiss added a commit that referenced this pull request Aug 25, 2015
Sharing: Use an unfiltered post permalink for all sharing links
@samhotchkiss samhotchkiss merged commit a186455 into master Aug 25, 2015
@samhotchkiss samhotchkiss deleted the update/sharing-url-pinterest branch August 25, 2015 13:34
@samhotchkiss samhotchkiss removed the [Status] Needs Review This PR is ready for review. label Aug 25, 2015
@jeherve
Copy link
Copy Markdown
Member Author

jeherve commented Aug 25, 2015

I was unable to reproduce the original issue

For reference, one can reproduce the issue by customizing the shared permalink thanks to the sharing_permalink filter, or with a plugin like this one:
https://wordpress.org/plugins/jetpack-shortlinks-for-sharing-buttons/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Sharing Post sharing, sharing buttons

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants