[wp-trac] [WordPress Trac] #49169: Action Hook 'edited_terms' in function 'wp_update_term()' needs the Form POST Parameters

WordPress Trac noreply at wordpress.org
Sat Jan 11 15:08:55 UTC 2020


#49169: Action Hook 'edited_terms' in function 'wp_update_term()' needs the Form
POST Parameters
-----------------------------+------------------------------
 Reporter:  bodohugobarwich  |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Taxonomy         |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------
Description changed by SergeyBiryukov:

Old description:

> Hello,
>
> In order to implement the Term Meta Data Form as documented in
> https://core.trac.wordpress.org/ticket/48000
> I found that the Edit Form POST Parameters are not passed the Action Hook
> `edited_terms` in the function `wp_update_term()`.
>
> The Filter `wp_update_term_data` does receive the POST Parameters in the
> `$args` Variable but the later Action `edited_terms` does not.
>
> According to the Relationship between the Term Meta Data and the Term it
> is required that the Term is a valid Database Entry in order to insert
> savely the Term Meta Data.
> So only AFTER checking that the Term is correct and exists the Term Meta
> Data can be inserted.
>
> So I would love to change the Action Function Call accordingly.

New description:

 Hello,

 In order to implement the Term Meta Data Form as documented in #48000
 I found that the Edit Form POST Parameters are not passed the Action Hook
 `edited_terms` in the function `wp_update_term()`.

 The Filter `wp_update_term_data` does receive the POST Parameters in the
 `$args` Variable but the later Action `edited_terms` does not.

 According to the Relationship between the Term Meta Data and the Term it
 is required that the Term is a valid Database Entry in order to insert
 savely the Term Meta Data.
 So only AFTER checking that the Term is correct and exists the Term Meta
 Data can be inserted.

 So I would love to change the Action Function Call accordingly.

--

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


More information about the wp-trac mailing list