Changeset 6664
- Timestamp:
- 08/20/2017 10:24:18 PM (7 years ago)
- Location:
- trunk/src/includes/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/tools.php
r6537 r6664 112 112 'type' => 'repair', 113 113 'title' => esc_html__( 'Recalculate parent topic for each reply', 'bbpress' ), 114 'description' => esc_html__( 'Run this if replies appear in the wrong topics.', 'bbpress' ), 114 115 'callback' => 'bbp_admin_repair_topic_meta', 115 116 'priority' => 5, … … 123 124 'type' => 'repair', 124 125 'title' => esc_html__( 'Recalculate parent forum for each topic and reply', 'bbpress' ), 126 'description' => esc_html__( 'Run this if topics or replies appear in the wrong forums.', 'bbpress' ), 125 127 'callback' => 'bbp_admin_repair_forum_meta', 126 128 'priority' => 10, … … 134 136 'type' => 'repair', 135 137 'title' => esc_html__( 'Recalculate private and hidden forums', 'bbpress' ), 138 'description' => esc_html__( 'Run this if non-public forums are publicly visible.', 'bbpress' ), 136 139 'callback' => 'bbp_admin_repair_forum_visibility', 137 140 'priority' => 15, … … 145 148 'type' => 'repair', 146 149 'title' => esc_html__( 'Recalculate last activity in each topic and forum', 'bbpress' ), 150 'description' => esc_html__( 'Run this if freshness appears incorrectly.', 'bbpress' ), 147 151 'callback' => 'bbp_admin_repair_freshness', 148 152 'priority' => 20, … … 156 160 'type' => 'repair', 157 161 'title' => esc_html__( 'Recalculate sticky relationship of each topic', 'bbpress' ), 162 'description' => esc_html__( 'Run this if sticky topics appear incorrectly.', 'bbpress' ), 158 163 'callback' => 'bbp_admin_repair_sticky', 159 164 'priority' => 25, … … 167 172 'type' => 'repair', 168 173 'title' => esc_html__( 'Recalculate position of each reply in each topic', 'bbpress' ), 174 'description' => esc_html__( 'Run this if replies appear in the wrong order.', 'bbpress' ), 169 175 'callback' => 'bbp_admin_repair_reply_menu_order', 170 176 'priority' => 30, … … 178 184 'type' => 'repair', 179 185 'title' => esc_html__( 'Recalculate engagements in each topic for each user', 'bbpress' ), 186 'description' => esc_html__( 'Run this if voices appear incorrectly.', 'bbpress' ), 180 187 'callback' => 'bbp_admin_repair_topic_voice_count', 181 188 'priority' => 35, … … 189 196 'type' => 'repair', 190 197 'title' => esc_html__( 'Repair closed topic statuses', 'bbpress' ), 198 'description' => esc_html__( 'Run this if closed topics appear incorrectly.', 'bbpress' ), 191 199 'callback' => 'bbp_admin_repair_closed_topics', 192 200 'priority' => 40, … … 200 208 'type' => 'repair', 201 209 'title' => esc_html__( 'Recount topics in each forum', 'bbpress' ), 210 'description' => esc_html__( 'Run this if the number of topics in any forums are incorrect.', 'bbpress' ), 202 211 'callback' => 'bbp_admin_repair_forum_topic_count', 203 212 'priority' => 45, … … 211 220 'type' => 'repair', 212 221 'title' => esc_html__( 'Recount topics in each topic-tag', 'bbpress' ), 222 'description' => esc_html__( 'Run this if the number of topics in any topic-tags are incorrect.', 'bbpress' ), 213 223 'callback' => 'bbp_admin_repair_topic_tag_count', 214 224 'priority' => 50, … … 222 232 'type' => 'repair', 223 233 'title' => esc_html__( 'Recount replies in each forum', 'bbpress' ), 234 'description' => esc_html__( 'Run this if the number of replies in any forums are incorrect.', 'bbpress' ), 224 235 'callback' => 'bbp_admin_repair_forum_reply_count', 225 236 'priority' => 55, … … 233 244 'type' => 'repair', 234 245 'title' => esc_html__( 'Recount replies in each topic', 'bbpress' ), 246 'description' => esc_html__( 'Run this if the number of topics in any topics are incorrect.', 'bbpress' ), 235 247 'callback' => 'bbp_admin_repair_topic_reply_count', 236 248 'priority' => 60, … … 244 256 'type' => 'repair', 245 257 'title' => esc_html__( 'Recount pending, spammed, and trashed replies in each topic', 'bbpress' ), 258 'description' => esc_html__( 'Run this if non-public replies display incorrectly.', 'bbpress' ), 246 259 'callback' => 'bbp_admin_repair_topic_hidden_reply_count', 247 260 'priority' => 65, … … 255 268 'type' => 'repair', 256 269 'title' => esc_html__( 'Recount topics for each user', 'bbpress' ), 270 'description' => esc_html__( 'Run this to get fresh topic counts for all users.', 'bbpress' ), 257 271 'callback' => 'bbp_admin_repair_user_topic_count', 258 272 'priority' => 70, … … 266 280 'type' => 'repair', 267 281 'title' => esc_html__( 'Recount replies for each user', 'bbpress' ), 282 'description' => esc_html__( 'Run this to get fresh reply counts for all users.', 'bbpress' ), 268 283 'callback' => 'bbp_admin_repair_user_reply_count', 269 284 'priority' => 75, … … 277 292 'type' => 'repair', 278 293 'title' => esc_html__( 'Remove unpublished topics from user favorites', 'bbpress' ), 294 'description' => esc_html__( 'Run this to remove trashed or deleted topics from all user favorites.', 'bbpress' ), 279 295 'callback' => 'bbp_admin_repair_user_favorites', 280 296 'priority' => 80, … … 288 304 'type' => 'repair', 289 305 'title' => esc_html__( 'Remove unpublished topics from user subscriptions', 'bbpress' ), 306 'description' => esc_html__( 'Run this to remove trashed or deleted topics from all user subscriptions.', 'bbpress' ), 290 307 'callback' => 'bbp_admin_repair_user_topic_subscriptions', 291 308 'priority' => 85, … … 299 316 'type' => 'repair', 300 317 'title' => esc_html__( 'Remove unpublished forums from user subscriptions', 'bbpress' ), 318 'description' => esc_html__( 'Run this to remove trashed or deleted forums from all user subscriptions.', 'bbpress' ), 301 319 'callback' => 'bbp_admin_repair_user_forum_subscriptions', 302 320 'priority' => 90, … … 310 328 'type' => 'repair', 311 329 'title' => esc_html__( 'Remap all users to default forum roles', 'bbpress' ), 330 'description' => esc_html__( 'Run this if users have issues accessing the forums.', 'bbpress' ), 312 331 'callback' => 'bbp_admin_repair_user_roles', 313 332 'priority' => 95, … … 321 340 'type' => 'upgrade', 322 341 'title' => esc_html__( 'Upgrade user topic engagements', 'bbpress' ), 342 'description' => esc_html__( 'Run this if you just upgraded to 2.6.', 'bbpress' ), 323 343 'callback' => 'bbp_admin_upgrade_user_engagements', 324 344 'priority' => 100, … … 332 352 'type' => 'upgrade', 333 353 'title' => esc_html__( 'Upgrade user topic favorites', 'bbpress' ), 354 'description' => esc_html__( 'Run this if you just upgraded to 2.6.', 'bbpress' ), 334 355 'callback' => 'bbp_admin_upgrade_user_favorites', 335 356 'priority' => 105, … … 343 364 'type' => 'upgrade', 344 365 'title' => esc_html__( 'Upgrade user topic subscriptions', 'bbpress' ), 366 'description' => esc_html__( 'Run this if you just upgraded to 2.6.', 'bbpress' ), 345 367 'callback' => 'bbp_admin_upgrade_user_topic_subscriptions', 346 368 'priority' => 110, … … 354 376 'type' => 'upgrade', 355 377 'title' => esc_html__( 'Upgrade user forum subscriptions', 'bbpress' ), 378 'description' => esc_html__( 'Run this if you just upgraded to 2.6.', 'bbpress' ), 356 379 'callback' => 'bbp_admin_upgrade_user_forum_subscriptions', 357 380 'priority' => 115, … … 360 383 ) ); 361 384 385 // Remove favorites from user-meta 386 bbp_register_repair_tool( array( 387 'id' => 'bbp-user-favorites-delete', 388 'type' => 'upgrade', 389 'title' => esc_html__( 'Remove favorites from user-meta', 'bbpress' ), 390 'description' => esc_html__( 'Run this to delete old data, after confirming successful favorites upgrade above.', 'bbpress' ), 391 'callback' => 'bbp_admin_upgrade_remove_favorites_from_usermeta', 392 'priority' => 120, 393 'overhead' => 'medium', 394 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_favorites_rewrite_id() ) 395 ) ); 396 397 // Remove topic subscriptions from user-meta 398 bbp_register_repair_tool( array( 399 'id' => 'bbp-user-topic-subscriptions-delete', 400 'type' => 'upgrade', 401 'title' => esc_html__( 'Remove topic subscriptions from user-meta', 'bbpress' ), 402 'description' => esc_html__( 'Run this to delete old data, after confirming successful topic subscriptions upgrade above.', 'bbpress' ), 403 'callback' => 'bbp_admin_upgrade_remove_topic_subscriptions_from_usermeta', 404 'priority' => 125, 405 'overhead' => 'medium', 406 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_subscriptions_rewrite_id() ) 407 ) ); 408 409 // Remove forum subscriptions from user-meta 410 bbp_register_repair_tool( array( 411 'id' => 'bbp-user-forum-subscriptions-delete', 412 'type' => 'upgrade', 413 'title' => esc_html__( 'Remove forum subscriptions from user-meta', 'bbpress' ), 414 'description' => esc_html__( 'Run this to delete old data, after confirming successful forum subscriptions upgrade above.', 'bbpress' ), 415 'callback' => 'bbp_admin_upgrade_remove_forum_subscriptions_from_usermeta', 416 'priority' => 130, 417 'overhead' => 'medium', 418 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_subscriptions_rewrite_id() ) 419 ) ); 420 362 421 // Sync all BuddyPress group forum relationships 363 422 bbp_register_repair_tool( array( … … 365 424 'type' => 'upgrade', 366 425 'title' => esc_html__( 'Upgrade BuddyPress Group Forum relationships', 'bbpress' ), 426 'description' => esc_html__( 'Run this if you just upgraded BuddyPress Forums from Legacy.', 'bbpress' ), 367 427 'callback' => 'bbp_admin_upgrade_group_forum_relationship', 368 'priority' => 1 20,428 'priority' => 135, 369 429 'overhead' => 'low', 370 430 'components' => array( bbp_get_forum_post_type() ) 371 ) );372 373 // Remove favorites from user-meta374 bbp_register_repair_tool( array(375 'id' => 'bbp-user-favorites-delete',376 'type' => 'upgrade',377 'title' => esc_html__( 'Remove favorites from user-meta', 'bbpress' ),378 'callback' => 'bbp_admin_upgrade_remove_favorites_from_usermeta',379 'priority' => 125,380 'overhead' => 'medium',381 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_favorites_rewrite_id() )382 ) );383 384 // Remove topic subscriptions from user-meta385 bbp_register_repair_tool( array(386 'id' => 'bbp-user-topic-subscriptions-delete',387 'type' => 'upgrade',388 'title' => esc_html__( 'Remove topic subscriptions from user-meta', 'bbpress' ),389 'callback' => 'bbp_admin_upgrade_remove_topic_subscriptions_from_usermeta',390 'priority' => 130,391 'overhead' => 'medium',392 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_subscriptions_rewrite_id() )393 ) );394 395 // Remove forum subscriptions from user-meta396 bbp_register_repair_tool( array(397 'id' => 'bbp-user-forum-subscriptions-delete',398 'type' => 'upgrade',399 'title' => esc_html__( 'Remove forum subscriptions from user-meta', 'bbpress' ),400 'callback' => 'bbp_admin_upgrade_remove_forum_subscriptions_from_usermeta',401 'priority' => 135,402 'overhead' => 'medium',403 'components' => array( bbp_get_user_rewrite_id(), bbp_get_user_subscriptions_rewrite_id() )404 431 ) ); 405 432 } -
trunk/src/includes/admin/tools/upgrade.php
r6593 r6664 85 85 // Optional description 86 86 if ( ! empty( $item['description'] ) ) : 87 e sc_html( $item['description'] );87 echo esc_html( $item['description'] ); 88 88 endif; 89 89
Note: See TracChangeset
for help on using the changeset viewer.