Plugin Directory

Changeset 1404158


Ignore:
Timestamp:
04/26/2016 12:10:51 AM (10 years ago)
Author:
oleg2tor
Message:

Fix: is_cart was always true

Location:
wp-api-v2-woocommerce-endpoints/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-api-v2-woocommerce-endpoints/trunk/readme.txt

    r1377468 r1404158  
    33Tags: wp-api, wp-rest-api, json-rest-api, json, woocommerce, rest, api, woocommerce-endpoints
    44Requires at least: 3.6.0
    5 Tested up to: 4.4.2
    6 Stable tag: 1.0.0
     5Tested up to: 4.5
     6Stable tag: 1.0.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3939
    4040== Changelog ==
     41= 1.1.0 =
     42* Fix: is_cart was always true
     43
    4144= 1.0.0 =
    4245* First public release
  • wp-api-v2-woocommerce-endpoints/trunk/wp-api-woocommerce-endpoints.php

    r1378328 r1404158  
    44Description: WP REST API (V2) Modifications for Woocommerce endpoints.
    55Author: Oleg Kostin
    6 Version: 1.0.1
     6Version: 1.0.2
    77Author URI: http://pmr.io
    88*/
     
    8686             */
    8787            function wp_rest_is_cart( $object, $field_name, $request ) {
    88                 return wc_get_page_id( 'cart' ) === $object['id'] || defined( 'WOOCOMMERCE_CART' );
     88                return wc_get_page_id( 'cart' ) === $object['id'];
    8989            }
    9090
Note: See TracChangeset for help on using the changeset viewer.