Changeset 2373362
- Timestamp:
- 09/01/2020 08:14:56 PM (6 years ago)
- Location:
- transact
- Files:
-
- 6 edited
- 9 copied
-
tags/5.2.1 (copied) (copied from transact/trunk)
-
tags/5.2.1/admin/controllers/transact-admin-settings-post.php (copied) (copied from transact/trunk/admin/controllers/transact-admin-settings-post.php)
-
tags/5.2.1/config.ini (copied) (copied from transact/trunk/config.ini)
-
tags/5.2.1/frontend/assets/transact_post.js (copied) (copied from transact/trunk/frontend/assets/transact_post.js)
-
tags/5.2.1/frontend/controllers/account_meta.php (modified) (1 diff)
-
tags/5.2.1/frontend/controllers/transact-api.php (copied) (copied from transact/trunk/frontend/controllers/transact-api.php) (1 diff)
-
tags/5.2.1/frontend/controllers/transact-single-post.php (copied) (copied from transact/trunk/frontend/controllers/transact-single-post.php) (9 diffs)
-
tags/5.2.1/readme.txt (copied) (copied from transact/trunk/readme.txt) (2 diffs)
-
tags/5.2.1/transact-plugin.php (copied) (copied from transact/trunk/transact-plugin.php) (1 diff)
-
tags/5.2.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) (1 diff)
-
trunk/frontend/controllers/transact-api.php (modified) (1 diff)
-
trunk/frontend/controllers/transact-single-post.php (modified) (9 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/transact-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
transact/tags/5.2.1/frontend/controllers/account_meta.php
r2346702 r2373362 90 90 if($valid) { 91 91 $update_subscription_info = array( 92 'expires' => $subscription_info['expires'],92 'expires' => (gettype($valid) === 'boolean' ? $subscription_info['expires'] : $valid), 93 93 'sale_id' => $subscription_info['sale_id'], 94 94 'timestamp' => $subscription_info['timestamp'], -
transact/tags/5.2.1/frontend/controllers/transact-api.php
r2368117 r2373362 302 302 303 303 if ($body->expires > time() * 1000) { 304 // TODO if the expiration date has changed should we update meta? 305 return true; 304 return $body->expires; 306 305 } else { 307 306 return false; -
transact/tags/5.2.1/frontend/controllers/transact-single-post.php
r2368117 r2373362 86 86 'default' => 'post', 87 87 ) 88 ) 88 ), 89 'permission_callback' => '__return_true' 89 90 ) ); 90 91 register_rest_route( 'transact/v1', '/token/(?P<post_id>\d+)/(?P<affiliate_id>\d+)', array( … … 105 106 'default' => 'post', 106 107 ) 107 ) 108 ), 109 'permission_callback' => '__return_true' 108 110 ) ); 109 111 register_rest_route( 'transact/v1', '/subscription/(?P<post_id>\d+)', array( … … 119 121 'default' => 'subscription', 120 122 ) 121 ) 123 ), 124 'permission_callback' => '__return_true' 122 125 ) ); 123 126 register_rest_route( 'transact/v1', '/subscription/(?P<post_id>\d+)/(?P<affiliate_id>\d+)', array( … … 138 141 'default' => 'subscription', 139 142 ) 140 ) 143 ), 144 'permission_callback' => '__return_true' 141 145 ) ); 142 146 register_rest_route( 'transact/v1', '/donation/(?P<post_id>\d+)/(?P<amount>\d+)', array( … … 154 158 } 155 159 ) 156 ) 160 ), 161 'permission_callback' => '__return_true' 157 162 ) ); 158 163 register_rest_route( 'transact/v1', '/donation/(?P<post_id>\d+)/(?P<amount>\d+)/(?P<affiliate_id>\d+)', array( … … 175 180 } 176 181 ) 177 ) 182 ), 183 'permission_callback' => '__return_true' 178 184 ) ); 179 185 register_rest_route( 'transact/v1', '/verify', array( … … 187 193 ), 188 194 'token' => array() 189 ) 195 ), 196 'permission_callback' => '__return_true' 190 197 ) ); 191 198 register_rest_route( 'transact/v1', '/premium/(?P<post_id>\d+)', array( … … 198 205 } 199 206 ) 200 ) 207 ), 208 'permission_callback' => function () { 209 return get_current_user_id(); 210 } 201 211 ) ); 202 212 register_rest_route( 'transact/v1', '/comments_template/(?P<post_id>\d+)', array( … … 209 219 } 210 220 ) 211 ) 221 ), 222 'permission_callback' => function () { 223 return get_current_user_id(); 224 } 212 225 ) ); 213 226 }); -
transact/tags/5.2.1/readme.txt
r2368117 r2373362 5 5 Requires at least: 5.0 6 6 Requires PHP: 5.6 7 Tested up to: 5. 4.27 Tested up to: 5.5.1 8 8 Stable tag: 5.2.0 9 9 License: APACHE-2.0 … … 81 81 == Changelog == 82 82 83 = 5.2.1 = 84 * Fix notice warning on WordPress 5.5 83 85 84 86 = 5.2.0 = -
transact/tags/5.2.1/transact-plugin.php
r2368117 r2373362 3 3 * Plugin Name: transact.io 4 4 * Description: Integrates transact.io services into WP 5 * Version: 5.2. 05 * Version: 5.2.1 6 6 * Author: transact.io 7 7 * Author URI: https://transact.io -
transact/trunk/frontend/controllers/account_meta.php
r2346702 r2373362 90 90 if($valid) { 91 91 $update_subscription_info = array( 92 'expires' => $subscription_info['expires'],92 'expires' => (gettype($valid) === 'boolean' ? $subscription_info['expires'] : $valid), 93 93 'sale_id' => $subscription_info['sale_id'], 94 94 'timestamp' => $subscription_info['timestamp'], -
transact/trunk/frontend/controllers/transact-api.php
r2368117 r2373362 302 302 303 303 if ($body->expires > time() * 1000) { 304 // TODO if the expiration date has changed should we update meta? 305 return true; 304 return $body->expires; 306 305 } else { 307 306 return false; -
transact/trunk/frontend/controllers/transact-single-post.php
r2368117 r2373362 86 86 'default' => 'post', 87 87 ) 88 ) 88 ), 89 'permission_callback' => '__return_true' 89 90 ) ); 90 91 register_rest_route( 'transact/v1', '/token/(?P<post_id>\d+)/(?P<affiliate_id>\d+)', array( … … 105 106 'default' => 'post', 106 107 ) 107 ) 108 ), 109 'permission_callback' => '__return_true' 108 110 ) ); 109 111 register_rest_route( 'transact/v1', '/subscription/(?P<post_id>\d+)', array( … … 119 121 'default' => 'subscription', 120 122 ) 121 ) 123 ), 124 'permission_callback' => '__return_true' 122 125 ) ); 123 126 register_rest_route( 'transact/v1', '/subscription/(?P<post_id>\d+)/(?P<affiliate_id>\d+)', array( … … 138 141 'default' => 'subscription', 139 142 ) 140 ) 143 ), 144 'permission_callback' => '__return_true' 141 145 ) ); 142 146 register_rest_route( 'transact/v1', '/donation/(?P<post_id>\d+)/(?P<amount>\d+)', array( … … 154 158 } 155 159 ) 156 ) 160 ), 161 'permission_callback' => '__return_true' 157 162 ) ); 158 163 register_rest_route( 'transact/v1', '/donation/(?P<post_id>\d+)/(?P<amount>\d+)/(?P<affiliate_id>\d+)', array( … … 175 180 } 176 181 ) 177 ) 182 ), 183 'permission_callback' => '__return_true' 178 184 ) ); 179 185 register_rest_route( 'transact/v1', '/verify', array( … … 187 193 ), 188 194 'token' => array() 189 ) 195 ), 196 'permission_callback' => '__return_true' 190 197 ) ); 191 198 register_rest_route( 'transact/v1', '/premium/(?P<post_id>\d+)', array( … … 198 205 } 199 206 ) 200 ) 207 ), 208 'permission_callback' => function () { 209 return get_current_user_id(); 210 } 201 211 ) ); 202 212 register_rest_route( 'transact/v1', '/comments_template/(?P<post_id>\d+)', array( … … 209 219 } 210 220 ) 211 ) 221 ), 222 'permission_callback' => function () { 223 return get_current_user_id(); 224 } 212 225 ) ); 213 226 }); -
transact/trunk/readme.txt
r2368117 r2373362 5 5 Requires at least: 5.0 6 6 Requires PHP: 5.6 7 Tested up to: 5. 4.27 Tested up to: 5.5.1 8 8 Stable tag: 5.2.0 9 9 License: APACHE-2.0 … … 81 81 == Changelog == 82 82 83 = 5.2.1 = 84 * Fix notice warning on WordPress 5.5 83 85 84 86 = 5.2.0 = -
transact/trunk/transact-plugin.php
r2368117 r2373362 3 3 * Plugin Name: transact.io 4 4 * Description: Integrates transact.io services into WP 5 * Version: 5.2. 05 * Version: 5.2.1 6 6 * Author: transact.io 7 7 * Author URI: https://transact.io
Note: See TracChangeset
for help on using the changeset viewer.