Site logo

Archived topic

Updating GP Premium & permalinks

5 replies · Started by vast on October 7, 2020

Viewing posts 1–6 of 6

Hi Tom,

The post has been updated since in exploring it further, the upgrade and the occurrence of the issue (links redirecting to the home page) appears to be coincidental.

Instead it points to add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' ); which has been added to the functions.php file.

The steps to reproduce these are;
1. Embed the code `add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' ); to the functions.php file.
2. Access Settings > Permalink

Digging into WordPress further, the action results in the internal WordPress rewrite rules being replaced with an empty value.

To resolve the issue, either remove and/or comment out add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' ); when upgrading WordPress and/or accessing the permalink settings. The problem may also manifest if a plugin interfaces with permalinks (untested).

Hi there,

This sounds like an issue with your permalinks.

What custom format are you using?

What custom functions are you removing in step 3?

The original post has been updated. Hopefully if anyone else experiences a similar issue, it may save them from the many hours of looking for a needle in the haystack.

Glad you got it sorted - is that function something you added to your own functions.php file?

Thanks for sharing the solution :)

It was added to the child theme functions.php file.

Got it - thanks again for sharing :)

This archived topic is closed to new replies.