wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_secrets_site_health_tests › WordPress Function
Seit7.2.0
Veraltetn/v
› wp_secrets_site_health_tests ( $tests )
| Parameter: |
|
| Gibt zurück: |
|
| Definiert in: |
|
| Codex: |
Registers the Secrets API's Site Health tests.
No settings screen – the proposal defers that to 7.3 – but the health signal an operator needs to notice a broken key, a weak key source, or a pending rotation is in scope now.Quellcode
function wp_secrets_site_health_tests( $tests ) {
$tests['direct']['secrets_api_key_source'] = array(
'label' => __( 'Secrets API key source' ),
'test' => 'wp_secrets_site_health_test_key_source',
);
$tests['direct']['secrets_api_undecryptable'] = array(
'label' => __( 'Secrets API: undecryptable secrets' ),
'test' => 'wp_secrets_site_health_test_undecryptable',
);
$tests['direct']['secrets_api_needs_rotation'] = array(
'label' => __( 'Secrets API: credentials pending rotation' ),
'test' => 'wp_secrets_site_health_test_needs_rotation',
);
return $tests;
}