From 4ed0fb72d868c3e474b4d169f09bd397ab3ab470 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 24 Jun 2010 15:10:23 +0000 Subject: [PATCH] Markup fixes for plugins screen. Props johnbillion. fixes #14007 for 3.1 git-svn-id: https://develop.svn.wordpress.org/trunk@15318 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/plugins.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php index e83ca4c9d9..bed5d5f6df 100644 --- a/wp-admin/plugins.php +++ b/wp-admin/plugins.php @@ -555,9 +555,10 @@ function print_plugins_table($plugins, $context = '') { $description = '

' . $dropins[ $plugin_file ][0] . '

'; } else { $is_active = false; - $description = '' . $dropins[ $plugin_file ][0] . ' ' . __('Inactive:') . ' ' . sprintf( __( 'Requires %s in wp-config.php.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '

'; + $description = '

' . $dropins[ $plugin_file ][0] . ' ' . __('Inactive:') . ' ' . sprintf( __( 'Requires %s in wp-config.php.' ), "define('" . $dropins[ $plugin_file ][1] . "', true);" ) . '

'; } - $description .= '

' . $plugin_data['Description'] . '

'; + if ( $plugin_data['Description'] ) + $description .= '

' . $plugin_data['Description'] . '

'; } else { $is_active_for_network = is_plugin_active_for_network($plugin_file); $is_active = $is_active_for_network || is_plugin_active( $plugin_file ); @@ -736,9 +737,9 @@ unset( $status_links );

' . __( 'Files in the /wp-content/mu-plugins directory are executed automatically.' ) . '

'; + echo '

' . __( 'Files in the /wp-content/mu-plugins directory are executed automatically.' ) . '

'; elseif ( 'dropins' == $status ) - echo '

' . __( 'Drop-ins are advanced plugins in the /wp-content directory that replace WordPress functionality when present.' ) . '

'; + echo '

' . __( 'Drop-ins are advanced plugins in the /wp-content directory that replace WordPress functionality when present.' ) . '

'; if ( !empty( $plugins ) && ( ! in_array( $status, array( 'mustuse', 'dropins' ) ) || $page_links ) ) : ?> @@ -769,8 +770,6 @@ if ( $page_links ) print_plugin_actions($status, "action2"); ?>
- -