[wp-trac] [WordPress Trac] #34776: Introduced the `$site_root` and `$home_root` parameter in `mod_rewrite_rules`
WordPress Trac
noreply at wordpress.org
Tue Nov 24 07:51:31 UTC 2015
#34776: Introduced the `$site_root` and `$home_root` parameter in
`mod_rewrite_rules`
------------------------------+-----------------------------
Reporter: sebastian.pisula | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
if I want make custom rewrite rule I must use in filter this script:
{{{#!php
<?php
$home_root = parse_url(home_url());
if ( isset( $home_root['path'] ) )
$home_root = trailingslashit($home_root['path']);
else
$home_root = '/';
}}}
So I think that this is good idea with new params in filter
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34776>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list