8000 Merge pull request #2940 from WP-API/no-op-4.7 · WP-API/WP-API@47bce40 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit 47bce40

Browse files
authored
Merge pull request #2940 from WP-API/no-op-4.7
Don't run the plugin on 4.7.
2 parents 1cc8485 + 75c16a8 commit 47bce40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

plugin.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
* License: GPL2+
1010
*/
1111

12+
/**
13+
* No-op on 4.7. This plugin is no longer required when using WordPress 4.7. Though there's
14+
* no big compatibility issues actually running the plugin along with 4.7, there's a chance
15+
* the filters and actions registered can cause odd edgecases.
16+
*/
17+
global $wp_version;
18+
if ( version_compare( $wp_version, '4.7-alpha', '>=' ) ) {
19+
return;
20+
}
21+
1222
/**
1323
* WP_REST_Controller class.
1424
*/

0 commit comments

Comments
 (0)
0