discover_pingback_server_uri()根据已给URL查找pingback的服务器URI

目录

描述

译文

根据已给URL查找pingback的服务器URI

查找rel="pingback" 链接与 x-pingback标题的xhtml代码。该函数可检查x-pingback标题,如果标题可用就将其返回。检查rel="pingback"比检查标题要占用更多系统开销。

原文

Finds a pingback server URI based on the given URL.

Checks the xhtml for the rel="pingback" link and x-pingback headers. It does a check for the x-pingback headers first and returns that, if available. The check for the rel="pingback" has more overhead than just the header.

discover_pingback_server_uri() 描述

用法

<?php discover_pingback_server_uri$url$deprecated ?>

discover_pingback_server_uri() 用法

参数

$url

(string) (必填) URL to ping.

默认值: None

$deprecated

(integer) (Not Used.)

默认值: None

discover_pingback_server_uri() 参数

返回值

(boolean|string) 

False on failure, string containing URI on success.

discover_pingback_server_uri() 返回值

注意

历史

添加于 版本: 1.5.0

discover_pingback_server_uri() 历史

源文件

discover_pingback_server_uri() 函数的代码位于 wp-includes/comment.php.

discover_pingback_server_uri() 源文件