wpseek.com
WordPress开发者和主题制作者的搜索引擎
got_url_rewrite › WordPress Function
Since3.7.0
已弃用n/a
› got_url_rewrite ( 没有参数 )
| 返回: |
|
| 定义在: |
|
| 文档: |
Returns whether the server supports URL rewriting.
Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.Related Functions: got_mod_rewrite, get_current_site, get_url_in_content, get_num_queries, rest_get_url_prefix
源码
function got_url_rewrite() {
$got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || $GLOBALS['is_caddy'] || iis7_supports_permalinks() );
/**
* Filters whether URL rewriting is available.
*
* @since 3.7.0
*
* @param bool $got_url_rewrite Whether URL rewriting is available.
*/
return apply_filters( 'got_url_rewrite', $got_url_rewrite );
}