Changeset 13206
- Timestamp:
- 02/12/2024 10:18:32 PM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/photo-directory/inc/posts.php
r13172 r13206 350 350 * @param string $order The sort order used when determining the next post 351 351 * in queue. Either 'ASC' or 'DESC'. Default 'ASC'. 352 * @param int[] $exclude Array of post IDs to exclude from being selected 353 * next. Default empty array. 352 354 * @return WP_Post|false The next post, or false if there are no other posts 353 355 * available for the user to moderate. 354 356 */ 355 public static function get_next_post_in_queue( $orderby = 'rand', $order = 'ASC' ) {357 public static function get_next_post_in_queue( $orderby = 'rand', $order = 'ASC', $exclude = [] ) { 356 358 $next = false; 357 359 … … 367 369 'order' => $order, 368 370 'orderby' => $orderby, 371 'post__not_in' => $exclude, 369 372 'posts_per_page' => 1, 370 373 'post_status' => 'pending',
Note: See TracChangeset
for help on using the changeset viewer.