[wp-trac] [WordPress Trac] #35800: Preview button for CTP not working for user with limited Capabilities
WordPress Trac
noreply at wordpress.org
Thu Feb 11 13:59:10 UTC 2016
#35800: Preview button for CTP not working for user with limited Capabilities
-------------------------------+-----------------------------
Reporter: Webbverkstaden | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.4.1
Severity: normal | Keywords:
Focuses: administration |
-------------------------------+-----------------------------
I have a CPT "platsannonser" that has the capability_type = post. This
post type can be edited by a custom user type Admanager, with capabilities
added/limited to this post type through the plugin "Press Permit Core".
The Admanager users does not have the right to edit regular post. I have
tried adding that capability, but it made no difference.
The behavior described below happens when the post author is an Admin. If
the post author is another user of the same type (Admanager), or another
custom user type with similar or extended capabilities compared to the
Admanager, everything works fine.
The user can preview a post via the Preview link in the posts list, and
via the Permalink-link in the post editor, but not with the preview button
on the editor.
When the Preview button is clicked AFTER the Permalink-link in the editor
has been clicked (the post is a draft) and a Preview window/tab has
opened, the Preview button works. But otherwise not.
When previewing works it opens with an URL like this:
~/?post_type=platsannons&p=5383&preview=true
When the preview button is clicked, the URL(that gives a 404) looks like
this:
~/?post_type=platsannons&p=5383&preview_id=5383&preview_nonce=42d25b539b&post_format=standard&preview=true
The site is hosted at http://oderland.com. The behavior is there
regardless of browser type.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35800>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list