Making WordPress.org

Changeset 13172


Ignore:
Timestamp:
02/05/2024 10:04:00 PM (8 months ago)
Author:
coffee2code
Message:

Photo Directory, Posts: Chose random photo as next photo in the queue to moderate by default.

See #6524, #6741.
Effectively reverts parts of [12549].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/posts.php

    r12989 r13172  
    347347     *
    348348     * @param string $orderby The field to order posts by when determining the
    349      *                        next post in queue. Default 'date'.
     349     *                        next post in queue, e.g. 'date'. Default 'rand'.
    350350     * @param string $order   The sort order used when determining the next post
    351351     *                        in queue. Either 'ASC' or 'DESC'. Default 'ASC'.
     
    353353     *                       available for the user to moderate.
    354354     */
    355     public static function get_next_post_in_queue( $orderby = 'date', $order = 'ASC' ) {
     355    public static function get_next_post_in_queue( $orderby = 'rand', $order = 'ASC' ) {
    356356        $next = false;
    357357
Note: See TracChangeset for help on using the changeset viewer.