Changeset 4525
- Timestamp:
- 11/26/2012 05:46:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/forums/functions.php
r4524 r4525 2001 2001 ) ); 2002 2002 2003 // Forum is being trashed, so its topics a re trashed too2004 if ($topics = new WP_Query( array(2003 // Forum is being trashed, so its topics and replies are trashed too 2004 $topics = new WP_Query( array( 2005 2005 'suppress_filters' => true, 2006 2006 'post_type' => bbp_get_topic_post_type(), … … 2010 2010 'nopaging' => true, 2011 2011 'fields' => 'id=>parent' 2012 ) ) ) { 2012 ) ); 2013 2014 // Loop through and trash child topics. Topic replies will get trashed by 2015 // the bbp_trash_topic() action. 2016 if ( !empty( $topics->posts ) ) { 2013 2017 2014 2018 // Prevent debug notices … … 2029 2033 wp_reset_postdata(); 2030 2034 } 2035 2036 // Cleanup 2037 unset( $topics ); 2031 2038 } 2032 2039
Note: See TracChangeset
for help on using the changeset viewer.