mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 19:54:28 +00:00
Add @static* annotations where they are missing.
Initialize all static vars that are not, most to `null`. See #32444. git-svn-id: https://develop.svn.wordpress.org/trunk@32650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -689,7 +689,7 @@ function wp_register_plugin_realpath( $file ) {
|
||||
global $wp_plugin_paths;
|
||||
|
||||
// Normalize, but store as static to avoid recalculation of a constant value
|
||||
static $wp_plugin_path, $wpmu_plugin_path;
|
||||
static $wp_plugin_path = null, $wpmu_plugin_path = null;
|
||||
if ( ! isset( $wp_plugin_path ) ) {
|
||||
$wp_plugin_path = wp_normalize_path( WP_PLUGIN_DIR );
|
||||
$wpmu_plugin_path = wp_normalize_path( WPMU_PLUGIN_DIR );
|
||||
|
||||
Reference in New Issue
Block a user