[wp-trac] [WordPress Trac] #27137: Remove required user context from `get_edit_post_link()`

WordPress Trac noreply at wordpress.org
Wed Jul 9 06:50:59 UTC 2014


#27137: Remove required user context from `get_edit_post_link()`
-------------------------------------------------+-------------------------
 Reporter:  danielbachhuber                      |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  low                                  |   Milestone:  4.0
Component:  Posts, Post Types                    |     Version:
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch needs-testing dev-         |     Focuses:  template
  feedback close                                 |
-------------------------------------------------+-------------------------
Changes (by DrewAPicture):

 * keywords:  has-patch needs-testing dev-feedback => has-patch needs-
     testing dev-feedback close


Comment:

 This seems weird to me. Why break away from core precedent and rely on the
 admin cap check for this one instance only,  followed by moving the cap
 check to `edit_post_link()`? If we're going to move to rely on the admin
 cap check here it should be done consistently in core.

 Suggest close.

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


More information about the wp-trac mailing list