[wp-trac] [WordPress Trac] #36915: Permalinks broken after 4.5 Rewrite rules
WordPress Trac
noreply at wordpress.org
Sun May 22 20:08:06 UTC 2016
#36915: Permalinks broken after 4.5 Rewrite rules
---------------------------+-----------------------------
Reporter: fatorbinario | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 4.5
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Hi guys,
Some of my websites had the permalinks broken after upgrading to 4.5.
My webserver is NginX and the theme is iMedica.
How I fixed:
============
This file: /wp-includes/class-wp-rewrite.php
Line: 1813: "update_option( 'rewrite_rules', '' );"
Before 4.5 that line was "delete_option('rewrite_rules');"
But I think when WP team changed to update_option function they missed a
parameter, it should be:
"update_option('rewrite_rules', $this->rules);"
After fixing this the permalink started working again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36915>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list