Changeset 6607 for trunk/src/includes/topics/functions.php
- Timestamp:
- 07/02/2017 04:39:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/topics/functions.php
r6585 r6607 2882 2882 // Topic is being spammed, so its replies are trashed 2883 2883 $replies = new WP_Query( array( 2884 'suppress_filters' => true, 2885 'post_type' => bbp_get_reply_post_type(), 2886 'post_status' => bbp_get_public_status_id(), 2887 'post_parent' => $topic_id, 2888 'posts_per_page' => -1, 2889 'nopaging' => true, 2890 'no_found_rows' => true, 2891 'fields' => 'id=>parent' 2884 'fields' => 'id=>parent', 2885 'post_type' => bbp_get_reply_post_type(), 2886 'post_status' => bbp_get_public_status_id(), 2887 'post_parent' => $topic_id, 2888 'posts_per_page' => -1, 2889 2890 // Performance 2891 'nopaging' => true, 2892 'suppress_filters' => true, 2893 'update_post_term_cache' => false, 2894 'update_post_meta_cache' => false, 2895 'ignore_sticky_posts' => true, 2896 'no_found_rows' => true 2892 2897 ) ); 2893 2898 … … 2915 2920 /** 2916 2921 * Store the tags to a topic in post meta before it's marked as spam so they 2917 * can be retr eived and unspammed later.2922 * can be retrieved and unspammed later. 2918 2923 * 2919 2924 * Usually you'll want to do this before the topic itself is marked as spam. … … 3273 3278 // Note that we get all post statuses here 3274 3279 $replies = new WP_Query( array( 3275 'suppress_filters' => true, 3276 'post_type' => bbp_get_reply_post_type(), 3277 'post_status' => array_keys( get_post_stati() ), 3278 'post_parent' => $topic_id, 3279 'posts_per_page' => -1, 3280 'nopaging' => true, 3281 'no_found_rows' => true, 3282 'fields' => 'id=>parent' 3280 'fields' => 'id=>parent', 3281 'post_type' => bbp_get_reply_post_type(), 3282 'post_status' => array_keys( get_post_stati() ), 3283 'post_parent' => $topic_id, 3284 'posts_per_page' => -1, 3285 3286 // Performance 3287 'nopaging' => true, 3288 'suppress_filters' => true, 3289 'update_post_term_cache' => false, 3290 'update_post_meta_cache' => false, 3291 'ignore_sticky_posts' => true, 3292 'no_found_rows' => true 3283 3293 ) ); 3284 3294 … … 3329 3339 // Topic is being trashed, so its replies are trashed too 3330 3340 $replies = new WP_Query( array( 3331 'suppress_filters' => true, 3332 'post_type' => bbp_get_reply_post_type(), 3333 'post_status' => bbp_get_public_status_id(), 3334 'post_parent' => $topic_id, 3335 'posts_per_page' => -1, 3336 'nopaging' => true, 3337 'no_found_rows' => true, 3338 'fields' => 'id=>parent' 3341 'fields' => 'id=>parent', 3342 'post_type' => bbp_get_reply_post_type(), 3343 'post_status' => bbp_get_public_status_id(), 3344 'post_parent' => $topic_id, 3345 'posts_per_page' => -1, 3346 3347 // Performance 3348 'nopaging' => true, 3349 'suppress_filters' => true, 3350 'update_post_term_cache' => false, 3351 'update_post_meta_cache' => false, 3352 'ignore_sticky_posts' => true, 3353 'no_found_rows' => true 3339 3354 ) ); 3340 3355
Note: See TracChangeset
for help on using the changeset viewer.