wp_get_update_php_annotation
函数
wp_get_update_php_annotation ( No parameters )
- 返回值
-
- (string) Update PHP page annotation. An empty string if no custom URLs are provided.
- 定义位置
-
-
wp-includes/functions.php
, line 8028
-
wp-includes/functions.php
- 引入
- 5.2.0
- 弃用
- –
返回虚拟主机改变 “Update PHP”页面URL的默认注释。
如果虚拟主机改变了默认的 “Update PHP”页面URL,此函数将在{@see}之后使用,以返回一个一致的注释。
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, see the official WordPress documentation.' ),
esc_url( $default_url )
);
return $annotation;
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。