Changeset 45583 for trunk/src/wp-admin/includes/plugin.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin.php
r45546 r45583 153 153 // Translate fields 154 154 if ( $translate ) { 155 if ( $textdomain = $plugin_data['TextDomain'] ) { 155 $textdomain = $plugin_data['TextDomain']; 156 if ( $textdomain ) { 156 157 if ( ! is_textdomain_loaded( $textdomain ) ) { 157 158 if ( $plugin_data['DomainPath'] ) { … … 365 366 return $wp_plugins; 366 367 } 367 if ( $plugins_dir = @ opendir( WPMU_PLUGIN_DIR ) ) { 368 $plugins_dir = @opendir( WPMU_PLUGIN_DIR ); 369 if ( $plugins_dir ) { 368 370 while ( ( $file = readdir( $plugins_dir ) ) !== false ) { 369 371 if ( substr( $file, -4 ) == '.php' ) { … … 432 434 433 435 // These exist in the wp-content directory 434 if ( $plugins_dir = @ opendir( WP_CONTENT_DIR ) ) { 436 $plugins_dir = @opendir( WP_CONTENT_DIR ); 437 if ( $plugins_dir ) { 435 438 while ( ( $file = readdir( $plugins_dir ) ) !== false ) { 436 439 if ( isset( $_dropins[ $file ] ) ) { … … 734 737 $network_current = get_site_option( 'active_sitewide_plugins', array() ); 735 738 } 736 $current = get_option( 'active_plugins', array() ); 737 $do_blog = $do_network = false; 739 $current = get_option( 'active_plugins', array() ); 740 $do_blog = false; 741 $do_network = false; 738 742 739 743 foreach ( (array) $plugins as $plugin ) { … … 993 997 994 998 // Remove deleted plugins from the plugin updates list. 995 if ( $current = get_site_transient( 'update_plugins' ) ) { 999 $current = get_site_transient( 'update_plugins' ); 1000 if ( $current ) { 996 1001 // Don't remove the plugins that weren't deleted. 997 1002 $deleted = array_diff( $plugins, $errors ); … … 1820 1825 $hook = get_plugin_page_hook( $plugin_page, $pagenow ); 1821 1826 1822 $parent = $parent1 = get_admin_page_parent(); 1827 $parent = get_admin_page_parent(); 1828 $parent1 = $parent; 1823 1829 1824 1830 if ( empty( $parent ) ) {
Note: See TracChangeset
for help on using the changeset viewer.