[wp-trac] [WordPress Trac] #40891: map_meta_cap() causing PHP notice on term meta permissions

WordPress Trac noreply at wordpress.org
Mon Jul 3 12:40:18 UTC 2017


#40891: map_meta_cap() causing PHP notice on term meta permissions
------------------------------------------------------+------------------
 Reporter:  caercam                                   |       Owner:
     Type:  defect (bug)                              |      Status:  new
 Priority:  normal                                    |   Milestone:  4.9
Component:  Role/Capability                           |     Version:  4.7
 Severity:  normal                                    |  Resolution:
 Keywords:  has-patch needs-refresh needs-unit-tests  |     Focuses:
------------------------------------------------------+------------------

Comment (by caercam):

 Replying to [comment:2 boonebgorges]:
 `$term instanceof WP_Term` makes sense! Updated patch + added unit test.
 First ever released unit test, please bare with me and point any mistake I
 may have made.

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


More information about the wp-trac mailing list