[wp-trac] [WordPress Trac] #10667: Integration of Search API into core

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 16 16:39:47 UTC 2010


#10667: Integration of Search API into core
----------------------------+-----------------------------------------------
 Reporter:  jshreve         |       Owner:             
     Type:  task (blessed)  |      Status:  new        
 Priority:  normal          |   Milestone:  3.0        
Component:  General         |     Version:  2.9        
 Severity:  normal          |    Keywords:  needs-patch
----------------------------+-----------------------------------------------

Comment(by andy):

 Twenty Ten uses "Older posts" and "Newer posts" labels for pagination
 links in search.php. The labels are only appropriate for chronological
 lists of posts and they are not filtered. A search plugin that supplies
 results in non-chronological order has easy way to correct the labels.

 There should be $label filters in get_(next|previous)_posts_link(). Also,
 "Older posts" and "Newer posts" are unfortunate pagination labels for
 search.php. "Next page" or, better, "Next results" makes more sense here.

 The Next and Previous links should be reversed on search result pages.
 It's going to become more common to see search results sorted other than
 reverse-chronological, and to include things other than posts.

 Current (okay for browsing chronological archives):

 ```<-- Older ..... Newer -->```

 Better for search results in general:

 ```<-- Previous ... Next -->```

 Eventually I'd like to move all pagination into an abstract and filterable
 template tag. For now, let's set a better example for search results and
 apply filters to the the labels.

 Attaching a patch, search-pagination-1.diff:

 * Reverses direction of search pagination links

 * Changes labels of same

 * Adds filters for pagination link labels

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10667#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list