WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 21 months ago

#34776 new enhancement

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

Reported by: sebastian.pisula Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Rewrite Rules Keywords: has-patch
Focuses: Cc:
PR Number:

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 4 years ago.
34776.2.patch (902 bytes) - added by sebastian.pisula 4 years ago.
$home_root i more important
34776.3.patch (925 bytes) - added by sebastian.pisula 21 months ago.
Refreshed patch

Download all attachments as: .zip

Change History (5)

@sebastian.pisula
4 years ago

$home_root i more important

@sebastian.pisula
21 months ago

Refreshed patch

#1 @sebastian.pisula
21 months ago

  • Keywords has-patch added

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


21 months ago

Note: See TracTickets for help on using tickets.