Markup fixes for plugins screen. Props johnbillion. fixes #14007 for 3.1

git-svn-id: http://svn.automattic.com/wordpress/trunk@15318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-06-24 15:10:23 +00:00
parent cf17e68308
commit 35afb0b032
1 changed files with 5 additions and 6 deletions

View File

@ -555,8 +555,9 @@ function print_plugins_table($plugins, $context = '') {
$description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>'; $description = '<p><strong>' . $dropins[ $plugin_file ][0] . '</strong></p>';
} else { } else {
$is_active = false; $is_active = false;
$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>'; $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>';
} }
if ( $plugin_data['Description'] )
$description .= '<p>' . $plugin_data['Description'] . '</p>'; $description .= '<p>' . $plugin_data['Description'] . '</p>';
} else { } else {
$is_active_for_network = is_plugin_active_for_network($plugin_file); $is_active_for_network = is_plugin_active_for_network($plugin_file);
@ -736,9 +737,9 @@ unset( $status_links );
<?php <?php
if ( 'mustuse' == $status ) if ( 'mustuse' == $status )
echo '<div class="clear"><p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>'; echo '<div class="clear"></div><p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>';
elseif ( 'dropins' == $status ) elseif ( 'dropins' == $status )
echo '<div class="clear"><p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>'; 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>';
if ( !empty( $plugins ) && ( ! in_array( $status, array( 'mustuse', 'dropins' ) ) || $page_links ) ) : if ( !empty( $plugins ) && ( ! in_array( $status, array( 'mustuse', 'dropins' ) ) || $page_links ) ) :
?> ?>
@ -769,8 +770,6 @@ if ( $page_links )
print_plugin_actions($status, "action2"); print_plugin_actions($status, "action2");
?> ?>
</div> </div>
<?php } elseif ( ! empty( $all_plugins ) ) { ?>
<p><?php __( 'No plugins found.' ); ?></p>
<?php } ?> <?php } ?>
</form> </form>