WordPress.org

Make WordPress Core

Ticket #14007: 14007.patch

File 14007.patch, 2.2 KB (added by johnbillion, 5 years ago)
  • wp-admin/plugins.php

     
    555555                                $description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>'; 
    556556                        } else { 
    557557                                $is_active = false; 
    558                                 $description = '<strong>' . $dropins[ $plugin_file ][0] . ' <span class="attention">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>'; 
     558                                $description = '<p><strong>' . $dropins[ $plugin_file ][0] . ' <span class="attention">' . __('Inactive:') . '</span></strong> ' . sprintf( __( 'Requires <code>%s</code> in <code>wp-config.php</code>.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '</p>'; 
    559559                        } 
    560                         $description .= '<p>' . $plugin_data['Description'] . '</p>'; 
     560                        if ( $plugin_data['Description'] ) 
     561                                $description .= '<p>' . $plugin_data['Description'] . '</p>'; 
    561562                } else { 
    562563                        $is_active_for_network = is_plugin_active_for_network($plugin_file); 
    563564                        $is_active = $is_active_for_network || is_plugin_active( $plugin_file ); 
     
    736737 
    737738<?php 
    738739if ( 'mustuse' == $status ) 
    739         echo '<div class="clear"><p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>'; 
     740        echo '<div class="clear"></div><p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>'; 
    740741elseif ( 'dropins' == $status ) 
    741         echo '<div class="clear"><p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>'; 
     742        echo '<div class="clear"></div><p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>'; 
    742743 
    743744if ( !empty( $plugins ) && ( ! in_array( $status, array( 'mustuse', 'dropins' ) ) || $page_links ) ) : 
    744745?> 
     
    769770print_plugin_actions($status, "action2"); 
    770771?> 
    771772</div> 
    772 <?php } elseif ( ! empty( $all_plugins ) ) { ?> 
    773 <p><?php __( 'No plugins found.' ); ?></p> 
    774773<?php } ?> 
    775774</form> 
    776775