Changeset 5395
- Timestamp:
- 06/12/2014 09:38:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/template.php
r5387 r5395 2514 2514 $topic_id = bbp_get_reply_topic_id( $reply_id ); 2515 2515 2516 // Setup default dropdown arguments 2517 $r = bbp_parse_args( array( 2518 'show_none' => sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) ), 2519 'select_id' => 'bbp_reply_to', 2520 'exclude' => array(), 2521 'selected' => $reply_to, 2522 'post_parent' => $topic_id, 2516 // Get the replies 2517 $posts = get_posts( array( 2523 2518 'post_type' => bbp_get_reply_post_type(), 2524 2519 'post_status' => bbp_get_public_status_id(), 2525 'max_depth' => bbp_thread_replies_depth(), 2526 'page' => 1, 2527 'per_page' => -1, 2520 'post_parent' => $topic_id, 2521 'numberposts' => -1, 2528 2522 'orderby' => 'menu_order', 2529 2523 'order' => 'ASC', 2530 'walker' => new BBP_Walker_Reply_Dropdown()2531 ), 'reply_to_drodown' );2532 2533 // Get the replies2534 $posts = get_posts( array(2535 'post_type' => $r['post_type'],2536 'post_status' => $r['post_status'],2537 'post_parent' => $r['post_parent'],2538 'exclude' => $r['exclude'],2539 'numberposts' => $r['per_page'],2540 'orderby' => $r['orderby'],2541 'order' => $r['order'],2542 2524 ) ); 2543 2525 … … 2559 2541 // Get the dropdown and return it 2560 2542 $retval = bbp_get_dropdown( array( 2561 'show_none' => $r['show_none'],2562 'select_id' => $r['select_id'],2563 'exclude' => $r ['exclude'],2564 'selected' => $r ['selected'],2565 'post_parent' => $ r['post_parent'],2566 'post_type' => $r['post_type'],2567 'max_depth' => $r['max_depth'],2568 'page' => $r['page'],2569 'per_page' => $r['per_page'],2570 'walker' => $r['walker'],2543 'show_none' => sprintf( esc_attr__( '%1$s - %2$s', 'bbpress' ), $topic_id, bbp_get_topic_title( $topic_id ) ), 2544 'select_id' => 'bbp_reply_to', 2545 'exclude' => $reply_id, 2546 'selected' => $reply_to, 2547 'post_parent' => $topic_id, 2548 'post_type' => bbp_get_reply_post_type(), 2549 'max_depth' => bbp_thread_replies_depth(), 2550 'page' => 1, 2551 'per_page' => -1, 2552 'walker' => new BBP_Walker_Reply_Dropdown(), 2571 2553 'posts' => $posts 2572 2554 ) ); 2573 2555 2574 2556 // Filter and return 2575 return apply_filters( 'bbp_get_reply_to_dropdown', $retval, $r , $reply_id, $reply_to, $topic_id );2557 return apply_filters( 'bbp_get_reply_to_dropdown', $retval, $reply_id, $reply_to, $topic_id ); 2576 2558 } 2577 2559
Note: See TracChangeset
for help on using the changeset viewer.