ACF to REST API - Version 2.0.7

Version Description

bugfix when create a new item

Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

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.6
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.6';
20
 
21
  public static function init() {
22
  self::includes();
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.7
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.7';
20
 
21
  public static function init() {
22
  self::includes();
lib/endpoints/class-acf-to-rest-api-controller.php CHANGED
@@ -77,7 +77,7 @@ if ( ! class_exists( 'ACF_To_REST_API_Controller' ) ) {
77
  }
78
 
79
  public function rest_insert( $object, $request, $creating ) {
80
- if ( $request instanceof WP_REST_Request && ! $this->get_id( $request ) && $this->format_id( $object ) ) {
81
  $request->set_param( 'id', $this->id );
82
  }
83
 
77
  }
78
 
79
  public function rest_insert( $object, $request, $creating ) {
80
+ if ( $request instanceof WP_REST_Request && ! $this->get_id( $request ) && $this->get_id( $object ) ) {
81
  $request->set_param( 'id', $this->id );
82
  }
83
 
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.6
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.6 =
26
  removing unnecessary code
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.7
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.7 =
26
+ bugfix when create a new item
27
+
28
  = 2.0.6 =
29
  removing unnecessary code
30