Make WordPress Core

Opened 11 years ago

Last modified 8 years ago

#34776 new enhancement

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

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

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

Download all attachments as: .zip

Change History (5)

@sebastian.pisula
10 years ago

$home_root i more important

@sebastian.pisula
8 years ago

Refreshed patch

#1 @sebastian.pisula
8 years ago

  • Keywords has-patch added

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


8 years ago

Note: See TracTickets for help on using tickets.