wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_preferred_from_update_core › WordPress Function

Da2.7.0
Deprecaton/a
get_preferred_from_update_core ( Nessun parametro )
Ritorna:
  • (object|array|false) The response from the API on success, false on failure.
Definito a:
Codex:

Selects the first update version from the update_core option.



Sorgenti

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