wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_get_update_php_annotation › WordPress Function
Depuis5.2.0
Dépréciéen/a
› wp_get_update_php_annotation ( Pas de paramètres )
| Retourne: |
|
| Défini(e) dans: |
|
| Codex: |
Returns the default annotation for the web hosting altering the "Update PHP" page URL.
This function is to be used after wp_get_update_php_url to return a consistent annotation if the web host has altered the default "Update PHP" page URL.Fonctions en relation: wp_update_php_annotation, wp_get_update_php_url, wp_get_update_data, wp_get_update_https_url, _get_path_to_translation
Source
function wp_get_update_php_annotation() {
$update_url = wp_get_update_php_url();
$default_url = wp_get_default_update_php_url();
if ( $update_url === $default_url ) {
return '';
}
$annotation = sprintf(
/* translators: %s: Default Update PHP page URL. */
__( 'This resource is provided by your web host, and is specific to your site. For more information, <a href="%s" target="_blank">see the official WordPress documentation</a>.' ),
esc_url( $default_url )
);
return $annotation;
}