WordPress.org

Make WordPress Core

Ticket #34776: 34776.2.patch

File 34776.2.patch, 902 bytes (added by sebastian.pisula, 4 years ago)

$home_root i more important

  • wp-includes/class-wp-rewrite.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    15531553                 * Filter the list of rewrite rules formatted for output to an .htaccess file.
    15541554                 *
    15551555                 * @since 1.5.0
     1556                 * @since 4.6.0 Introduced the `$home_root` parameter.
    15561557                 *
     1558                 * @param string $home_root Home root path.
    15571559                 * @param string $rules mod_rewrite Rewrite rules formatted for .htaccess.
    15581560                 */
    1559                 $rules = apply_filters( 'mod_rewrite_rules', $rules );
     1561                $rules = apply_filters( 'mod_rewrite_rules', $rules, $home_root );
    15601562
    15611563                /**
    15621564                 * Filter the list of rewrite rules formatted for output to an .htaccess file.