WordPress.org

Make WordPress Core

Ticket #25769: 25769.diff

File 25769.diff, 1.1 KB (added by Ipstenu, 7 years ago)

Moved 'to get started...' so it only shows if you CAN import.

  • wp-admin/import.php

     
    5757<?php if ( ! empty( $_GET['invalid'] ) ) : ?>
    5858        <div class="error"><p><strong><?php _e('ERROR:')?></strong> <?php printf( __('The <strong>%s</strong> importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?></p></div>
    5959<?php endif; ?>
    60 <p><?php _e('If you have posts or comments in another system, WordPress can import those into this site. To get started, choose a system to import from below:'); ?></p>
    6160
    6261<?php
    6362
     
    7574if ( empty( $importers ) ) {
    7675        echo '<p>' . __('No importers are available.') . '</p>'; // TODO: make more helpful
    7776} else {
     77    echo '<p>' . __('If you have posts or comments in another system, WordPress can import those into this site. To get started, choose a system to import from below:') . '</p>';
    7878        uasort($importers, create_function('$a, $b', 'return strnatcasecmp($a[0], $b[0]);'));
    7979?>
    8080<table class="widefat importers" cellspacing="0">