Changeset 2543847
- Timestamp:
- 06/07/2021 05:56:36 PM (5 years ago)
- Location:
- transact
- Files:
-
- 3 edited
- 15 copied
-
tags/5.4.1 (copied) (copied from transact/trunk)
-
tags/5.4.1/README.md (copied) (copied from transact/trunk/README.md)
-
tags/5.4.1/admin/controllers/transact-admin-settings-post.php (copied) (copied from transact/trunk/admin/controllers/transact-admin-settings-post.php)
-
tags/5.4.1/admin/controllers/transact-api.php (copied) (copied from transact/trunk/admin/controllers/transact-api.php)
-
tags/5.4.1/config.ini (copied) (copied from transact/trunk/config.ini)
-
tags/5.4.1/frontend/assets/style.css (copied) (copied from transact/trunk/frontend/assets/style.css)
-
tags/5.4.1/frontend/assets/transact_post.js (copied) (copied from transact/trunk/frontend/assets/transact_post.js)
-
tags/5.4.1/frontend/controllers/account_meta.php (copied) (copied from transact/trunk/frontend/controllers/account_meta.php) (2 diffs)
-
tags/5.4.1/frontend/controllers/transact-api.php (copied) (copied from transact/trunk/frontend/controllers/transact-api.php)
-
tags/5.4.1/frontend/controllers/transact-handle-buttons.php (copied) (copied from transact/trunk/frontend/controllers/transact-handle-buttons.php)
-
tags/5.4.1/frontend/controllers/transact-single-post.php (copied) (copied from transact/trunk/frontend/controllers/transact-single-post.php) (2 diffs)
-
tags/5.4.1/models/transact-subscription-transactions-table.php (copied) (copied from transact/trunk/models/transact-subscription-transactions-table.php)
-
tags/5.4.1/readme.txt (copied) (copied from transact/trunk/readme.txt) (2 diffs)
-
tags/5.4.1/transact-plugin.php (copied) (copied from transact/trunk/transact-plugin.php)
-
tags/5.4.1/utils/transact-utils-config-parser.php (copied) (copied from transact/trunk/utils/transact-utils-config-parser.php)
-
trunk/frontend/controllers/account_meta.php (modified) (2 diffs)
-
trunk/frontend/controllers/transact-single-post.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
transact/tags/5.4.1/frontend/controllers/account_meta.php
r2420344 r2543847 83 83 // if the subscription needs to be re-validated, check to see if they still have a subscription on xsact 84 84 $valid = $this->refresh_subscription($user_id, $subscription_info, $post_id); 85 85 86 return $valid; 86 87 } … … 187 188 } 188 189 $this->subscription_info_meta = $new_subscription_info; 190 191 return true; 192 } else { 193 return false; 189 194 } 190 195 } -
transact/tags/5.4.1/frontend/controllers/transact-single-post.php
r2439226 r2543847 413 413 return new WP_REST_Response( $response, 200 ); 414 414 } 415 415 416 416 /** 417 417 * If it is a subscription, create a subscription record 418 418 */ 419 $subscription_success = false; 419 420 if (isset($decoded->sub) && ($decoded->sub)) { 420 421 $tableModel = new transactSubscriptionTransactionsModel(); … … 423 424 424 425 // Record the subscription in the user account meta 425 $ accountMeta->add_subscription($post_id, $decoded->sub_expires, $decoded->uid, $decoded->iat * 1000, $wp_userid);426 $subscription_success = $accountMeta->add_subscription($post_id, $decoded->sub_expires, $decoded->uid, $decoded->iat * 1000, $wp_userid); 426 427 /** 427 428 * If it is an ala carte purchase, create a transaction record 428 429 */ 429 } else if (isset($post_id)) { 430 } 431 432 if (!$subscription_success && isset($post_id)) { 430 433 $tableModel = new transactTransactionsModel(); 431 434 $tableModel->create_transaction($post_id, $decoded->uid, $decoded->iat); -
transact/tags/5.4.1/readme.txt
r2439226 r2543847 5 5 Requires at least: 5.0 6 6 Requires PHP: 5.6 7 Tested up to: 5. 6.08 Stable tag: 5.4. 07 Tested up to: 5.7.2 8 Stable tag: 5.4.1 9 9 License: APACHE-2.0 10 10 License URI: https://www.apache.org/licenses/LICENSE-2.0 … … 83 83 84 84 85 = 5.4.1 = 86 * Fix validation of gift subscriptions 87 85 88 = 5.4.0 = 86 89 * Add tags for Google Tag Manager -
transact/trunk/frontend/controllers/account_meta.php
r2420344 r2543847 83 83 // if the subscription needs to be re-validated, check to see if they still have a subscription on xsact 84 84 $valid = $this->refresh_subscription($user_id, $subscription_info, $post_id); 85 85 86 return $valid; 86 87 } … … 187 188 } 188 189 $this->subscription_info_meta = $new_subscription_info; 190 191 return true; 192 } else { 193 return false; 189 194 } 190 195 } -
transact/trunk/frontend/controllers/transact-single-post.php
r2439226 r2543847 413 413 return new WP_REST_Response( $response, 200 ); 414 414 } 415 415 416 416 /** 417 417 * If it is a subscription, create a subscription record 418 418 */ 419 $subscription_success = false; 419 420 if (isset($decoded->sub) && ($decoded->sub)) { 420 421 $tableModel = new transactSubscriptionTransactionsModel(); … … 423 424 424 425 // Record the subscription in the user account meta 425 $ accountMeta->add_subscription($post_id, $decoded->sub_expires, $decoded->uid, $decoded->iat * 1000, $wp_userid);426 $subscription_success = $accountMeta->add_subscription($post_id, $decoded->sub_expires, $decoded->uid, $decoded->iat * 1000, $wp_userid); 426 427 /** 427 428 * If it is an ala carte purchase, create a transaction record 428 429 */ 429 } else if (isset($post_id)) { 430 } 431 432 if (!$subscription_success && isset($post_id)) { 430 433 $tableModel = new transactTransactionsModel(); 431 434 $tableModel->create_transaction($post_id, $decoded->uid, $decoded->iat); -
transact/trunk/readme.txt
r2439226 r2543847 5 5 Requires at least: 5.0 6 6 Requires PHP: 5.6 7 Tested up to: 5. 6.08 Stable tag: 5.4. 07 Tested up to: 5.7.2 8 Stable tag: 5.4.1 9 9 License: APACHE-2.0 10 10 License URI: https://www.apache.org/licenses/LICENSE-2.0 … … 83 83 84 84 85 = 5.4.1 = 86 * Fix validation of gift subscriptions 87 85 88 = 5.4.0 = 86 89 * Add tags for Google Tag Manager
Note: See TracChangeset
for help on using the changeset viewer.