-
-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pods overrides preview link for post updated message. #4092
Comments
Hi @tuanmh |
@tuanmh Pods readme currently states WP 3.8+ so this wouldn't be compatible. |
Oh, thanks for point out @JoryHogeveen. The way Pods handles this at the moment is exactly in Wordpress 3.8 and there is no filter for preview link so my hands are tied unless you'd be happy to introduce a filter in this? |
I am cool with a version check and if it's 4.4 then use the new code. Very
soon we'll be able to let go of some of the older version support.
--
Best Regards,
Scott Kingsley Clark
Developer
…------------------------------------
E-mail: lol@scottkclark.com
Website: http://scottkclark.com/
Phone: 214.233.4048
Google / iMessage: lol@scottkclark.com
Skype: sc0ttkclark
------------------------------------
|
Cool, I've updated the PR @JoryHogeveen. |
Fixed #4092: build proper preview link for post updated message.
Hi there,
We've discovered that Pods overrides the preview link for post updated message:
So in this, WordPress uses preview link as intended:
https://github.com/WordPress/WordPress/blob/master/wp-admin/edit-form-advanced.php#L147
However, in this, Pods uses permalink with preview parameter instead:
https://github.com/pods-framework/pods/blob/2.x/classes/PodsInit.php#L911
Although Pods adds
preview=true
to simulate a preview link, but would it be best to useget_preview_post_link( $post->ID )
to cover the case where people have different preview link structures and they use filter underget_preview_post_link
to create the structure as they wanted.I'm more than happy to submit a PR for this and it would be simple.
The text was updated successfully, but these errors were encountered: