Changeset 2330886
- Timestamp:
- 06/25/2020 08:10:38 PM (5 years ago)
- Location:
- acf-to-rest-api/trunk
- Files:
-
- 4 edited
-
class-acf-to-rest-api.php (modified) (2 diffs)
-
composer.json (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
v3/lib/class-acf-to-rest-api-acf-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
acf-to-rest-api/trunk/class-acf-to-rest-api.php
r2330708 r2330886 5 5 * Author: Aires Gonçalves 6 6 * Author URI: http://github.com/airesvsg 7 * Version: 3.3. 07 * Version: 3.3.1 8 8 * Plugin URI: http://github.com/airesvsg/acf-to-rest-api 9 9 */ … … 17 17 class ACF_To_REST_API { 18 18 19 const VERSION = '3.3. 0';19 const VERSION = '3.3.1'; 20 20 21 21 private static $old_request_version = 2; -
acf-to-rest-api/trunk/composer.json
r2330708 r2330886 3 3 "description": "Exposes Advanced Custom Fields Endpoints in the WordPress REST API", 4 4 "type": "wordpress-plugin", 5 "version": "3.3. 0",5 "version": "3.3.1", 6 6 "keywords": ["wordpress", "wp", "rest-api", "acf", "wp-api", "json", "wordpres-plugin", "fields"], 7 7 "homepage": "https://github.com/airesvsg/acf-to-rest-api", -
acf-to-rest-api/trunk/readme.txt
r2330708 r2330886 5 5 Requires at least: 4.6 6 6 Tested up to: 5.4.2 7 Stable tag: 3.3. 07 Stable tag: 3.3.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 21 21 22 22 == Changelog == 23 24 = 3.3.1 = 25 fix endpoint with field name - exemple: /wp-json/acf/v3/posts/{id}/{field-name} 23 26 24 27 = 3.3.0 = -
acf-to-rest-api/trunk/v3/lib/class-acf-to-rest-api-acf-api.php
r2330708 r2330886 81 81 82 82 if ( $this->get_id( $request ) ) { 83 if ( $field && 'options' === $this->id ) { 83 $is_option = 'option' == $this->type && 'options' == $this->id; 84 if ( $field && ( $is_option || ! $is_option && $this->id > 0 ) ) { 84 85 $data[ $field ] = get_field( $field, $this->id ); 85 86 } else {
Note: See TracChangeset
for help on using the changeset viewer.