Changeset 5960
- Timestamp:
- 12/11/2015 02:47:56 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/admin/tools.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/tools.php
r5951 r5960 2156 2156 <?php esc_html_e( 'Forum Activity', 'bbpress' ); ?><br /> 2157 2157 <?php esc_html_e( 'Forum User Roles', 'bbpress' ); ?><br /> 2158 <?php esc_html_e( 'Forum Moderators', 'bbpress' ); ?><br /> 2158 2159 <?php esc_html_e( 'Importer Helper Data', 'bbpress' ); ?><br /> 2159 2160 </td> … … 2254 2255 } 2255 2256 2257 /** Forum moderators ******************************************************/ 2258 2259 $statement = __( 'Deleting Forum Moderators… %s', 'bbpress' ); 2260 $sql_delete = "DELETE a,b,c FROM `{$bbp_db->terms}` AS a LEFT JOIN `{$bbp_db->term_taxonomy}` AS c ON a.term_id = c.term_id LEFT JOIN `{$bbp_db->term_relationships}` AS b ON b.term_taxonomy_id = c.term_taxonomy_id WHERE c.taxonomy = 'forum-mod';"; 2261 $result = is_wp_error( $bbp_db->query( $sql_delete ) ) ? $failed : $success; 2262 $messages[] = sprintf( $statement, $result ); 2263 2256 2264 /** Topic Tags ************************************************************/ 2257 2265
Note: See TracChangeset
for help on using the changeset viewer.