Make WordPress Core


Ignore:
Timestamp:
01/28/2008 05:21:14 PM (17 years ago)
Author:
ryan
Message:

Tag searching from jhodgdon. see #5684

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-tags.php

    r6660 r6670  
    8787    <h2><?php _e('Tags') ?> </h2>
    8888<?php endif; ?>
     89
     90<form name="searchform" id="searchform" action="" method="get">
     91    <input type="text" name="s" id="s" value="<?php echo attribute_escape( stripslashes( $_GET[ 's' ]) ); ?>" size="17" />
     92    <input type="submit" id="post-query-submit" value="<?php _e('Search Tags'); ?>" class="button" />
     93</form>
     94<br style="clear:both;" />
     95
     96
    8997<table class="widefat">
    9098    <thead>
     
    102110    $tagsperpage = 20;
    103111}
    104 $count = tag_rows( $pagenum, $tagsperpage );
     112$searchterms = trim( $_GET['s'] );
     113
     114$count = tag_rows( $pagenum, $tagsperpage, $searchterms );
    105115?>
    106116    </tbody>
Note: See TracChangeset for help on using the changeset viewer.