From f73f41199f6616d1586c37da72a8daa2b98ba4d5 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 21 Jan 2025 09:52:48 -0600 Subject: [PATCH] Fix rewrite rules for NodeInfo --- CHANGELOG.md | 4 ++++ includes/class-migration.php | 3 +++ readme.txt | 9 +++++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d316908f2..2ade73e8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Improved content negotiation and AUTHORIZED_FETCH support for third-party plugins +### Fixed + +* Flush rewrite rules after NodeInfo update. + ## [4.7.2] - 2025-01-17 ### Fixed diff --git a/includes/class-migration.php b/includes/class-migration.php index 9cb65aa4e..016628712 100644 --- a/includes/class-migration.php +++ b/includes/class-migration.php @@ -167,6 +167,9 @@ public static function maybe_migrate() { if ( \version_compare( $version_from_db, '4.7.2', '<' ) ) { self::migrate_to_4_7_2(); } + if ( \version_compare( $version_from_db, 'unreleased', '<' ) ) { + add_action( 'init', 'flush_rewrite_rules', 20 ); + } /* * Add new update routines above this comment. ^ diff --git a/readme.txt b/readme.txt index 807b9191c..41ef2505d 100644 --- a/readme.txt +++ b/readme.txt @@ -132,6 +132,11 @@ For reasons of data protection, it is not possible to see the followers of other == Changelog == += Unreleased = + +* Changed: Improved content negotiation and AUTHORIZED_FETCH support for third-party plugins +* Fixed: Flush rewrite rules after NodeInfo update. + = 4.7.2 = * Added: Support for WPML post locale @@ -139,10 +144,6 @@ For reasons of data protection, it is not possible to see the followers of other * Fixed: More robust handling of `_activityPubOptions` in scripts, using a `useOptions()` helper. * Fixed: Flush post caches after Followers migration. -= Unreleased = - -* Changed: Improved content negotiation and AUTHORIZED_FETCH support for third-party plugins - = 4.7.1 = * Fixed: Missing migration