Changeset 1404158
- Timestamp:
- 04/26/2016 12:10:51 AM (10 years ago)
- Location:
- wp-api-v2-woocommerce-endpoints/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-api-woocommerce-endpoints.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-api-v2-woocommerce-endpoints/trunk/readme.txt
r1377468 r1404158 3 3 Tags: wp-api, wp-rest-api, json-rest-api, json, woocommerce, rest, api, woocommerce-endpoints 4 4 Requires at least: 3.6.0 5 Tested up to: 4. 4.26 Stable tag: 1.0. 05 Tested up to: 4.5 6 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 39 39 40 40 == Changelog == 41 = 1.1.0 = 42 * Fix: is_cart was always true 43 41 44 = 1.0.0 = 42 45 * First public release -
wp-api-v2-woocommerce-endpoints/trunk/wp-api-woocommerce-endpoints.php
r1378328 r1404158 4 4 Description: WP REST API (V2) Modifications for Woocommerce endpoints. 5 5 Author: Oleg Kostin 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author URI: http://pmr.io 8 8 */ … … 86 86 */ 87 87 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']; 89 89 } 90 90
Note: See TracChangeset
for help on using the changeset viewer.