Skip to content

Commit

Permalink
Quick fix to disable the upgrade script
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Jun 12, 2024
1 parent de6f026 commit 112f6f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.9.2
- Quick fix to disable the upgrade script to avoid errors.

### 0.9.1
- Allow an empty search type, to search in all categories ([#150]) props @pfefferle
- Don't reactivate the Link Manager ([#148])
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
- Tested up to: 6.5
- Requires PHP: 7.4
- License: [GPLv2 or later](http://www.gnu.org/licenses/gpl-2.0.html)
- Stable tag: 0.9.1
- Stable tag: 0.9.2

Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance.

Expand Down Expand Up @@ -97,6 +97,9 @@ Endpoints around interacting with non-local users require the [ActivityPub plugi

## Changelog

### 0.9.2
- Quick fix to disable the upgrade script to avoid errors.

### 0.9.1
- Allow an empty search type, to search in all categories ([#150]) props @pfefferle
- Don't reactivate the Link Manager ([#148])
Expand Down
8 changes: 2 additions & 6 deletions enable-mastodon-apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin name: Enable Mastodon Apps
* Plugin author: Alex Kirk
* Plugin URI: https://github.com/akirk/enable-mastodon-apps
* Version: 0.9.1
* Version: 0.9.2
*
* Description: Allow accessing your WordPress with Mastodon clients. Just enter your own blog URL as your instance.
*
Expand All @@ -15,7 +15,7 @@

defined( 'ABSPATH' ) || exit;
define( 'ENABLE_MASTODON_APPS_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'ENABLE_MASTODON_APPS_VERSION', '0.9.1' );
define( 'ENABLE_MASTODON_APPS_VERSION', '0.9.2' );

require __DIR__ . '/vendor/bshaffer/oauth2-server-php/src/OAuth2/Autoloader.php';
OAuth2\Autoloader::register();
Expand Down Expand Up @@ -64,7 +64,3 @@ function () {
new Enable_Mastodon_Apps\Comment_CPT();
}
);

if ( is_admin() && version_compare( get_option( 'ema_plugin_version', ENABLE_MASTODON_APPS_VERSION ), '<' ) ) {
add_action( 'admin_init', array( __NAMESPACE__ . '\Mastodon_Admin', 'upgrade_plugin' ) );
}

0 comments on commit 112f6f8

Please sign in to comment.