diff --git a/README.md b/README.md index 7ce1b51..52b54d2 100755 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # Semantic-Linkbacks # -**Contributors:** [pfefferle](https://profiles.wordpress.org/pfefferle), [dshanske](https://profiles.wordpress.org/dshanske), [edent](https://profiles.wordpress.org/edent) +**Contributors:** [pfefferle](https://profiles.wordpress.org/pfefferle/), [dshanske](https://profiles.wordpress.org/dshanske/), [edent](https://profiles.wordpress.org/edent/) **Donate link:** https://notiz.blog/donate/ **Tags:** webmention, pingback, trackback, linkback, microformats, comments, indieweb **Requires at least:** 4.9 **Requires PHP:** 5.6 -**Tested up to:** 5.9 -**Stable tag:** 3.11.1 +**Tested up to:** 6.1 +**Stable tag:** 3.12.0 **License:** MIT **License URI:** http://opensource.org/licenses/MIT @@ -86,6 +86,10 @@ The plugin uses a locally cached version of the mystery icon normally provided b Project actively developed on Github at [pfefferle/wordpress-semantic-linkbacks](https://github.com/pfefferle/wordpress-semantic-linkbacks). Please file support issues there. +### 3.12.0 ### + +* Deactivate itself if Webmention Version is 5.0.0 or above + ### 3.11.1 ### * Fix HTML issue diff --git a/readme.txt b/readme.txt index 2d82f24..d419b10 100755 --- a/readme.txt +++ b/readme.txt @@ -4,8 +4,8 @@ Donate link: https://notiz.blog/donate/ Tags: webmention, pingback, trackback, linkback, microformats, comments, indieweb Requires at least: 4.9 Requires PHP: 5.6 -Tested up to: 5.9 -Stable tag: 3.11.1 +Tested up to: 6.1 +Stable tag: 3.12.0 License: MIT License URI: http://opensource.org/licenses/MIT @@ -86,6 +86,10 @@ The plugin uses a locally cached version of the mystery icon normally provided b Project actively developed on Github at [pfefferle/wordpress-semantic-linkbacks](https://github.com/pfefferle/wordpress-semantic-linkbacks). Please file support issues there. += 3.12.0 = + +* Deactivate itself if Webmention Version is 5.0.0 or above + = 3.11.1 = * Fix HTML issue diff --git a/semantic-linkbacks.php b/semantic-linkbacks.php index 0e07774..6dfcd1d 100755 --- a/semantic-linkbacks.php +++ b/semantic-linkbacks.php @@ -5,17 +5,19 @@ * Description: Semantic Linkbacks for WebMentions, Trackbacks and Pingbacks * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ - * Version: 3.11.1 + * Version: 3.12.0 * License: MIT * License URI: http://opensource.org/licenses/MIT * Text Domain: semantic-linkbacks * Requires PHP: 5.6 */ -add_action( 'plugins_loaded', array( 'Semantic_Linkbacks_Plugin', 'init' ), 11 ); +if ( ! function_exists( '\Webmention\version' ) || version_compare( \Webmention\version(), '5.0.0', '<' ) ) { + add_action( 'plugins_loaded', array( 'Semantic_Linkbacks_Plugin', 'init' ), 11 ); -// initialize admin settings -add_action( 'admin_init', array( 'Semantic_Linkbacks_Plugin', 'admin_init' ) ); + // initialize admin settings + add_action( 'admin_init', array( 'Semantic_Linkbacks_Plugin', 'admin_init' ) ); +} /** * Semantic linkbacks class @@ -23,7 +25,7 @@ * @author Matthias Pfefferle */ class Semantic_Linkbacks_Plugin { - public static $version = '3.10.3'; + public static $version = '3.12.0'; /** * Initialize the plugin, registering WordPress hooks. */