[wp-trac] [WordPress Trac] #51320: PHP Notice while moving post to trash (post_type has 2 registered taxonomies both with default_term set)

WordPress Trac noreply at wordpress.org
Thu Oct 15 23:17:17 UTC 2020


#51320: PHP Notice while moving post to trash (post_type has 2 registered
taxonomies both with default_term set)
---------------------------------------------+-----------------------------
 Reporter:  szaqal21                         |       Owner:  SergeyBiryukov
     Type:  defect (bug)                     |      Status:  accepted
 Priority:  normal                           |   Milestone:  5.5.2
Component:  Posts, Post Types                |     Version:  5.5.1
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+-----------------------------
Changes (by audrasjb):

 * keywords:  has-patch has-unit-tests needs-testing => has-patch has-unit-
     tests commit


Comment:

 Hi,
 Tested on my side: adding an `isset` check to test the sub-array fixes the
 issue. It looks good to go.
 Marking this for `commit` and removing the related keyword.

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


More information about the wp-trac mailing list