[wp-trac] [WordPress Trac] #55480: Add filter to modify description in plugin card

WordPress Trac noreply at wordpress.org
Tue Apr 26 21:24:48 UTC 2022


#55480: Add filter to modify description in plugin card
------------------------------------------+-----------------------------
 Reporter:  afragen                       |       Owner:  SergeyBiryukov
     Type:  enhancement                   |      Status:  reopened
 Priority:  normal                        |   Milestone:  6.0
Component:  Upgrade/Install               |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch add-to-field-guide  |     Focuses:  administration
------------------------------------------+-----------------------------
Changes (by pbiron):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Replying to [comment:9 afragen]:
 > @SergeyBiryukov I believe the reference for the `@param $plugin` is a
 reference to the output of a call to `plugins_api()` and not to the
 `plugin_row_meta` filter.
 >
 > Thanks @pbiron

 To expand on the above: this is in reference to the description of that
 param in the DocBlock.  The param that is passed to
 [https://developer.wordpress.org/reference/hooks/plugin_row_meta/
 plugin_row_meta] contains a number of properties about the plugin that are
 only set in `WP_Plugin_List_Table::single_row()` and would never be set in
 the param that is passed to `plugin_install_description`.

 The same discrepancy also applies to DocBlock of the
 [https://developer.wordpress.org/reference/hooks/plugin_install_action_links/
 plugin_install_action_links] which was modified in the commit for this new
 filter.

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


More information about the wp-trac mailing list