From 4692cf5dad25aa553fb9579dcaf141ff04771dd7 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Mon, 3 Mar 2025 10:31:26 -0600 Subject: [PATCH] Release 5.4.0 (#1403) --- CHANGELOG.md | 5 +++-- activitypub.php | 4 ++-- includes/class-migration.php | 2 +- readme.txt | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e8b4cd46..3ce971635 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [5.4.0] - 2025-03-03 ### Added @@ -1361,8 +1361,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * initial -[Unreleased]: https://github.com/Automattic/wordpress-activitypub/compare/5.3.2...trunk +[Unreleased]: https://github.com/Automattic/wordpress-activitypub/compare/5.4.0...trunk +[5.4.0]: https://github.com/Automattic/wordpress-activitypub/compare/5.3.2...5.4.0 [5.3.2]: https://github.com/Automattic/wordpress-activitypub/compare/5.3.1...5.3.2 [5.3.1]: https://github.com/Automattic/wordpress-activitypub/compare/5.3.0...5.3.1 [5.3.0]: https://github.com/Automattic/wordpress-activitypub/compare/5.2.0...5.3.0 diff --git a/activitypub.php b/activitypub.php index 23e4dad44..34ea205bb 100644 --- a/activitypub.php +++ b/activitypub.php @@ -3,7 +3,7 @@ * Plugin Name: ActivityPub * Plugin URI: https://github.com/Automattic/wordpress-activitypub * Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format. - * Version: 5.3.2 + * Version: 5.4.0 * Author: Matthias Pfefferle & Automattic * Author URI: https://automattic.com/ * License: MIT @@ -19,7 +19,7 @@ use WP_CLI; -\define( 'ACTIVITYPUB_PLUGIN_VERSION', '5.3.2' ); +\define( 'ACTIVITYPUB_PLUGIN_VERSION', '5.4.0' ); // Plugin related constants. \define( 'ACTIVITYPUB_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); diff --git a/includes/class-migration.php b/includes/class-migration.php index 9c3207fec..a7e1b6536 100644 --- a/includes/class-migration.php +++ b/includes/class-migration.php @@ -182,7 +182,7 @@ public static function maybe_migrate() { if ( \version_compare( $version_from_db, '5.2.0', '<' ) ) { Scheduler::register_schedules(); } - if ( \version_compare( $version_from_db, 'unreleased', '<' ) ) { + if ( \version_compare( $version_from_db, '5.4.0', '<' ) ) { \wp_schedule_single_event( \time(), 'activitypub_upgrade', array( 'update_actor_json_slashing' ) ); \wp_schedule_single_event( \time(), 'activitypub_upgrade', array( 'update_comment_author_emails' ) ); \add_action( 'init', 'flush_rewrite_rules', 20 ); diff --git a/readme.txt b/readme.txt index 2f3c9bc59..775be8379 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: automattic, pfefferle, mattwiebe, obenland, akirk, jeherve, mediaf Tags: OStatus, fediverse, activitypub, activitystream Requires at least: 6.4 Tested up to: 6.7 -Stable tag: 5.3.2 +Stable tag: 5.4.0 Requires PHP: 7.2 License: MIT License URI: http://opensource.org/licenses/MIT @@ -129,7 +129,7 @@ For reasons of data protection, it is not possible to see the followers of other == Changelog == -= Unreleased = += 5.4.0 = * Added: Upgrade script to fix Follower json representations with unescaped backslashes. * Added: Centralized place for sanitization functions.