[wp-trac] [WordPress Trac] #35922: get_edit_term_link should not require $taxonomy

WordPress Trac noreply at wordpress.org
Mon Mar 14 01:51:14 UTC 2016


#35922: get_edit_term_link should not require $taxonomy
-------------------------+---------------------------
 Reporter:  nicdford     |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.5
Component:  Taxonomy     |     Version:  4.4
 Severity:  normal       |  Resolution:  fixed
 Keywords:               |     Focuses:
-------------------------+---------------------------

Comment (by boonebgorges):

 In [changeset:"36986"]:
 {{{
 #!CommitTicketReference repository="" revision="36986"
 Fix test related to cap check in `get_edit_term_link()`.

 The test was introduced in [36646] was intended to demonstrate that the
 cap
 check in `get_edit_term_link()` uses the custom capability from the
 correct
 taxonomy when `$taxonomy` is not specified but must be inferred from the
 provided term. However, the test was wrongly written in pretty much every
 way.
 Antiprops boonebgorges.

 Props swissspidy.
 See #35922.
 }}}

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


More information about the wp-trac mailing list