Changeset 6798 for trunk/wp-includes/bookmark.php
- Timestamp:
- 02/12/2008 08:01:32 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/bookmark.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/bookmark.php
r6726 r6798 112 112 'category_name' => '', 'hide_invisible' => 1, 113 113 'show_updated' => 0, 'include' => '', 114 'exclude' => '' 114 'exclude' => '', 'search' => '' 115 115 ); 116 116 … … 161 161 } 162 162 163 if ( ! empty($search) ) { 164 $search = like_escape($search); 165 $search = " AND ( (link_url LIKE '%$search%') OR (link_name LIKE '%$search%') OR (link_description LIKE '%$search%') ) "; 166 } 167 163 168 $category_query = ''; 164 169 $join = ''; … … 208 213 209 214 $query = "SELECT * $length $recently_updated_test $get_updated FROM $wpdb->links $join WHERE 1=1 $visible $category_query"; 210 $query .= " $exclusions $inclusions ";215 $query .= " $exclusions $inclusions $search"; 211 216 $query .= " ORDER BY $orderby $order"; 212 217 if ($limit != -1)
Note: See TracChangeset
for help on using the changeset viewer.