Skip to content

Commit 87cad5c

Browse files
committed
Fix rewrite rules for NodeInfo (#1191)
1 parent d4d0ef5 commit 87cad5c

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [Untitled]
9+
10+
### Fixed
11+
12+
* Flush rewrite rules after NodeInfo update.
13+
814
## [4.7.2] - 2025-01-17
915

1016
### Fixed

includes/class-migration.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ public static function maybe_migrate() {
167167
if ( \version_compare( $version_from_db, '4.7.2', '<' ) ) {
168168
self::migrate_to_4_7_2();
169169
}
170+
if ( \version_compare( $version_from_db, 'unreleased', '<' ) ) {
171+
add_action( 'init', 'flush_rewrite_rules', 20 );
172+
}
170173

171174
/**
172175
* Fires when the system has to be migrated.

readme.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ For reasons of data protection, it is not possible to see the followers of other
132132

133133
== Changelog ==
134134

135+
= Unreleased =
136+
137+
* Fixed: Flush rewrite rules after NodeInfo update.
138+
135139
= 4.7.2 =
136140

137141
* Added: Support for WPML post locale

0 commit comments

Comments
 (0)