Changeset 47550 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 04/05/2020 03:00:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r47546 r47550 524 524 */ 525 525 function is_plugin_active( $plugin ) { 526 return in_array( $plugin, (array) get_option( 'active_plugins', array() ) ) || is_plugin_active_for_network( $plugin );526 return in_array( $plugin, (array) get_option( 'active_plugins', array() ), true ) || is_plugin_active_for_network( $plugin ); 527 527 } 528 528 … … 645 645 } 646 646 647 if ( ( $network_wide && ! isset( $current[ $plugin ] ) ) || ( ! $network_wide && ! in_array( $plugin, $current ) ) ) {647 if ( ( $network_wide && ! isset( $current[ $plugin ] ) ) || ( ! $network_wide && ! in_array( $plugin, $current, true ) ) ) { 648 648 if ( ! empty( $redirect ) ) { 649 649 // We'll override this later if the plugin can be included without fatal error. … … 784 784 785 785 if ( true !== $network_wide ) { 786 $key = array_search( $plugin, $current );786 $key = array_search( $plugin, $current, true ); 787 787 if ( false !== $key ) { 788 788 $do_blog = true;
Note: See TracChangeset
for help on using the changeset viewer.