Make WordPress Core

Changeset 15181


Ignore:
Timestamp:
06/09/2010 08:33:16 PM (13 years ago)
Author:
ryan
Message:

Sort only when importers exist. Props aaroncampbell. fixes #13806

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import.php

    r15135 r15181  
    8484}
    8585
    86 uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
    87 
    8886if (empty ($importers)) {
    8987    echo '<p>'.__('No importers are available.').'</p>'; // TODO: make more helpful
    9088} else {
     89    uasort($importers, create_function('$a, $b', 'return strcmp($a[0], $b[0]);'));
    9190?>
    9291<table class="widefat" cellspacing="0">
     
    141140include ('admin-footer.php');
    142141?>
    143 
Note: See TracChangeset for help on using the changeset viewer.