[wp-trac] [WordPress Trac] #52217: Fix code issues identified by PHPStan

WordPress Trac noreply at wordpress.org
Mon Nov 4 15:49:43 UTC 2024


#52217: Fix code issues identified by PHPStan
-------------------------+-------------------------------
 Reporter:  johnbillion  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  coding-standards
-------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"59341" 59341]:
 {{{
 #!CommitTicketReference repository="" revision="59341"
 Script Loader: Correct the number of arguments passed to
 `WP_Styles::get_etag()`.

 This fixes an issue with the usage of the new `$wp_styles->get_etag()`
 method in `wp-admin/load-styles.php`, where `$wp_version` is passed as the
 first argument instead of `$load` being used as the ''only'' argument.

 Follow-up to [58935].

 Props justlevine, mukesh27, swissspidy.
 See #52217, #61485.
 }}}

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


More information about the wp-trac mailing list