[buddypress-trac] [BuddyPress Trac] #5853: WP Edit button on BuddyPress pages
buddypress-trac
noreply at wordpress.org
Fri Sep 5 13:59:50 UTC 2014
#5853: WP Edit button on BuddyPress pages
--------------------------+-----------------------
Reporter: SGr33n | Owner: r-a-y
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 2.1
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Comment (by DJPaul):
Most themes' templates use `edit_post_link` which creates the "Edit" link
in the template; internally, it uses `get_edit_post_link` to get the link.
If `get_edit_post_link` returns a falsey value, then `edit_post_link`
bails out and doesn't do anything (this is how r-a-y's patch work).
The toolbar uses `get_edit_post_link` directly and doesn't check the
return value from it in the same way that `edit_post_link` does.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5853#comment:9>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list