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: ''


Top ↑

Return Return

(array)


Top ↑

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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.