[wp-trac] [WordPress Trac] #40006: $response var in comments not an array but an object

WordPress Trac noreply at wordpress.org
Wed Mar 1 15:22:23 UTC 2017


#40006: $response var in comments not an array but an object
--------------------------+-----------------------------
 Reporter:  davidmosterd  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 In the file [https://core.trac.wordpress.org/browser/trunk/src/wp-
 admin/includes/update.php#L418, wp-admin/includes/update.php] there is an
 action {{{ do_action( "in_plugin_update_message-{$file}", $plugin_data,
 $response ); }}}. The comments declares $response as an array but its and
 object containing the plugin data. The list of plugin data also seems
 somewhat incomplete. But I'm unsure if all fields I see are always
 present. The property "tested" seems useful to add at least.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40006>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list