Changeset 4924
- Timestamp:
- 05/19/2013 06:04:15 AM (13 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 edited
-
forums/template-tags.php (modified) (1 diff)
-
replies/template-tags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/template-tags.php
r4896 r4924 60 60 // Parse arguments with default forum query for most circumstances 61 61 $bbp_f = bbp_parse_args( $args, array( 62 'post_type' => bbp_get_forum_post_type(), 63 'post_parent' => bbp_is_forum_archive() ? 0 : bbp_get_forum_id() , 64 'post_status' => bbp_get_public_status_id(), 65 'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ), 66 'orderby' => 'menu_order', 67 'order' => 'ASC' 62 'post_type' => bbp_get_forum_post_type(), 63 'post_parent' => bbp_is_forum_archive() ? 0 : bbp_get_forum_id(), 64 'post_status' => bbp_get_public_status_id(), 65 'posts_per_page' => get_option( '_bbp_forums_per_page', 50 ), 66 'ignore_sticky_posts' => true, 67 'orderby' => 'menu_order', 68 'order' => 'ASC' 68 69 ), 'has_forums' ); 69 70 -
trunk/includes/replies/template-tags.php
r4896 r4924 75 75 // Default query args 76 76 $default = array( 77 'post_type' => $default_post_type, // Only replies 78 'post_parent' => $default_post_parent, // Of this topic 79 'posts_per_page' => bbp_get_replies_per_page(), // This many 80 'paged' => bbp_get_paged(), // On this page 81 'orderby' => 'date', // Sorted by date 82 'order' => 'ASC', // Oldest to newest 83 's' => $default_reply_search, // Maybe search 77 'post_type' => $default_post_type, // Only replies 78 'post_parent' => $default_post_parent, // Of this topic 79 'posts_per_page' => bbp_get_replies_per_page(), // This many 80 'paged' => bbp_get_paged(), // On this page 81 'orderby' => 'date', // Sorted by date 82 'order' => 'ASC', // Oldest to newest 83 'ignore_sticky_posts' => true, // Stickies not supported 84 's' => $default_reply_search, // Maybe search 84 85 ); 85 86
Note: See TracChangeset
for help on using the changeset viewer.