[wp-trac] [WordPress Trac] #27137: Remove required user context from `get_edit_post_link()`
WordPress Trac
noreply at wordpress.org
Thu May 8 01:19:27 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 dev-feedback | Focuses: template
------------------------------------+-----------------------
Changes (by knutsp):
* keywords: has-patch commit => has-patch dev-feedback
Comment:
This would be ok, as long as the behaviour of `edit_post_link()` is not
changed. But, looking at wp-includes/link-template.php, it seems the
capabilities check is only done in `get_edit_post_link()`.
Unless the capabilities check is moved over to `edit_post_link()` this
change will pollute sites with unnecessary Edit links, even for anonymous
users.
Or am I missing something?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27137#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list