bbp_get_pending_upgrades( string $type = '' )
Return an array of pending upgrades
Description Description
Parameters Parameters
- $type
-
(Optional) Type of pending upgrades (upgrade|repair|empty)
Default value: ''
Return Return
(array)
Source Source
File: includes/core/update.php
function bbp_get_pending_upgrades( $type = '' ) { // Get the pending upgrades $retval = (array) get_option( '_bbp_db_pending_upgrades', array() ); // Looking for a specific type? if ( ! empty( $type ) ) { $tools = bbp_get_admin_repair_tools( $type ); $plucked = array_keys( wp_list_pluck( $tools, 'type' ) ); $retval = array_intersect( $retval, $plucked ); } return (array) $retval; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |