ACF to REST API - Version 2.0.6

Version Description

removing unnecessary code

Download this release

Release Info

Developer airesvsg
Plugin Icon 128x128 ACF to REST API
Version 2.0.6
Comparing to
See all releases

Code changes from version 2.0.5 to 2.0.6

Files changed (2) hide show
  1. class-acf-to-rest-api.php +2 -6
  2. readme.txt +4 -1
class-acf-to-rest-api.php CHANGED
@@ -4,7 +4,7 @@
4
  * Description: Edit, Get and Puts ACF fields in WordPress REST API.
5
  * Author: Aires Gonçalves
6
  * Author URI: http://github.com/airesvsg
7
- * Version: 2.0.5
8
  * Plugin URI: http://github.com/airesvsg/acf-to-rest-api
9
  */
10
 
@@ -16,7 +16,7 @@ if ( ! class_exists( 'ACF_To_REST_API' ) ) {
16
 
17
  class ACF_To_REST_API {
18
 
19
- const VERSION = '2.0.5';
20
 
21
  public static function init() {
22
  self::includes();
@@ -76,10 +76,6 @@ if ( ! class_exists( 'ACF_To_REST_API' ) ) {
76
  }
77
 
78
  public static function is_plugin_active( $plugin ) {
79
- if ( ! function_exists( 'is_plugin_active' ) ) {
80
- include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
81
- }
82
-
83
  if ( 'rest-api' == $plugin ) {
84
  return class_exists( 'WP_REST_Controller' );
85
  } elseif ( 'acf' == $plugin ) {
4
  * Description: Edit, Get and Puts ACF fields in WordPress REST API.
5
  * Author: Aires Gonçalves
6
  * Author URI: http://github.com/airesvsg
7
+ * Version: 2.0.6
8
  * Plugin URI: http://github.com/airesvsg/acf-to-rest-api
9
  */
10
 
16
 
17
  class ACF_To_REST_API {
18
 
19
+ const VERSION = '2.0.6';
20
 
21
  public static function init() {
22
  self::includes();
76
  }
77
 
78
  public static function is_plugin_active( $plugin ) {
 
 
 
 
79
  if ( 'rest-api' == $plugin ) {
80
  return class_exists( 'WP_REST_Controller' );
81
  } elseif ( 'acf' == $plugin ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: airesvsg
3
  Tags: acf, api, rest, wp-api, wp-rest-api, json, wp, wordpress, wp-rest-api
4
  Requires at least: 4.3
5
  Tested up to: 4.4
6
- Stable tag: 2.0.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -22,6 +22,9 @@ http://github.com/airesvsg/acf-to-rest-api
22
 
23
  == Changelog ==
24
 
 
 
 
25
  = 2.0.5 =
26
  changing how to check dependencies
27
 
3
  Tags: acf, api, rest, wp-api, wp-rest-api, json, wp, wordpress, wp-rest-api
4
  Requires at least: 4.3
5
  Tested up to: 4.4
6
+ Stable tag: 2.0.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
22
 
23
  == Changelog ==
24
 
25
+ = 2.0.6 =
26
+ removing unnecessary code
27
+
28
  = 2.0.5 =
29
  changing how to check dependencies
30