[wp-meta] [Making WordPress.org] #6835: Corrupt code in official documentation
Making WordPress.org
noreply at wordpress.org
Sun Mar 5 14:16:57 UTC 2023
#6835: Corrupt code in official documentation
---------------------------+-----------------------
Reporter: Ov3rfly | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: Developer Hub | Resolution:
Keywords: |
---------------------------+-----------------------
Changes (by Ov3rfly):
* status: closed => reopened
* resolution: invalid =>
Comment:
WordPress core adds `<IfModule>` lines to `.htaccess` since version 1.5.0.
https://developer.wordpress.org/reference/classes/wp_rewrite/mod_rewrite_rules/
The official documentation clearly states:
This page may be used to restore a corrupted .htaccess file (e.g. a
misbehaving plugin).
This first code block is clearly meant for copy&paste directly into place.
The `<IfModule>` lines also have been in documentation since ever.
There is no reason to remove these lines. Empty lines are there now
instead.
That leads to conclusion that this code must be corrupt.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/6835#comment:2>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list