[wp-trac] [WordPress Trac] #39038: Add support for non-split shared terms to singular term capabilities (was: Pass the taxonomy context to singular term capabilities)

WordPress Trac noreply at wordpress.org
Sat Dec 3 19:11:31 UTC 2016


#39038: Add support for non-split shared terms to singular term capabilities
--------------------------+--------------------
 Reporter:  dd32          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7.1
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by johnbillion):

 There are a couple of other places in core where the optional `$taxonomy`
 parameter isn't passed to `get_term()`:

 * https://core.trac.wordpress.org/browser/trunk/src/wp-admin/edit-
 tags.php?rev=39308#L138
 * https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/capabilities.php?rev=39308#L277

 Do these situations need to handle non-split shared terms too? If so, do
 we need a generic handler? Or can we assume that all calls to `get_term()`
 cannot be considered reliable for non-split shared terms when the
 `$taxonomy` parameter isn't specified?

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


More information about the wp-trac mailing list