Make WordPress Core

Changeset 12306


Ignore:
Timestamp:
12/01/2009 07:35:21 PM (16 years ago)
Author:
ryan
Message:

Do recently updated test only if show_updated. Avoids slow query.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/bookmark.php

    r11245 r12306  
    219219    }
    220220
    221     if (get_option('links_recently_updated_time')) {
     221    if ( $show_updated && get_option('links_recently_updated_time') ) {
    222222        $recently_updated_test = ", IF (DATE_ADD(link_updated, INTERVAL " . get_option('links_recently_updated_time') . " MINUTE) >= NOW(), 1,0) as recently_updated ";
    223223    } else {
Note: See TracChangeset for help on using the changeset viewer.