Changeset 5651
- Timestamp:
- 03/23/2015 10:55:27 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/replies/functions.php
r5637 r5651 2358 2358 } 2359 2359 2360 // Update the replies' 'menp_order' with the reply position 2360 // Toggle revisions off as we are not altering content 2361 if ( post_type_supports( bbp_get_reply_post_type(), 'revisions' ) ) { 2362 $revisions_removed = true; 2363 remove_post_type_support( bbp_get_reply_post_type(), 'revisions' ); 2364 } 2365 2366 // Update the replies' 'menu_order' with the reply position 2361 2367 wp_update_post( array( 2362 2368 'ID' => $reply_id, 2363 2369 'menu_order' => $reply_position 2364 2370 ) ); 2371 2372 // Toggle revisions back on 2373 if ( true === $revisions_removed ) { 2374 $revisions_removed = false; 2375 add_post_type_support( bbp_get_reply_post_type(), 'revisions' ); 2376 } 2365 2377 2366 2378 return (int) $reply_position;
Note: See TracChangeset
for help on using the changeset viewer.