Changeset 6923 for trunk/src/includes/admin/tools.php
- Timestamp:
- 11/09/2019 05:35:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/tools.php
r6897 r6923 241 241 ) ); 242 242 243 // Count non-published replies to each forum 244 bbp_register_repair_tool( array( 245 'id' => 'bbp-forum-hidden-replies', 246 'type' => 'repair', 247 'title' => esc_html__( 'Recount pending, spammed, and trashed replies in each forum', 'bbpress' ), 248 'description' => esc_html__( 'Run this if non-public replies display incorrectly in forums.', 'bbpress' ), 249 'callback' => 'bbp_admin_repair_forum_hidden_reply_count', 250 'priority' => 60, 251 'overhead' => 'high', 252 'components' => array( bbp_get_forum_post_type(), bbp_get_reply_post_type() ) 253 ) ); 254 243 255 // Count topic replies 244 256 bbp_register_repair_tool( array( … … 248 260 'description' => esc_html__( 'Run this if the number of topics in any topics are incorrect.', 'bbpress' ), 249 261 'callback' => 'bbp_admin_repair_topic_reply_count', 250 'priority' => 6 0,262 'priority' => 65, 251 263 'overhead' => 'high', 252 264 'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() ) … … 258 270 'type' => 'repair', 259 271 'title' => esc_html__( 'Recount pending, spammed, and trashed replies in each topic', 'bbpress' ), 260 'description' => esc_html__( 'Run this if non-public replies display incorrectly .', 'bbpress' ),272 'description' => esc_html__( 'Run this if non-public replies display incorrectly in topics.', 'bbpress' ), 261 273 'callback' => 'bbp_admin_repair_topic_hidden_reply_count', 262 'priority' => 65,274 'priority' => 70, 263 275 'overhead' => 'high', 264 276 'components' => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() ) … … 272 284 'description' => esc_html__( 'Run this to get fresh topic counts for all users.', 'bbpress' ), 273 285 'callback' => 'bbp_admin_repair_user_topic_count', 274 'priority' => 7 0,286 'priority' => 75, 275 287 'overhead' => 'medium', 276 288 'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() ) … … 284 296 'description' => esc_html__( 'Run this to get fresh reply counts for all users.', 'bbpress' ), 285 297 'callback' => 'bbp_admin_repair_user_reply_count', 286 'priority' => 75,298 'priority' => 80, 287 299 'overhead' => 'medium', 288 300 'components' => array( bbp_get_reply_post_type(), bbp_get_user_rewrite_id() ) … … 296 308 'description' => esc_html__( 'Run this to remove trashed or deleted topics from all user favorites.', 'bbpress' ), 297 309 'callback' => 'bbp_admin_repair_user_favorites', 298 'priority' => 8 0,310 'priority' => 85, 299 311 'overhead' => 'medium', 300 312 'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() ) … … 308 320 'description' => esc_html__( 'Run this to remove trashed or deleted topics from all user subscriptions.', 'bbpress' ), 309 321 'callback' => 'bbp_admin_repair_user_topic_subscriptions', 310 'priority' => 85,322 'priority' => 90, 311 323 'overhead' => 'medium', 312 324 'components' => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() ) … … 320 332 'description' => esc_html__( 'Run this to remove trashed or deleted forums from all user subscriptions.', 'bbpress' ), 321 333 'callback' => 'bbp_admin_repair_user_forum_subscriptions', 322 'priority' => 9 0,334 'priority' => 95, 323 335 'overhead' => 'medium', 324 336 'components' => array( bbp_get_forum_post_type(), bbp_get_user_rewrite_id() ) … … 332 344 'description' => esc_html__( 'Run this if users have issues accessing the forums.', 'bbpress' ), 333 345 'callback' => 'bbp_admin_repair_user_roles', 334 'priority' => 95,346 'priority' => 100, 335 347 'overhead' => 'low', 336 348 'components' => array( bbp_get_user_rewrite_id() ) … … 344 356 'description' => esc_html__( 'Copies engagements from user meta to topic meta.', 'bbpress' ), 345 357 'callback' => 'bbp_admin_upgrade_user_engagements', 346 'priority' => 10 0,358 'priority' => 105, 347 359 'version' => '2.6.0', 348 360 'overhead' => 'high', … … 357 369 'description' => esc_html__( 'Copies favorites from user meta to topic meta.', 'bbpress' ), 358 370 'callback' => 'bbp_admin_upgrade_user_favorites', 359 'priority' => 1 05,371 'priority' => 110, 360 372 'version' => '2.6.0', 361 373 'overhead' => 'high', … … 370 382 'description' => esc_html__( 'Copies topic subscriptions from user meta to topic meta.', 'bbpress' ), 371 383 'callback' => 'bbp_admin_upgrade_user_topic_subscriptions', 372 'priority' => 11 0,384 'priority' => 115, 373 385 'version' => '2.6.0', 374 386 'overhead' => 'high', … … 383 395 'description' => esc_html__( 'Copies forum subscriptions from user meta to forum meta.', 'bbpress' ), 384 396 'callback' => 'bbp_admin_upgrade_user_forum_subscriptions', 385 'priority' => 1 15,397 'priority' => 120, 386 398 'version' => '2.6.0', 387 399 'overhead' => 'high', … … 396 408 'description' => esc_html__( 'Run this to delete old data (after confirming successful favorites upgrade)', 'bbpress' ), 397 409 'callback' => 'bbp_admin_upgrade_remove_favorites_from_usermeta', 398 'priority' => 12 0,410 'priority' => 125, 399 411 'version' => '2.6.1', 400 412 'overhead' => 'medium', … … 409 421 'description' => esc_html__( 'Run this to delete old data (after confirming successful topic subscriptions upgrade)', 'bbpress' ), 410 422 'callback' => 'bbp_admin_upgrade_remove_topic_subscriptions_from_usermeta', 411 'priority' => 1 25,423 'priority' => 130, 412 424 'version' => '2.6.1', 413 425 'overhead' => 'medium', … … 422 434 'description' => esc_html__( 'Run this to delete old data (after confirming successful forum subscriptions upgrade)', 'bbpress' ), 423 435 'callback' => 'bbp_admin_upgrade_remove_forum_subscriptions_from_usermeta', 424 'priority' => 13 0,436 'priority' => 135, 425 437 'version' => '2.6.1', 426 438 'overhead' => 'medium', … … 435 447 'description' => esc_html__( 'Run this if you just upgraded BuddyPress Forums from Legacy.', 'bbpress' ), 436 448 'callback' => 'bbp_admin_upgrade_group_forum_relationship', 437 'priority' => 1 35,449 'priority' => 140, 438 450 'overhead' => 'low', 439 451 'components' => array( bbp_get_forum_post_type() )
Note: See TracChangeset
for help on using the changeset viewer.