get_preferred_from_update_core()

Selects the first update version from the update_core option.


Description Description


Return Return

(object|array|false) The response from the API on success, false on failure.


Top ↑

Source Source

File: wp-admin/includes/update.php

function get_preferred_from_update_core() {
	$updates = get_core_updates();
	if ( ! is_array( $updates ) )
		return false;
	if ( empty( $updates ) )
		return (object) array( 'response' => 'latest' );
	return $updates[0];
}


Top ↑

User Contributed Notes User Contributed Notes

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