Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 6dffdc6

Browse files
committed
Deactivate itself if Webmention Version is 5.0.0 or above
1 parent 6ba6b5c commit 6dffdc6

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Semantic-Linkbacks #
2-
**Contributors:** [pfefferle](https://profiles.wordpress.org/pfefferle), [dshanske](https://profiles.wordpress.org/dshanske), [edent](https://profiles.wordpress.org/edent)
2+
**Contributors:** [pfefferle](https://profiles.wordpress.org/pfefferle/), [dshanske](https://profiles.wordpress.org/dshanske/), [edent](https://profiles.wordpress.org/edent/)
33
**Donate link:** https://notiz.blog/donate/
44
**Tags:** webmention, pingback, trackback, linkback, microformats, comments, indieweb
55
**Requires at least:** 4.9
66
**Requires PHP:** 5.6
7-
**Tested up to:** 5.9
8-
**Stable tag:** 3.11.1
7+
**Tested up to:** 6.1
8+
**Stable tag:** 3.12.0
99
**License:** MIT
1010
**License URI:** http://opensource.org/licenses/MIT
1111

@@ -86,6 +86,10 @@ The plugin uses a locally cached version of the mystery icon normally provided b
8686

8787
Project actively developed on Github at [pfefferle/wordpress-semantic-linkbacks](https://github.com/pfefferle/wordpress-semantic-linkbacks). Please file support issues there.
8888

89+
### 3.12.0 ###
90+
91+
* Deactivate itself if Webmention Version is 5.0.0 or above
92+
8993
### 3.11.1 ###
9094

9195
* Fix HTML issue

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Donate link: https://notiz.blog/donate/
44
Tags: webmention, pingback, trackback, linkback, microformats, comments, indieweb
55
Requires at least: 4.9
66
Requires PHP: 5.6
7-
Tested up to: 5.9
8-
Stable tag: 3.11.1
7+
Tested up to: 6.1
8+
Stable tag: 3.12.0
99
License: MIT
1010
License URI: http://opensource.org/licenses/MIT
1111

@@ -86,6 +86,10 @@ The plugin uses a locally cached version of the mystery icon normally provided b
8686

8787
Project actively developed on Github at [pfefferle/wordpress-semantic-linkbacks](https://github.com/pfefferle/wordpress-semantic-linkbacks). Please file support issues there.
8888

89+
= 3.12.0 =
90+
91+
* Deactivate itself if Webmention Version is 5.0.0 or above
92+
8993
= 3.11.1 =
9094

9195
* Fix HTML issue

semantic-linkbacks.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,27 @@
55
* Description: Semantic Linkbacks for WebMentions, Trackbacks and Pingbacks
66
* Author: Matthias Pfefferle
77
* Author URI: https://notiz.blog/
8-
* Version: 3.11.1
8+
* Version: 3.12.0
99
* License: MIT
1010
* License URI: http://opensource.org/licenses/MIT
1111
* Text Domain: semantic-linkbacks
1212
* Requires PHP: 5.6
1313
*/
1414

15-
add_action( 'plugins_loaded', array( 'Semantic_Linkbacks_Plugin', 'init' ), 11 );
15+
if ( ! function_exists( '\Webmention\version' ) || version_compare( \Webmention\version(), '5.0.0', '<' ) ) {
16+
add_action( 'plugins_loaded', array( 'Semantic_Linkbacks_Plugin', 'init' ), 11 );
1617

17-
// initialize admin settings
18-
add_action( 'admin_init', array( 'Semantic_Linkbacks_Plugin', 'admin_init' ) );
18+
// initialize admin settings
19+
add_action( 'admin_init', array( 'Semantic_Linkbacks_Plugin', 'admin_init' ) );
20+
}
1921

2022
/**
2123
* Semantic linkbacks class
2224
*
2325
* @author Matthias Pfefferle
2426
*/
2527
class Semantic_Linkbacks_Plugin {
26-
public static $version = '3.10.3';
28+
public static $version = '3.12.0';
2729
/**
2830
* Initialize the plugin, registering WordPress hooks.
2931
*/

0 commit comments

Comments
 (0)