WordPress.org

Make WordPress Core

Changeset 10675


Ignore:
Timestamp:
03/01/09 19:38:42 (7 years ago)
Author:
ryan
Message:

Bail if no themes found. see #8652

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme-install.php

    r10674 r10675  
    382382    ?> <br class="clear" /> 
    383383</div> 
     384<?php 
     385    if ( empty($themes) ) { 
     386        _e('No themes found'); 
     387        return; 
     388    } 
     389?> 
    384390<table id="availablethemes" cellspacing="0" cellpadding="0"> 
    385391<?php 
    386392    $in_column = 0; 
    387393    $rows = ceil(count($themes) / 3); 
     394    $table = array(); 
    388395    $i = 0; 
    389396    for ( $row = 1; $row <= $rows; $row++ ) { 
Note: See TracChangeset for help on using the changeset viewer.