Changeset 6496 for trunk/src/includes/admin/tools.php
- Timestamp:
- 06/08/2017 01:37:58 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/tools.php
r6438 r6496 171 171 ) ); 172 172 173 // Sync all BuddyPress group forum relationships174 bbp_register_repair_tool( array(175 'id' => 'bbp-group-forums',176 'type' => 'repair',177 'description' => __( 'Repair BuddyPress Group Forum relationships', 'bbpress' ),178 'callback' => 'bbp_admin_repair_group_forum_relationship',179 'priority' => 35,180 'overhead' => 'low',181 'components' => array( bbp_get_forum_post_type() )182 ) );183 184 173 // Update closed topic counts 185 174 bbp_register_repair_tool( array( … … 188 177 'description' => __( 'Repair closed topics', 'bbpress' ), 189 178 'callback' => 'bbp_admin_repair_closed_topics', 190 'priority' => 40,179 'priority' => 35, 191 180 'overhead' => 'medium', 192 181 'components' => array( bbp_get_topic_post_type() ) … … 199 188 'description' => __( 'Recount topics in each forum', 'bbpress' ), 200 189 'callback' => 'bbp_admin_repair_forum_topic_count', 201 'priority' => 4 5,190 'priority' => 40, 202 191 'overhead' => 'medium', 203 192 'components' => array( bbp_get_forum_post_type(), bbp_get_topic_post_type() ) … … 210 199 'description' => __( 'Recount topics in each topic-tag', 'bbpress' ), 211 200 'callback' => 'bbp_admin_repair_topic_tag_count', 212 'priority' => 50,201 'priority' => 45, 213 202 'overhead' => 'medium', 214 203 'components' => array( bbp_get_topic_post_type(), bbp_get_topic_tag_tax_id() ) … … 221 210 'description' => __( 'Recount replies in each forum', 'bbpress' ), 222 211 'callback' => 'bbp_admin_repair_forum_reply_count', 223 'priority' => 5 5,212 'priority' => 50, 224 213 'overhead' => 'high', 225 214 'components' => array( bbp_get_forum_post_type(), bbp_get_reply_post_type() ) … … 232 221 'description' => __( 'Recount replies in each topic', 'bbpress' ), 233 222 'callback' => 'bbp_admin_repair_topic_reply_count', 223 'priority' => 55, 224 'overhead' => 'high', 225 'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() ) 226 ) ); 227 228 // Count topic engagements 229 bbp_register_repair_tool( array( 230 'id' => 'bbp-topic-engagements', 231 'type' => 'repair', 232 'description' => __( 'Recount engagements in each topic', 'bbpress' ), 233 'callback' => 'bbp_admin_repair_topic_voice_count', 234 234 'priority' => 60, 235 'overhead' => 'high',236 'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )237 ) );238 239 // Count topic voices240 bbp_register_repair_tool( array(241 'id' => 'bbp-topic-voices',242 'type' => 'repair',243 'description' => __( 'Recount voices in each topic', 'bbpress' ),244 'callback' => 'bbp_admin_repair_topic_voice_count',245 'priority' => 65,246 235 'overhead' => 'high', 247 236 'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() ) … … 254 243 'description' => __( 'Recount pending, spammed, and trashed replies in each topic', 'bbpress' ), 255 244 'callback' => 'bbp_admin_repair_topic_hidden_reply_count', 256 'priority' => 70,245 'priority' => 65, 257 246 'overhead' => 'high', 258 247 'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() ) … … 265 254 'description' => __( 'Recount topics for each user', 'bbpress' ), 266 255 'callback' => 'bbp_admin_repair_user_topic_count', 267 'priority' => 7 5,256 'priority' => 70, 268 257 'overhead' => 'medium', 269 258 'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() ) … … 276 265 'description' => __( 'Recount replies for each user', 'bbpress' ), 277 266 'callback' => 'bbp_admin_repair_user_reply_count', 278 'priority' => 80,267 'priority' => 75, 279 268 'overhead' => 'medium', 280 269 'components' => array( bbp_get_reply_post_type(), bbp_get_user_rewrite_id() ) … … 287 276 'description' => __( 'Remove unpublished topics from user favorites', 'bbpress' ), 288 277 'callback' => 'bbp_admin_repair_user_favorites', 289 'priority' => 8 5,278 'priority' => 80, 290 279 'overhead' => 'medium', 291 280 'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() ) … … 298 287 'description' => __( 'Remove unpublished topics from user subscriptions', 'bbpress' ), 299 288 'callback' => 'bbp_admin_repair_user_topic_subscriptions', 300 'priority' => 90,289 'priority' => 85, 301 290 'overhead' => 'medium', 302 291 'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() ) … … 309 298 'description' => __( 'Remove unpublished forums from user subscriptions', 'bbpress' ), 310 299 'callback' => 'bbp_admin_repair_user_forum_subscriptions', 311 'priority' => 9 5,300 'priority' => 90, 312 301 'overhead' => 'medium', 313 302 'components' => array( bbp_get_forum_post_type(), bbp_get_user_rewrite_id() ) … … 320 309 'description' => __( 'Remap existing users to default forum roles', 'bbpress' ), 321 310 'callback' => 'bbp_admin_repair_user_roles', 322 'priority' => 100,311 'priority' => 95, 323 312 'overhead' => 'low', 324 313 'components' => array( bbp_get_user_rewrite_id() ) … … 331 320 'description' => __( 'Upgrade user favorites', 'bbpress' ), 332 321 'callback' => 'bbp_admin_upgrade_user_favorites', 333 'priority' => 10 5,322 'priority' => 100, 334 323 'overhead' => 'high', 335 324 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_favorites_rewrite_id() ) … … 342 331 'description' => __( 'Upgrade user topic subscriptions', 'bbpress' ), 343 332 'callback' => 'bbp_admin_upgrade_user_topic_subscriptions', 344 'priority' => 1 10,333 'priority' => 105, 345 334 'overhead' => 'high', 346 335 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_subscriptions_rewrite_id() ) … … 353 342 'description' => __( 'Upgrade user forum subscriptions', 'bbpress' ), 354 343 'callback' => 'bbp_admin_upgrade_user_forum_subscriptions', 355 'priority' => 11 5,344 'priority' => 110, 356 345 'overhead' => 'high', 357 346 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_subscriptions_rewrite_id() ) … … 364 353 'description' => __( 'Upgrade topic engagements', 'bbpress' ), 365 354 'callback' => 'bbp_admin_upgrade_user_engagements', 355 'priority' => 115, 356 'overhead' => 'medium', 357 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_engagements_rewrite_id() ) 358 ) ); 359 360 // Sync all BuddyPress group forum relationships 361 bbp_register_repair_tool( array( 362 'id' => 'bbp-group-forums', 363 'type' => 'upgrade', 364 'description' => __( 'Upgrade BuddyPress Group Forum relationships', 'bbpress' ), 365 'callback' => 'bbp_admin_upgrade_group_forum_relationship', 366 366 'priority' => 120, 367 'overhead' => ' medium',368 'components' => array( bbp_get_ user_rewrite_id(), bbp_get_user_engagements_rewrite_id() )367 'overhead' => 'low', 368 'components' => array( bbp_get_forum_post_type() ) 369 369 ) ); 370 370
Note: See TracChangeset
for help on using the changeset viewer.