wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_trusted_keys › WordPress Function
Seit5.2.0
Veraltetn/v
› wp_trusted_keys ( Keine Parameter )
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Retrieves the list of signing keys trusted by WordPress.
Ähnliche Funktionen: wp_paused_themes, wp_targeted_link_rel, wp_title_rss, wp_get_sites, wp_send_json
Quellcode
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. /** * Filters the valid signing keys used to verify the contents of files. * * @since 5.2.0 * * @param string[] $trusted_keys The trusted keys that may sign packages. */ return apply_filters( 'wp_trusted_keys', $trusted_keys ); }