WordPress.org

Make WordPress Core

Ticket #34776: 34776.3.patch

File 34776.3.patch, 925 bytes (added by sebastian.pisula, 22 months ago)

Refreshed patch

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

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    15451545                 * Filters the list of rewrite rules formatted for output to an .htaccess file.
    15461546                 *
    15471547                 * @since 1.5.0
     1548                 * @since 5.0.0 Introduced the `$site_root` and `$home_root` parameter.
    15481549                 *
    15491550                 * @param string $rules mod_rewrite Rewrite rules formatted for .htaccess.
     1551                 * @param string $home_root Home root
     1552                 * @param string $site_root Site root
    15501553                 */
    1551                 $rules = apply_filters( 'mod_rewrite_rules', $rules );
     1554                $rules = apply_filters( 'mod_rewrite_rules', $rules, $home_root, $site_root );
    15521555
    15531556                /**
    15541557                 * Filters the list of rewrite rules formatted for output to an .htaccess file.