Make WordPress Core

Opened 9 years ago

Last modified 7 years ago

#34776 new enhancement

Introduced the `$site_root` and `$home_root` parameter in `mod_rewrite_rules`

Reported by: sebastianpisula's profile sebastian.pisula Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Rewrite Rules Keywords: has-patch
Focuses: Cc:

Description

if I want make custom rewrite rule I must use in filter this script:

<?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

Attachments (3)

34776.patch (967 bytes) - added by sebastian.pisula 9 years ago.
34776.2.patch (902 bytes) - added by sebastian.pisula 9 years ago.
$home_root i more important
34776.3.patch (925 bytes) - added by sebastian.pisula 7 years ago.
Refreshed patch

Download all attachments as: .zip

Change History (5)

@sebastian.pisula
9 years ago

$home_root i more important

@sebastian.pisula
7 years ago

Refreshed patch

#1 @sebastian.pisula
7 years ago

  • Keywords has-patch added

This ticket was mentioned in Slack in #core by sebastian.pisula. View the logs.


7 years ago

Note: See TracTickets for help on using tickets.