[wp-trac] [WordPress Trac] #40006: $response var in comments not an array but an object
    WordPress Trac 
    noreply at wordpress.org
       
    Tue Sep  7 12:53:49 UTC 2021
    
    
  
#40006: $response var in comments not an array but an object
-----------------------------+-----------------------------
 Reporter:  davidmosterd     |       Owner:  SergeyBiryukov
     Type:  enhancement      |      Status:  reviewing
 Priority:  normal           |   Milestone:  5.9
Component:  Upgrade/Install  |     Version:  3.8
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  docs
-----------------------------+-----------------------------
Comment (by SergeyBiryukov):
 In [changeset:"51733" 51733]:
 {{{
 #!CommitTicketReference repository="" revision="51733"
 Docs: Correct documentation for the `in_plugin_update_message-{$file}`
 filter.
 The `$response` parameter is an object, not an array.
 This is a minor inconsistency with the corresponding
 `in_theme_update_message-{$theme_key}` action for themes, where the
 `$response` parameter is an array.
 For backward compatibility, it is safer not to change the parameter type
 at this point, but to make sure the documentation is correct.
 Follow-up to [11193], [16141], [26540].
 Props davidmosterd, audrasjb, SergeyBiryukov.
 See #40006.
 }}}
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40006#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list