Opened 8 years ago
Closed 8 years ago
#44249 closed defect (bug) (fixed)
Assignments must be the first block of code on a line
| Reported by: | subrataemfluence | Owned by: | pento |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Plugins | Version: | |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: | coding-standards |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 44630: