| @@ -17,9 +17,9 @@ | ||
| 17 | 17 | * |
| 18 | 18 | * Repair tools update metadata directly in the database, bypassing the cache |
| 19 | 19 | * invalidation performed by the WordPress metadata API. |
| 20 | 20 | * |
| 21 | - * @since 2.6.17 | |
| 21 | + * @since 2.6.17 bbPress (r7454) | |
| 22 | 22 | * |
| 23 | 23 | * @param string $post_type Post type name. |
| 24 | 24 | */ |
| 25 | 25 | function bbp_admin_repair_clean_post_meta_cache( $post_type = '' ) { |
| @@ -34,9 +34,9 @@ | ||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Admin repair page |
| 37 | 37 | * |
| 38 | - * @since 2.0.0 bbPress (r2613) Converted from bbPress 1.2 | |
| 38 | + * @since 2.6.0 bbPress (r6277) Converted from bbPress 1.2 | |
| 39 | 39 | * @since 2.6.0 bbPress (r5885) Upgraded to list-table UI |
| 40 | 40 | * |
| 41 | 41 | * @todo Use a real list table |
| 42 | 42 | * |
| @@ -160,10 +160,10 @@ | ||
| 160 | 160 | ?><div class="row-actions hide-if-no-js"> |
| 161 | 161 | <span class="run"> |
| 162 | 162 | <a href="<?php bbp_admin_repair_tool_run_url( $item ); ?>" aria-label="<?php printf( |
| 163 | 163 | /* translators: %s: Repair tool title */ |
| 164 | - esc_html__( 'Run %s', 'bbpress' ), | |
| 165 | - $item['title'] | |
| 164 | + esc_attr__( 'Run %s', 'bbpress' ), | |
| 165 | + esc_attr( $item['title'] ) | |
| 166 | 166 | ); |
| 167 | 167 | ?>" id="<?php echo esc_attr( $item['id'] ); ?>" ><?php esc_html_e( 'Run', 'bbpress' ); ?></a> |
| 168 | 168 | </span> |
| 169 | 169 | </div> |
| @@ -232,9 +232,9 @@ | ||
| 232 | 232 | |
| 233 | 233 | /** |
| 234 | 234 | * Recount topic replies |
| 235 | 235 | * |
| 236 | - * @since 2.0.0 bbPress (r2613) | |
| 236 | + * @since 2.1.0 bbPress (r3884) | |
| 237 | 237 | * |
| 238 | 238 | * @return array An array of the status code and the message |
| 239 | 239 | */ |
| 240 | 240 | function bbp_admin_repair_topic_reply_count() { |
| @@ -284,9 +284,9 @@ | ||
| 284 | 284 | |
| 285 | 285 | /** |
| 286 | 286 | * Recount topic voices |
| 287 | 287 | * |
| 288 | - * @since 2.0.0 bbPress (r2613) | |
| 288 | + * @since 2.1.0 bbPress (r3884) | |
| 289 | 289 | * |
| 290 | 290 | * @return array An array of the status code and the message |
| 291 | 291 | */ |
| 292 | 292 | function bbp_admin_repair_topic_voice_count() { |
| @@ -358,9 +358,9 @@ | ||
| 358 | 358 | |
| 359 | 359 | /** |
| 360 | 360 | * Recount non-public replies per topic (pending/spammed/trashed) |
| 361 | 361 | * |
| 362 | - * @since 2.0.0 bbPress (r2747) | |
| 362 | + * @since 2.1.0 bbPress (r3884) | |
| 363 | 363 | * |
| 364 | 364 | * @return array An array of the status code and the message |
| 365 | 365 | */ |
| 366 | 366 | function bbp_admin_repair_topic_hidden_reply_count() { |
| @@ -408,9 +408,9 @@ | ||
| 408 | 408 | |
| 409 | 409 | /** |
| 410 | 410 | * Recount forum topics |
| 411 | 411 | * |
| 412 | - * @since 2.0.0 bbPress (r2613) | |
| 412 | + * @since 2.1.0 bbPress (r3884) | |
| 413 | 413 | * |
| 414 | 414 | * @return array An array of the status code and the message |
| 415 | 415 | */ |
| 416 | 416 | function bbp_admin_repair_forum_topic_count() { |
| @@ -506,9 +506,9 @@ | ||
| 506 | 506 | |
| 507 | 507 | /** |
| 508 | 508 | * Recount forum replies |
| 509 | 509 | * |
| 510 | - * @since 2.0.0 bbPress (r2613) | |
| 510 | + * @since 2.1.0 bbPress (r3884) | |
| 511 | 511 | * |
| 512 | 512 | * @return array An array of the status code and the message |
| 513 | 513 | */ |
| 514 | 514 | function bbp_admin_repair_forum_reply_count() { |
| @@ -555,10 +555,10 @@ | ||
| 555 | 555 | |
| 556 | 556 | /** |
| 557 | 557 | * Recount non-public forum replies |
| 558 | 558 | * |
| 559 | - * @since 2.6.0 bbPress (r6922) | |
| 560 | - * @since 2.6.0 bbPress (r6932) Rename to match the topic reply recount function | |
| 559 | + * @since 2.6.0 bbPress (r6933) | |
| 560 | + * @since 2.6.0 bbPress (r6933) Rename to match the topic reply recount function | |
| 561 | 561 | * |
| 562 | 562 | * @return array An array of the status code and the message |
| 563 | 563 | */ |
| 564 | 564 | function bbp_admin_repair_forum_hidden_reply_count() { |
| @@ -605,9 +605,9 @@ | ||
| 605 | 605 | |
| 606 | 606 | /** |
| 607 | 607 | * Recount topics by the users |
| 608 | 608 | * |
| 609 | - * @since 2.1.0 bbPress (r3889) | |
| 609 | + * @since 2.1.0 bbPress (r3890) | |
| 610 | 610 | * |
| 611 | 611 | * @return array An array of the status code and the message |
| 612 | 612 | */ |
| 613 | 613 | function bbp_admin_repair_user_topic_count() { |
| @@ -672,9 +672,9 @@ | ||
| 672 | 672 | |
| 673 | 673 | /** |
| 674 | 674 | * Recount topic replied by the users |
| 675 | 675 | * |
| 676 | - * @since 2.0.0 bbPress (r2613) | |
| 676 | + * @since 2.1.0 bbPress (r3884) | |
| 677 | 677 | * |
| 678 | 678 | * @return array An array of the status code and the message |
| 679 | 679 | */ |
| 680 | 680 | function bbp_admin_repair_user_reply_count() { |
| @@ -739,9 +739,9 @@ | ||
| 739 | 739 | |
| 740 | 740 | /** |
| 741 | 741 | * Repair user favorites |
| 742 | 742 | * |
| 743 | - * @since 2.0.0 bbPress (r2613) | |
| 743 | + * @since 2.1.0 bbPress (r3884) | |
| 744 | 744 | * |
| 745 | 745 | * @return array An array of the status code and the message |
| 746 | 746 | */ |
| 747 | 747 | function bbp_admin_repair_user_favorites() { |
| @@ -810,9 +810,9 @@ | ||
| 810 | 810 | |
| 811 | 811 | /** |
| 812 | 812 | * Clean the user topic subscriptions |
| 813 | 813 | * |
| 814 | - * @since 2.0.0 bbPress (r2668) | |
| 814 | + * @since 2.5.0 bbPress (r5157) | |
| 815 | 815 | * |
| 816 | 816 | * @return array An array of the status code and the message |
| 817 | 817 | */ |
| 818 | 818 | function bbp_admin_repair_user_topic_subscriptions() { |
| @@ -880,9 +880,9 @@ | ||
| 880 | 880 | |
| 881 | 881 | /** |
| 882 | 882 | * Clean the user forum subscriptions |
| 883 | 883 | * |
| 884 | - * @since 2.5.0 bbPress (r5155) | |
| 884 | + * @since 2.5.0 bbPress (r5157) | |
| 885 | 885 | * |
| 886 | 886 | * @return array An array of the status code and the message |
| 887 | 887 | */ |
| 888 | 888 | function bbp_admin_repair_user_forum_subscriptions() { |
| @@ -952,9 +952,9 @@ | ||
| 952 | 952 | * This repair tool will map each user of the current site to their respective |
| 953 | 953 | * forums role. By default, Admins will be Key Masters, and every other role |
| 954 | 954 | * will be the default role defined in Settings > Forums (Participant). |
| 955 | 955 | * |
| 956 | - * @since 2.2.0 bbPress (r4340) | |
| 956 | + * @since 2.2.0 bbPress (r4341) | |
| 957 | 957 | */ |
| 958 | 958 | function bbp_admin_repair_user_roles() { |
| 959 | 959 | /* translators: %s: Status of the repair process */ |
| 960 | 960 | $statement = esc_html__( 'Remapping forum role for each user on this site… %s', 'bbpress' ); |
| @@ -1072,9 +1072,9 @@ | ||
| 1072 | 1072 | |
| 1073 | 1073 | /** |
| 1074 | 1074 | * Repair the last post in every topic and forum |
| 1075 | 1075 | * |
| 1076 | - * @since 2.0.0 bbPress (r3040) | |
| 1076 | + * @since 2.1.0 bbPress (r3884) | |
| 1077 | 1077 | * |
| 1078 | 1078 | * @return array An array of the status code and the message |
| 1079 | 1079 | */ |
| 1080 | 1080 | function bbp_admin_repair_freshness() { |
| @@ -1341,9 +1341,9 @@ | ||
| 1341 | 1341 | |
| 1342 | 1342 | /** |
| 1343 | 1343 | * Repair the private and hidden forums |
| 1344 | 1344 | * |
| 1345 | - * @since 2.2.0 bbPress (r4104) | |
| 1345 | + * @since 2.2.0 bbPress (r4105) | |
| 1346 | 1346 | * |
| 1347 | 1347 | * @return array An array of the status code and the message |
| 1348 | 1348 | */ |
| 1349 | 1349 | function bbp_admin_repair_forum_visibility() { |
| @@ -1362,9 +1362,9 @@ | ||
| 1362 | 1362 | |
| 1363 | 1363 | /** |
| 1364 | 1364 | * Repair the parent forum meta for each topic and reply |
| 1365 | 1365 | * |
| 1366 | - * @since 2.1.0 bbPress (r3876) | |
| 1366 | + * @since 2.1.0 bbPress (r3884) | |
| 1367 | 1367 | * |
| 1368 | 1368 | * @return array An array of the status code and the message |
| 1369 | 1369 | */ |
| 1370 | 1370 | function bbp_admin_repair_forum_meta() { |
| @@ -1437,9 +1437,9 @@ | ||
| 1437 | 1437 | |
| 1438 | 1438 | /** |
| 1439 | 1439 | * Repair the topic for each post |
| 1440 | 1440 | * |
| 1441 | - * @since 2.1.0 bbPress (r3876) | |
| 1441 | + * @since 2.1.0 bbPress (r3884) | |
| 1442 | 1442 | * |
| 1443 | 1443 | * @return array An array of the status code and the message |
| 1444 | 1444 | */ |
| 1445 | 1445 | function bbp_admin_repair_topic_meta() { |
| @@ -1497,9 +1497,9 @@ | ||
| 1497 | 1497 | |
| 1498 | 1498 | /** |
| 1499 | 1499 | * Recalculate reply menu order |
| 1500 | 1500 | * |
| 1501 | - * @since 2.5.4 bbPress (r5367) | |
| 1501 | + * @since 2.6.0 bbPress (r5368) | |
| 1502 | 1502 | * |
| 1503 | 1503 | * @return array An array of the status code and the message |
| 1504 | 1504 | */ |
| 1505 | 1505 | function bbp_admin_repair_reply_menu_order() { |