*** wp-includes/template-functions-general.php-dist	Thu Jul 22 12:23:34 2004
--- wp-includes/template-functions-general.php	Thu Jul 22 12:29:25 2004
***************
*** 302,307 ****
--- 302,323 ----
                      echo get_archives_link($url, $text, $format, $before, $after);
                  }
              }
+ 		}
+     } elseif ('recentlymod' == $type) {
+         $arcresults = $wpdb->get_results("SELECT ID, post_modified, post_title FROM $tableposts WHERE post_modified < '$now' AND post_status = 'publish' ORDER BY post_modified DESC" . $limit);
+         if ($arcresults) {
+             foreach ($arcresults as $arcresult) {
+                 if ($arcresult->post_modified != '0000-00-00 00:00:00') {
+                     $url  = get_permalink($arcresult->ID);
+                     $arc_title = stripslashes($arcresult->post_title);
+                     if ($arc_title) {
+                         $text = strip_tags($arc_title);
+                     } else {
+                         $text = $arcresult->ID;
+                     }
+                     echo get_archives_link($url, $text, $format, $before, $after);
+                 }
+             }
          }
      }
  }
***************
*** 565,568 ****
      echo $the_weekday_date;
  }
  
! ?>
\ No newline at end of file
--- 581,584 ----
      echo $the_weekday_date;
  }
  
! ?>
