Skip to:
Content

bbPress.org


Ignore:
Timestamp:
11/12/2019 05:12:14 PM (5 years ago)
Author:
johnjamesjacoby
Message:

Tools: allow repairs to also be pending.

This commit makes Repairs work like Upgrades, allowing for repair tools to also be pending. It adds a $type parameter to a few functions to allow grouping or separating, depending on the count context.

See #3052.

File:
1 edited

Legend:

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

    r6933 r6934  
    881881    }
    882882
     883    // Get the type of tool
     884    $type = bbp_get_admin_repair_tool_page_id();
     885
    883886    // Count the tools
    884     $tools = bbp_get_admin_repair_tools( bbp_get_admin_repair_tool_page_id() );
     887    $tools = bbp_get_admin_repair_tools( $type );
    885888
    886889    // Get the tools URL
     
    888891
    889892    // Get pending upgrades
    890     $pending = bbp_get_pending_upgrades();
     893    $pending = bbp_get_pending_upgrades( $type );
    891894
    892895    // Get the current status, if any
Note: See TracChangeset for help on using the changeset viewer.