[wp-trac] [WordPress Trac] #18356: get_bookmarks() indefinitely caches randomly ordered results

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 11 23:49:58 UTC 2011


#18356: get_bookmarks() indefinitely caches randomly ordered results
-------------------------------------+------------------------------
 Reporter:  prettyboymp              |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by prettyboymp):

 Replying to [comment:3 SergeyBiryukov]:
 > {{{
 > $orderby == 'rand()'
 > }}}
 > Shouldn't it be `$orderby == 'rand'` (without brackets)?
 It's 'rand()' at that point because the $orderby variable is reused when
 building the query in the case statement.

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


More information about the wp-trac mailing list