WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/19/2010 05:31:07 AM (11 years ago)
Author:
nacin
Message:

Internal linking cleanups. Fix combination of pagination and searching. Add a margin of error (ha, get it?) to triggering the river. props koopersmith, see #11420.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/internal-linking.php

    r16459 r16479  
    9595        </div>
    9696        <div id="search-results" class="query-results">
    97             <ul>
    98                 <li class="loading-results unselectable"><em><?php _e( 'Loading...' ); ?></em></li>
    99             </ul>
     97            <ul></ul>
    10098            <div class="river-waiting">
    10199                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
    102100            </div>
    103101        </div>
    104         <?php $most_recent = wp_link_query(); ?>
    105102        <div id="most-recent-results" class="query-results">
    106             <ul>
    107                 <li class="unselectable"><em><?php _e( 'No search term specified. Showing recent items.' ); ?></em></li>
    108                 <?php
    109                 $alt = true;
    110                 foreach ( $most_recent as $item ) : ?>
    111                     <li<?php if ( $alt ) echo ' class="alternate"'; ?>>
    112                         <input type="hidden" class="item-permalink" value="<?php echo esc_url( $item['permalink'] ); ?>" />
    113                         <span class="item-title"><?php echo $item['title']; ?></span>
    114                         <span class="item-info"><?php echo esc_html( $item['info'] ); ?></span>
    115                     </li>
    116                 <?php
    117                 $alt = ! $alt;
    118                 endforeach; ?>
    119             </ul>
     103            <div class="query-notice"><em><?php _e( 'No search term specified. Showing recent items.' ); ?></em></div>
     104            <ul></ul>
    120105            <div class="river-waiting">
    121106                <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" />
Note: See TracChangeset for help on using the changeset viewer.