Skip to:
Content

bbPress.org

Changeset 5963


Ignore:
Timestamp:
12/18/2015 10:57:44 PM (9 years ago)
Author:
netweb
Message:

Tools: Update the priority array values of individual repair tools in bbp_register_default_repair_tools()

This changeset fixes an issue where the bbp_admin_repair_topic_meta() repair tool was not included in the list table.

Props netweb, thebrandonallen.
Fixes #2859.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/tools.php

    r5960 r5963  
    487487        'description' => __( 'Recalculate parent topic for each reply', 'bbpress' ),
    488488        'callback'    => 'bbp_admin_repair_topic_meta',
    489         'priority'    => 0,
     489        'priority'    => 5,
    490490        'overhead'    => esc_html__( 'Low', 'bbpress' ),
    491491        'components'  => array( bbp_get_reply_post_type() )
     
    497497        'description' => __( 'Recalculate parent forum for each topic and reply', 'bbpress' ),
    498498        'callback'    => 'bbp_admin_repair_forum_meta',
    499         'priority'    => 5,
     499        'priority'    => 10,
    500500        'overhead'    => esc_html__( 'Low', 'bbpress' ),
    501501        'components'  => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
     
    507507        'description' => __( 'Recalculate private and hidden forums', 'bbpress' ),
    508508        'callback'    => 'bbp_admin_repair_forum_visibility',
    509         'priority'    => 10,
     509        'priority'    => 15,
    510510        'overhead'    => esc_html__( 'Low', 'bbpress' ),
    511511        'components'  => array( bbp_get_forum_post_type() )
     
    517517        'description' => __( 'Recalculate last activity in each topic and forum', 'bbpress' ),
    518518        'callback'    => 'bbp_admin_repair_freshness',
    519         'priority'    => 15,
     519        'priority'    => 20,
    520520        'overhead'    => esc_html__( 'High', 'bbpress' ),
    521521        'components'  => array( bbp_get_forum_post_type(), bbp_get_topic_post_type(), bbp_get_reply_post_type() )
     
    527527        'description' => __( 'Recalculate sticky relationship of each topic', 'bbpress' ),
    528528        'callback'    => 'bbp_admin_repair_sticky',
    529         'priority'    => 20,
     529        'priority'    => 25,
    530530        'overhead'    => esc_html__( 'Low', 'bbpress' ),
    531531        'components'  => array( bbp_get_topic_post_type() )
     
    537537        'description' => __( 'Recalculate the position of each reply', 'bbpress' ),
    538538        'callback'    => 'bbp_admin_repair_reply_menu_order',
    539         'priority'    => 25,
     539        'priority'    => 30,
    540540        'overhead'    => esc_html__( 'High', 'bbpress' ),
    541541        'components'  => array( bbp_get_reply_post_type() )
     
    547547        'description' => __( 'Repair BuddyPress Group Forum relationships', 'bbpress' ),
    548548        'callback'    => 'bbp_admin_repair_group_forum_relationship',
    549         'priority'    => 30,
     549        'priority'    => 35,
    550550        'overhead'    => esc_html__( 'Low', 'bbpress' ),
    551551        'components'  => array( bbp_get_forum_post_type() )
     
    557557        'description' => __( 'Repair closed topics', 'bbpress' ),
    558558        'callback'    => 'bbp_admin_repair_closed_topics',
    559         'priority'    => 35,
     559        'priority'    => 40,
    560560        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    561561        'components'  => array( bbp_get_topic_post_type() )
     
    567567        'description' => __( 'Count topics in each forum', 'bbpress' ),
    568568        'callback'    => 'bbp_admin_repair_forum_topic_count',
    569         'priority'    => 40,
     569        'priority'    => 45,
    570570        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    571571        'components'  => array( bbp_get_forum_post_type(), bbp_get_topic_post_type() )
     
    577577        'description' => __( 'Count replies in each forum', 'bbpress' ),
    578578        'callback'    => 'bbp_admin_repair_forum_reply_count',
    579         'priority'    => 45,
     579        'priority'    => 50,
    580580        'overhead'    => esc_html__( 'High', 'bbpress' ),
    581581        'components'  => array( bbp_get_forum_post_type(), bbp_get_reply_post_type() )
     
    587587        'description' => __( 'Count replies in each topic', 'bbpress' ),
    588588        'callback'    => 'bbp_admin_repair_topic_reply_count',
    589         'priority'    => 50,
     589        'priority'    => 55,
    590590        'overhead'    => esc_html__( 'High', 'bbpress' ),
    591591        'components'  => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
     
    597597        'description' => __( 'Count voices in each topic', 'bbpress' ),
    598598        'callback'    => 'bbp_admin_repair_topic_voice_count',
    599         'priority'    => 55,
     599        'priority'    => 60,
    600600        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    601601        'components'  => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
     
    607607        'description' => __( 'Count pending, spammed, & trashed replies in each topic', 'bbpress' ),
    608608        'callback'    => 'bbp_admin_repair_topic_hidden_reply_count',
    609         'priority'    => 60,
     609        'priority'    => 65,
    610610        'overhead'    => esc_html__( 'High', 'bbpress' ),
    611611        'components'  => array( bbp_get_topic_post_type(), bbp_get_reply_post_type() )
     
    617617        'description' => __( 'Recount topics for each user', 'bbpress' ),
    618618        'callback'    => 'bbp_admin_repair_user_topic_count',
    619         'priority'    => 65,
     619        'priority'    => 70,
    620620        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    621621        'components'  => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
     
    627627        'description' => __( 'Recount replies for each user', 'bbpress' ),
    628628        'callback'    => 'bbp_admin_repair_user_reply_count',
    629         'priority'    => 70,
     629        'priority'    => 75,
    630630        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    631631        'components'  => array( bbp_get_reply_post_type(), bbp_get_user_rewrite_id() )
     
    637637        'description' => __( 'Remove unpublished topics from user favorites', 'bbpress' ),
    638638        'callback'    => 'bbp_admin_repair_user_favorites',
    639         'priority'    => 75,
     639        'priority'    => 80,
    640640        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    641641        'components'  => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
     
    647647        'description' => __( 'Remove unpublished topics from user subscriptions', 'bbpress' ),
    648648        'callback'    => 'bbp_admin_repair_user_topic_subscriptions',
    649         'priority'    => 80,
     649        'priority'    => 85,
    650650        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    651651        'components'  => array( bbp_get_topic_post_type(), bbp_get_user_rewrite_id() )
     
    657657        'description' => __( 'Remove unpublished forums from user subscriptions', 'bbpress' ),
    658658        'callback'    => 'bbp_admin_repair_user_forum_subscriptions',
    659         'priority'    => 85,
     659        'priority'    => 90,
    660660        'overhead'    => esc_html__( 'Medium', 'bbpress' ),
    661661        'components'  => array( bbp_get_forum_post_type(), bbp_get_user_rewrite_id() )
     
    667667        'description' => __( 'Remap existing users to default forum roles', 'bbpress' ),
    668668        'callback'    => 'bbp_admin_repair_user_roles',
    669         'priority'    => 90,
     669        'priority'    => 95,
    670670        'overhead'    => esc_html__( 'Low', 'bbpress' ),
    671671        'components'  => array( bbp_get_user_rewrite_id() )
Note: See TracChangeset for help on using the changeset viewer.