Skip to content

Commit

Permalink
Fix rewrite rules for NodeInfo (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
obenland authored Jan 21, 2025
1 parent 6362851 commit 9ed81d6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions includes/class-migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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. ^
Expand Down
9 changes: 5 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,17 +132,18 @@ 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
* Removed: Built-in support for nodeinfo2. Use the [NodeInfo plugin](https://wordpress.org/plugins/nodeinfo/) instead.
* 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
Expand Down

0 comments on commit 9ed81d6

Please sign in to comment.