WordPress.org

Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #18836


Ignore:
Timestamp:
10/01/11 17:43:47 (3 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18836

    • Property Cc sirzooro added
  • Ticket #18836 – Description

    initial v3  
    99So, this would require to do an extra query to calculate the total. It should still be faster than the current method. 
    1010 
    11 If we want to get all the posts, we can get them in any order and then randomise their order using shuffle() in PHP. 
     11If we want to get more than one post, we can get them in any order and then call shuffle() on the resulting array.