Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_trusted_keys ›

Da5.2.0
Deprecaton/a
wp_trusted_keys ( Nessun parametro )
Ritorna:
  • (array) List of base64-encoded Signing keys.
Definito a:
Codex:

Retrieve the list of signing keys trusted by WordPress.



Sorgenti

function wp_trusted_keys() {
	$trusted_keys = array();

	if ( time() < 1617235200 ) {
		// WordPress.org Key #1 - This key is only valid before April 1st, 2021.
		$trusted_keys[] = 'fRPyrxb/MvVLbdsYi+OOEv4xc+Eqpsj+kkAS6gNOkI0=';
	}

	// TODO: Add key #2 with longer expiration.

	/**
	 * Filter the valid Signing keys used to verify the contents of files.
	 *
	 * @since 5.2.0
	 *
	 * @param array $trusted_keys The trusted keys that may sign packages.
	 */
	return apply_filters( 'wp_trusted_keys', $trusted_keys );
}