Changeset 7006 for trunk/src/includes/admin/tools/repair.php
- Timestamp:
- 11/24/2019 01:38:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/tools/repair.php
r6934 r7006 426 426 427 427 if ( is_wp_error( $bbp_db->query( $sql_delete ) ) ) { 428 428 return array( 1, sprintf( $statement, $result ) ); 429 429 } 430 430 … … 468 468 469 469 if ( is_wp_error( $bbp_db->query( $sql_delete ) ) ) { 470 470 return array( 1, sprintf( $statement, $result ) ); 471 471 } 472 472 … … 992 992 } 993 993 994 995 994 // Loop through forums 995 foreach ( $forums as $forum_id ) { 996 996 if ( ! bbp_is_forum_category( $forum_id ) ) { 997 997 bbp_update_forum( array( 'forum_id' => $forum_id ) ); … … 1107 1107 1108 1108 // If we don't have a postmeta _bbp_status value 1109 if ( empty( $topic_status ) ) {1109 if ( empty( $topic_status ) ) { 1110 1110 update_post_meta( $closed_topic, '_bbp_status', 'publish' ); 1111 1111 ++$changed; // Keep a count to display at the end
Note: See TracChangeset
for help on using the changeset viewer.