Plugin Directory

Changeset 2330886


Ignore:
Timestamp:
06/25/2020 08:10:38 PM (5 years ago)
Author:
airesvsg
Message:

3.3.1

Location:
acf-to-rest-api/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • acf-to-rest-api/trunk/class-acf-to-rest-api.php

    r2330708 r2330886  
    55 * Author: Aires Gonçalves
    66 * Author URI: http://github.com/airesvsg
    7  * Version: 3.3.0
     7 * Version: 3.3.1
    88 * Plugin URI: http://github.com/airesvsg/acf-to-rest-api
    99 */
     
    1717    class ACF_To_REST_API {
    1818
    19         const VERSION = '3.3.0';
     19        const VERSION = '3.3.1';
    2020
    2121        private static $old_request_version     = 2;
  • acf-to-rest-api/trunk/composer.json

    r2330708 r2330886  
    33  "description": "Exposes Advanced Custom Fields Endpoints in the WordPress REST API",
    44  "type": "wordpress-plugin",
    5   "version": "3.3.0",
     5  "version": "3.3.1",
    66  "keywords": ["wordpress", "wp", "rest-api", "acf", "wp-api", "json", "wordpres-plugin", "fields"],
    77  "homepage": "https://github.com/airesvsg/acf-to-rest-api",
  • acf-to-rest-api/trunk/readme.txt

    r2330708 r2330886  
    55Requires at least: 4.6
    66Tested up to: 5.4.2
    7 Stable tag: 3.3.0
     7Stable tag: 3.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2121
    2222== Changelog ==
     23
     24= 3.3.1 =
     25fix endpoint with field name - exemple: /wp-json/acf/v3/posts/{id}/{field-name}
    2326
    2427= 3.3.0 =
  • acf-to-rest-api/trunk/v3/lib/class-acf-to-rest-api-acf-api.php

    r2330708 r2330886  
    8181
    8282            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 ) ) {
    8485                    $data[ $field ] = get_field( $field, $this->id );
    8586                } else {
Note: See TracChangeset for help on using the changeset viewer.