Changeset 6219
- Timestamp:
- 01/12/2017 08:46:10 AM (8 years ago)
- Location:
- trunk/src/includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/functions.php
r6196 r6219 1582 1582 'update_post_meta_cache' => false, 1583 1583 'ignore_sticky_posts' => true, 1584 'no_found_rows' => true 1584 1585 ) ); 1585 1586 $child_id = array_shift( $query->posts ); … … 1632 1633 'update_post_meta_cache' => false, 1633 1634 'ignore_sticky_posts' => true, 1635 'no_found_rows' => true 1634 1636 ) ); 1635 1637 $child_count = $query->post_count; … … 1682 1684 'update_post_meta_cache' => false, 1683 1685 'ignore_sticky_posts' => true, 1686 'no_found_rows' => true 1684 1687 ) ); 1685 1688 $child_ids = ! empty( $query->posts ) ? $query->posts : array(); -
trunk/src/includes/forums/functions.php
r6196 r6219 1025 1025 'suppress_filters' => true, 1026 1026 'nopaging' => true, 1027 'no_found_rows' => true, 1027 1028 'post_type' => bbp_get_forum_post_type(), 1028 1029 'post_status' => bbp_get_private_status_id(), … … 1032 1033 'suppress_filters' => true, 1033 1034 'nopaging' => true, 1035 'no_found_rows' => true, 1034 1036 'post_type' => bbp_get_forum_post_type(), 1035 1037 'post_status' => bbp_get_hidden_status_id(), … … 1828 1830 'update_post_meta_cache' => false, 1829 1831 'ignore_sticky_posts' => true, 1832 'no_found_rows' => true 1830 1833 ) ); 1831 1834 $topic_count = $query->post_count; … … 1890 1893 'update_post_meta_cache' => false, 1891 1894 'ignore_sticky_posts' => true, 1895 'no_found_rows' => true 1892 1896 ) ); 1893 1897 $reply_count = ! empty( $query->posts ) ? count( $query->posts ) : 0; … … 2329 2333 'update_post_meta_cache' => false, 2330 2334 'ignore_sticky_posts' => true, 2335 'no_found_rows' => true 2331 2336 ) ); 2332 2337 $reply_id = array_shift( $query->posts ); … … 2505 2510 'posts_per_page' => -1, 2506 2511 'nopaging' => true, 2512 'no_found_rows' => true, 2507 2513 'fields' => 'id=>parent' 2508 2514 ) ); … … 2562 2568 'posts_per_page' => -1, 2563 2569 'nopaging' => true, 2570 'no_found_rows' => true, 2564 2571 'fields' => 'id=>parent' 2565 2572 ) ); -
trunk/src/includes/topics/functions.php
r6191 r6219 3274 3274 'posts_per_page' => -1, 3275 3275 'nopaging' => true, 3276 'no_found_rows' => true, 3276 3277 'fields' => 'id=>parent' 3277 3278 ) ); … … 3711 3712 'posts_per_page' => -1, 3712 3713 'nopaging' => true, 3714 'no_found_rows' => true, 3713 3715 'fields' => 'id=>parent' 3714 3716 ) ); … … 3772 3774 'posts_per_page' => -1, 3773 3775 'nopaging' => true, 3776 'no_found_rows' => true, 3774 3777 'fields' => 'id=>parent' 3775 3778 ) ); -
trunk/src/includes/users/functions.php
r6218 r6219 323 323 $user_id = bbp_get_user_id( $user_id ); 324 324 $favorites = new WP_Query( array( 325 'fields' => 'ids', 326 'post_type' => bbp_get_topic_post_type(), 327 'nopaging' => true, 328 'meta_query' => array( array( 325 'fields' => 'ids', 326 'post_type' => bbp_get_topic_post_type(), 327 'nopaging' => true, 328 'no_found_rows' => true, 329 'meta_query' => array( array( 329 330 'key' => '_bbp_favorite', 330 331 'value' => $user_id, … … 677 678 $user_id = bbp_get_user_id( $user_id ); 678 679 $subscriptions = new WP_Query( array( 679 'fields' => 'ids', 680 'post_type' => bbp_get_forum_post_type(), 681 'nopaging' => true, 682 'meta_query' => array( array( 680 'fields' => 'ids', 681 'post_type' => bbp_get_forum_post_type(), 682 'nopaging' => true, 683 'no_found_rows' => true, 684 'meta_query' => array( array( 683 685 'key' => '_bbp_subscription', 684 686 'value' => $user_id, … … 705 707 $user_id = bbp_get_user_id( $user_id ); 706 708 $subscriptions = new WP_Query( array( 707 'fields' => 'ids', 708 'post_type' => bbp_get_topic_post_type(), 709 'nopaging' => true, 709 'fields' => 'ids', 710 'post_type' => bbp_get_topic_post_type(), 711 'nopaging' => true, 712 'no_found_rows' => true, 710 713 'meta_query' => array( array( 711 714 'key' => '_bbp_subscription',
Note: See TracChangeset
for help on using the changeset viewer.