get_mu_plugins example


            if ( apply_filters( 'show_advanced_plugins', true, 'mustuse' ) ) {
                $plugins['mustuse'] = get_mu_plugins();
            }

            /** This action is documented in wp-admin/includes/class-wp-plugins-list-table.php */
            if ( apply_filters( 'show_advanced_plugins', true, 'dropins' ) ) {
                $plugins['dropins'] = get_dropins();
            }

            if ( current_user_can( 'update_plugins' ) ) {
                $current = get_site_transient( 'update_plugins' );
                foreach ( (array) $plugins['all'] as $plugin_file => $plugin_data ) {
                    if ( isset( $current->response[ $plugin_file ] ) ) {
                        
$info['wp-database']['fields']['max_allowed_packet'] = array(
            'label' => __( 'Max allowed packet size' ),
            'value' => self::get_mysql_var( 'max_allowed_packet' ),
        );

        $info['wp-database']['fields']['max_connections'] = array(
            'label' => __( 'Max connections number' ),
            'value' => self::get_mysql_var( 'max_connections' ),
        );

        // List must use plugins if there are any.         $mu_plugins = get_mu_plugins();

        foreach ( $mu_plugins as $plugin_path => $plugin ) {
            $plugin_version = $plugin['Version'];
            $plugin_author  = $plugin['Author'];

            $plugin_version_string       = __( 'No version or author information is available.' );
            $plugin_version_string_debug = 'author: (undefined), version: (undefined)';

            if ( ! empty( $plugin_version ) && ! empty( $plugin_author ) ) {
                /* translators: 1: Plugin version number. 2: Plugin author name. */
                $plugin_version_string       = sprintf( __( 'Version %1$s by %2$s' )$plugin_version$plugin_author );
                
Home | Imprint | This part of the site doesn't use cookies.