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

Commit d0a0f1d

Browse files
committed
removed php version check
and added "Requires PHP: 5.3" also removed the compatibility file
1 parent 8d57af9 commit d0a0f1d

File tree

4 files changed

+8
-24
lines changed

4 files changed

+8
-24
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
**Contributors:** pfefferle, dshanske
33
**Donate link:** http://14101978.de
44
**Tags:** webmention, pingback, trackback, linkback, microformats, comments, indieweb
5-
**Requires at least:** 4.7.1
5+
**Requires at least:** 4.8.2
66
**Requires PHP:** 5.3
77
**Tested up to:** 4.8.2
88
**Stable tag:** 3.5.0
99
**License:** MIT
1010
**License URI:** http://opensource.org/licenses/MIT
11+
**Requires PHP:** 5.3
1112

1213
Richer Comments and Linkbacks for WordPress!
1314

includes/compatibility.php

Lines changed: 0 additions & 1 deletion
This file was deleted.

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
Contributors: pfefferle, dshanske
33
Donate link: http://14101978.de
44
Tags: webmention, pingback, trackback, linkback, microformats, comments, indieweb
5-
Requires at least: 4.7.1
5+
Requires at least: 4.8.2
66
Requires PHP: 5.3
77
Tested up to: 4.8.2
88
Stable tag: 3.5.0
99
License: MIT
1010
License URI: http://opensource.org/licenses/MIT
11+
Requires PHP: 5.3
1112

1213
Richer Comments and Linkbacks for WordPress!
1314

semantic-linkbacks.php

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,9 @@
99
* License: MIT
1010
* License URI: http://opensource.org/licenses/MIT
1111
* Text Domain: semantic-linkbacks
12+
* Requires PHP: 5.3
1213
*/
1314

14-
// check if php version is >= 5.3
15-
// version is required by the mf2 parser
16-
// FIXME: Technically it can run just not without the MF2 functionality
17-
// But what does it do if not MF2 parsing?
18-
function semantic_linkbacks_activation() {
19-
if ( version_compare( phpversion(), 5.3, '<' ) ) {
20-
die( 'The minimum PHP version required for this plugin is 5.3' );
21-
}
22-
}
23-
register_activation_hook( __FILE__, 'semantic_linkbacks_activation' );
24-
2515
add_action( 'plugins_loaded', array( 'Semantic_Linkbacks_Plugin', 'init' ) );
2616

2717
/**
@@ -40,15 +30,8 @@ public static function init() {
4030
require_once( dirname( __FILE__ ) . '/includes/class-linkbacks-handler.php' );
4131
add_action( 'init', array( 'Linkbacks_Handler', 'init' ) );
4232

43-
// run plugin only if php version is >= 5.3
44-
if ( version_compare( phpversion(), 5.3, '>=' ) ) {
45-
require_once( dirname( __FILE__ ) . '/includes/class-linkbacks-mf2-handler.php' );
46-
add_action( 'init', array( 'Linkbacks_MF2_Handler', 'init' ) );
47-
}
48-
49-
if ( version_compare( get_bloginfo( 'version' ), '4.7.1', '<' ) ) {
50-
require_once( dirname( __FILE__ ) . '/includes/compatibility.php' );
51-
}
33+
require_once( dirname( __FILE__ ) . '/includes/class-linkbacks-mf2-handler.php' );
34+
add_action( 'init', array( 'Linkbacks_MF2_Handler', 'init' ) );
5235

5336
add_action( 'wp_enqueue_scripts', array( 'Semantic_Linkbacks_Plugin', 'style_load' ) );
5437

@@ -80,7 +63,7 @@ public static function plugin_textdomain() {
8063
load_plugin_textdomain( 'semantic-linkbacks', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
8164
}
8265

83-
/**
66+
/**
8467
* Add Semantic Linkbacks options to the WordPress discussion settings page.
8568
*/
8669
public static function discussion_settings() {

0 commit comments

Comments
 (0)