mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Bail if no themes found. see #8652
git-svn-id: http://svn.automattic.com/wordpress/trunk@10675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c402dd266
commit
cc26b0347f
@ -381,10 +381,17 @@ function display_themes($themes, $page = 1, $totalpages = 1) {
|
|||||||
echo "\t\t<div class='tablenav-pages'>$page_links</div>";
|
echo "\t\t<div class='tablenav-pages'>$page_links</div>";
|
||||||
?> <br class="clear" />
|
?> <br class="clear" />
|
||||||
</div>
|
</div>
|
||||||
|
<?php
|
||||||
|
if ( empty($themes) ) {
|
||||||
|
_e('No themes found');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
?>
|
||||||
<table id="availablethemes" cellspacing="0" cellpadding="0">
|
<table id="availablethemes" cellspacing="0" cellpadding="0">
|
||||||
<?php
|
<?php
|
||||||
$in_column = 0;
|
$in_column = 0;
|
||||||
$rows = ceil(count($themes) / 3);
|
$rows = ceil(count($themes) / 3);
|
||||||
|
$table = array();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
for ( $row = 1; $row <= $rows; $row++ ) {
|
for ( $row = 1; $row <= $rows; $row++ ) {
|
||||||
for ( $col = 1; $col <= 3; $col++ ) {
|
for ( $col = 1; $col <= 3; $col++ ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user