Opened 7 years ago
Closed 6 years ago
#44249 closed defect (bug) (fixed)
Assignments must be the first block of code on a line
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Plugins | Keywords: | has-patch dev-feedback |
Focuses: | coding-standards | Cc: |
Description
File: wp-admin/includes/plugin.php
Function: get_plugins
Line number: 247
Original function body:
<?php function get_plugins( $plugin_folder = '' ) { if ( ! $cache_plugins = wp_cache_get( 'plugins', 'plugins' ) ) { $cache_plugins = array(); } }
Revised function body:
<?php function get_plugins( $plugin_folder = '' ) { $cache_plugins = wp_cache_get( 'plugins', 'plugins' ); if ( ! $cache_plugins ) { $cache_plugins = array(); } }
I have uploaded a proposed patch.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 44630: