[wp-trac] [WordPress Trac] #42532: Custom post type : redirection bug after publish when cap edit_published_cpt is not set

WordPress Trac noreply at wordpress.org
Wed Nov 15 08:23:48 UTC 2017


#42532: Custom post type : redirection bug after publish when cap
edit_published_cpt is not set
-------------------------------+------------------------------
 Reporter:  ajoah              |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Role/Capability    |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:  administration
-------------------------------+------------------------------

Comment (by ajoah):

 Hi @helen, yes i have tested on 4.8.3 and 4.9-RC2-42158

 @skostadinov That is what i thought at first however edit.php is not the
 url to edit the post published but the url which list blog posts. If the
 role which i have created had cap `edit_posts` the message would not
 appeared.

 It is logical to redirect to this URL except that for a CPT, the query
 string `?post_type=movies` must be added otherwise it lists blog posts (or
 displays an error message if the user doesn't have the capability)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42532#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list