Changeset 6573 for trunk/src/includes/admin/tools/repair.php
- Timestamp:
- 06/16/2017 09:20:52 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/tools/repair.php
r6544 r6573 19 19 * @todo Use a real list table 20 20 * 21 * @uses bbp_admin_repair_list() To get the recount list22 * @uses check_admin_referer() To verify the nonce and the referer23 * @uses wp_cache_flush() To flush the cache24 * @uses do_action() Calls 'admin_notices' to display the notices25 * @uses wp_nonce_field() To add a hidden nonce field26 21 */ 27 22 function bbp_admin_repair_page() { … … 169 164 * @since 2.0.0 bbPress (r2613) 170 165 * 171 * @uses wpdb::query() To run our recount database queries172 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}173 * @uses bbp_get_topic_post_type() To get the topic post type174 * @uses bbp_get_reply_post_type() To get the reply post type175 * @uses bbp_get_public_status_id() To get the public status id176 * @uses bbp_get_closed_status_id() To get the closed status id177 166 * @return array An array of the status code and the message 178 167 */ … … 224 213 * @since 2.0.0 bbPress (r2613) 225 214 * 226 * @uses wpdb::query() To run our recount database queries227 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}228 * @uses bbp_get_topic_post_type() To get the topic post type229 * @uses bbp_get_reply_post_type() To get the reply post type230 * @uses bbp_get_public_status_id() To get the public status id231 * @uses bbp_get_closed_status_id() To get the closed status id232 215 * @return array An array of the status code and the message 233 216 */ … … 282 265 * @since 2.0.0 bbPress (r2747) 283 266 * 284 * @uses wpdb::query() To run our recount database queries285 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}286 * @uses bbp_get_reply_post_type() To get the reply post type287 * @uses bbp_get_trash_status_id() To get the trash status id288 * @uses bbp_get_spam_status_id() To get the spam status id289 * @uses bbp_get_pending_status_id() To get the pending status id290 267 * @return array An array of the status code and the message 291 268 */ … … 321 298 * @since 2.0.0 bbPress (r2613) 322 299 * 323 * @uses wpdb::query() To run our recount database queries324 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}325 * @uses bbp_get_forum_post_type() To get the forum post type326 * @uses get_posts() To get the forums327 * @uses bbp_update_forum_topic_count() To update the forum topic count328 300 * @return array An array of the status code and the message 329 301 */ … … 358 330 * @since 2.6.0 bbPress (r6256) 359 331 * 360 * @uses bbp_get_topic_tag_tax_id() To get the topic-tag taxonomy361 * @uses get_terms() To get the terms362 * @uses wp_list_pluck() To get term taxonomy IDs363 * @uses get_taxonomy() To get term taxonomy object364 * @uses _update_post_term_count() To update generic counts365 * @uses bbp_update_topic_tag_count() To update topic-tag counts366 * @uses clean_term_cache() To bust the terms cache367 332 * @return array An array of the status code and the message 368 333 */ … … 409 374 * @since 2.0.0 bbPress (r2613) 410 375 * 411 * @uses wpdb::query() To run our recount database queries412 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}413 * @uses bbp_get_forum_post_type() To get the forum post type414 * @uses get_posts() To get the forums415 * @uses bbp_update_forum_reply_count() To update the forum reply count416 376 * @return array An array of the status code and the message 417 377 */ … … 455 415 * @since 2.1.0 bbPress (r3889) 456 416 * 457 * @uses bbp_get_topic_post_type() To get the topic post type458 * @uses bbp_get_public_status_id() To get the public status id459 * @uses wpdb::query() To run our recount database queries460 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}461 417 * @return array An array of the status code and the message 462 418 */ … … 507 463 * @since 2.0.0 bbPress (r2613) 508 464 * 509 * @uses bbp_get_reply_post_type() To get the reply post type510 * @uses bbp_get_public_status_id() To get the public status id511 * @uses wpdb::query() To run our recount database queries512 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}513 465 * @return array An array of the status code and the message 514 466 */ … … 559 511 * @since 2.0.0 bbPress (r2613) 560 512 * 561 * @uses wpdb::query() To run our recount database queries562 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}563 * @uses bbp_get_topic_post_type() To get the topic post type564 * @uses bbp_get_public_status_id() To get the public status id565 513 * @return array An array of the status code and the message 566 514 */ … … 630 578 * @since 2.0.0 bbPress (r2668) 631 579 * 632 * @uses wpdb::query() To run our recount database queries633 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}634 * @uses bbp_get_topic_post_type() To get the topic post type635 * @uses bbp_get_public_status_id() To get the public status id636 580 * @return array An array of the status code and the message 637 581 */ … … 699 643 * @since 2.5.0 bbPress (r5155) 700 644 * 701 * @uses wpdb::query() To run our recount database queries702 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}703 * @uses bbp_get_forum_post_type() To get the forum post type704 * @uses bbp_get_public_status_id() To get the public status id705 645 * @return array An array of the status code and the message 706 646 */ … … 769 709 * 770 710 * @since 2.2.0 bbPress (r4340) 771 *772 * @uses bbp_get_user_role_map() To get the map of user roles773 * @uses bbp_get_default_role() To get the default bbPress user role774 * @uses bbp_get_blog_roles() To get the current WordPress roles775 * @uses get_users() To get the users of each role (limited to ID field)776 * @uses bbp_set_user_role() To set each user's forums role777 711 */ 778 712 function bbp_admin_repair_user_roles() { … … 827 761 * @since 2.0.0 bbPress (r3040) 828 762 * 829 * @uses wpdb::query() To run our recount database queries830 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}831 * @uses bbp_get_forum_post_type() To get the forum post type832 * @uses bbp_get_topic_post_type() To get the topic post type833 * @uses bbp_get_reply_post_type() To get the reply post type834 * @uses bbp_get_public_status_id() To get the public status id835 * @uses bbp_is_forum_category() To check if the forum is a category836 * @uses bbp_update_forum() To update the forums forum id837 763 * @return array An array of the status code and the message 838 764 */ … … 956 882 * @since 2.3.0 bbPress (r4695) 957 883 * 958 * @uses wpdb::get_col() To run our recount database queries959 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}960 * @uses bbp_get_forum_post_type() To get the forum post type961 * @uses get_post_meta() To get the sticky topics962 * @uses bbp_is_topic_super_sticky() To check if the topic is super sticky963 * @uses bbp_get_topic_forum_id() To get the topics forum id964 * @uses update_post_meta To update the topics sticky post meta965 884 * @return array An array of the status code and the message 966 885 */ … … 1028 947 * @since 2.6.0 bbPress (r5668) 1029 948 * 1030 * @uses wpdb::get_col() To run our recount database queries1031 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}1032 * @uses bbp_get_topic_post_type() To get the topic post type1033 * @uses get_post_meta() To get the closed topic status meta1034 * @uses update_post_meta To update the topics closed status post meta1035 949 * @return array An array of the status code and the message 1036 950 */ … … 1080 994 * @since 2.2.0 bbPress (r4104) 1081 995 * 1082 * @uses bbp_repair_forum_visibility() To update private and hidden forum ids1083 996 * @return array An array of the status code and the message 1084 997 */ … … 1101 1014 * @since 2.1.0 bbPress (r3876) 1102 1015 * 1103 * @uses wpdb::query() To run our recount database queries1104 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}1105 * @uses bbp_get_topic_post_type() To get the topic post type1106 * @uses bbp_get_reply_post_type() To get the reply post type1107 1016 * @return array An array of the status code and the message 1108 1017 */ … … 1156 1065 * @since 2.1.0 bbPress (r3876) 1157 1066 * 1158 * @uses wpdb::query() To run our recount database queries1159 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}1160 * @uses bbp_get_topic_post_type() To get the topic post type1161 * @uses bbp_get_reply_post_type() To get the reply post type1162 1067 * @return array An array of the status code and the message 1163 1068 */ … … 1211 1116 * @since 2.5.4 bbPress (r5367) 1212 1117 * 1213 * @uses wpdb::query() To run our recount database queries1214 * @uses is_wp_error() To check if the executed query returned {@link WP_Error}1215 * @uses bbp_get_reply_post_type() To get the reply post type1216 * @uses bbp_update_reply_position() To update the reply position1217 1118 * @return array An array of the status code and the message 1218 1119 */
Note: See TracChangeset
for help on using the changeset viewer.