Changeset 2829151
- Timestamp:
- 12/06/2022 08:35:22 AM (3 years ago)
- Location:
- simpleshop-cz
- Files:
-
- 16 edited
- 1 copied
-
tags/2.8.5 (copied) (copied from simpleshop-cz/trunk)
-
tags/2.8.5/readme.txt (modified) (1 diff)
-
tags/2.8.5/simpleshop-cz.php (modified) (2 diffs)
-
tags/2.8.5/src/Membership.php (modified) (2 diffs)
-
tags/2.8.5/src/Rest.php (modified) (1 diff)
-
tags/2.8.5/vendor/autoload.php (modified) (1 diff)
-
tags/2.8.5/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/2.8.5/vendor/composer/autoload_static.php (modified) (2 diffs)
-
tags/2.8.5/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/simpleshop-cz.php (modified) (2 diffs)
-
trunk/src/Membership.php (modified) (2 diffs)
-
trunk/src/Rest.php (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simpleshop-cz/tags/2.8.5/readme.txt
r2814282 r2829151 1 1 === SimpleShop === 2 Contributors: redbitcz, simpleshopcz, jakubboucek, vasikgreif 2 Contributors: redbitcz, simpleshopcz, jakubboucek, vasikgreif, vitvavra 3 3 Tags: simpleshop, simpleshop.cz, membership, member, access control, selling form 4 4 Requires at least: 5.0.0 5 5 Tested up to: 6.1 6 6 Requires PHP: 5.6.20 7 Stable tag: 2.8. 47 Stable tag: 2.8.5 8 8 License: MIT 9 9 License URI: https://github.com/redbitcz/simpleshop-wp-plugin/blob/master/LICENSE -
simpleshop-cz/tags/2.8.5/simpleshop-cz.php
r2814282 r2829151 13 13 * Author: Redbit s.r.o. 14 14 * Author URI: https://www.redbit.cz 15 * Version: 2.8. 415 * Version: 2.8.5 16 16 * Text Domain: simpleshop-cz 17 17 * Requires at least: 5.0.0 … … 23 23 require_once __DIR__ . '/vendor/autoload.php'; 24 24 25 define( 'SIMPLESHOP_PLUGIN_VERSION', 'v2.8. 4' );25 define( 'SIMPLESHOP_PLUGIN_VERSION', 'v2.8.5' ); 26 26 define( 'SIMPLESHOP_PREFIX', '_ssc_' ); 27 27 -
simpleshop-cz/tags/2.8.5/src/Membership.php
r2671122 r2829151 17 17 * Get user data if requested 18 18 * 19 * @param string$user_id19 * @param string $user_id 20 20 */ 21 21 public function __construct( $user_id = '' ) { … … 96 96 */ 97 97 public function get_valid_to( $group_id ) { 98 return get_user_meta( $this->user_id, '_ssc_group_subscription_valid_to_' . $group_id, true ); 98 $valid_to = get_user_meta( $this->user_id, '_ssc_group_subscription_valid_to_' . $group_id, true ); 99 if ( $valid_to === '1970-01-01' ) { 100 $valid_to = ''; 101 } 102 103 return $valid_to; 99 104 } 100 105 -
simpleshop-cz/tags/2.8.5/src/Rest.php
r2671122 r2829151 137 137 $membership = new Membership( $user_id ); 138 138 // Check if the user is already member of the group, if so, adjust the valid to date 139 if ( ! empty( $membership->groups[ $group ]['valid_to'] )) {139 if ( ! empty( $membership->groups[ $group ]['valid_to']) && $valid_to_months !== '' ) { 140 140 $valid_from = $request->get_param( 'valid_from' ) ?: ''; 141 141 $original_valid_to = $membership->groups[ $group ]['valid_to']; -
simpleshop-cz/tags/2.8.5/vendor/autoload.php
r2814282 r2829151 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa4::getLoader();25 return ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812::getLoader(); -
simpleshop-cz/tags/2.8.5/vendor/composer/autoload_real.php
r2814282 r2829151 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa45 class ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa4', 'loadClassLoader'), true, false);25 spl_autoload_register(array('ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812', 'loadClassLoader'), true, false); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa4', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa4::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit04d46cae7cb78b2f35213c16daef7812::getInitializer($loader)); 31 31 32 32 $loader->register(false); 33 33 34 $includeFiles = \Composer\Autoload\ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa4::$files;34 $includeFiles = \Composer\Autoload\ComposerStaticInit04d46cae7cb78b2f35213c16daef7812::$files; 35 35 foreach ($includeFiles as $fileIdentifier => $file) { 36 composerRequire 3d4fa138a1265abfc9c2ea62c410afa4($fileIdentifier, $file);36 composerRequire04d46cae7cb78b2f35213c16daef7812($fileIdentifier, $file); 37 37 } 38 38 … … 46 46 * @return void 47 47 */ 48 function composerRequire 3d4fa138a1265abfc9c2ea62c410afa4($fileIdentifier, $file)48 function composerRequire04d46cae7cb78b2f35213c16daef7812($fileIdentifier, $file) 49 49 { 50 50 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
simpleshop-cz/tags/2.8.5/vendor/composer/autoload_static.php
r2814282 r2829151 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa47 class ComposerStaticInit04d46cae7cb78b2f35213c16daef7812 8 8 { 9 9 public static $files = array ( … … 37 37 { 38 38 return \Closure::bind(function () use ($loader) { 39 $loader->classMap = ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa4::$classMap;39 $loader->classMap = ComposerStaticInit04d46cae7cb78b2f35213c16daef7812::$classMap; 40 40 41 41 }, null, ClassLoader::class); -
simpleshop-cz/tags/2.8.5/vendor/composer/installed.php
r2814282 r2829151 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 7fb9f8535c191c00c75b9a70ccf45dfe4fcab286',6 'reference' => 'f0dea3192d1ede8eaefd69d6b6331ca30db79a10', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => ' 7fb9f8535c191c00c75b9a70ccf45dfe4fcab286',25 'reference' => 'f0dea3192d1ede8eaefd69d6b6331ca30db79a10', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
simpleshop-cz/trunk/readme.txt
r2814282 r2829151 1 1 === SimpleShop === 2 Contributors: redbitcz, simpleshopcz, jakubboucek, vasikgreif 2 Contributors: redbitcz, simpleshopcz, jakubboucek, vasikgreif, vitvavra 3 3 Tags: simpleshop, simpleshop.cz, membership, member, access control, selling form 4 4 Requires at least: 5.0.0 5 5 Tested up to: 6.1 6 6 Requires PHP: 5.6.20 7 Stable tag: 2.8. 47 Stable tag: 2.8.5 8 8 License: MIT 9 9 License URI: https://github.com/redbitcz/simpleshop-wp-plugin/blob/master/LICENSE -
simpleshop-cz/trunk/simpleshop-cz.php
r2814282 r2829151 13 13 * Author: Redbit s.r.o. 14 14 * Author URI: https://www.redbit.cz 15 * Version: 2.8. 415 * Version: 2.8.5 16 16 * Text Domain: simpleshop-cz 17 17 * Requires at least: 5.0.0 … … 23 23 require_once __DIR__ . '/vendor/autoload.php'; 24 24 25 define( 'SIMPLESHOP_PLUGIN_VERSION', 'v2.8. 4' );25 define( 'SIMPLESHOP_PLUGIN_VERSION', 'v2.8.5' ); 26 26 define( 'SIMPLESHOP_PREFIX', '_ssc_' ); 27 27 -
simpleshop-cz/trunk/src/Membership.php
r2671122 r2829151 17 17 * Get user data if requested 18 18 * 19 * @param string$user_id19 * @param string $user_id 20 20 */ 21 21 public function __construct( $user_id = '' ) { … … 96 96 */ 97 97 public function get_valid_to( $group_id ) { 98 return get_user_meta( $this->user_id, '_ssc_group_subscription_valid_to_' . $group_id, true ); 98 $valid_to = get_user_meta( $this->user_id, '_ssc_group_subscription_valid_to_' . $group_id, true ); 99 if ( $valid_to === '1970-01-01' ) { 100 $valid_to = ''; 101 } 102 103 return $valid_to; 99 104 } 100 105 -
simpleshop-cz/trunk/src/Rest.php
r2671122 r2829151 137 137 $membership = new Membership( $user_id ); 138 138 // Check if the user is already member of the group, if so, adjust the valid to date 139 if ( ! empty( $membership->groups[ $group ]['valid_to'] )) {139 if ( ! empty( $membership->groups[ $group ]['valid_to']) && $valid_to_months !== '' ) { 140 140 $valid_from = $request->get_param( 'valid_from' ) ?: ''; 141 141 $original_valid_to = $membership->groups[ $group ]['valid_to']; -
simpleshop-cz/trunk/vendor/autoload.php
r2814282 r2829151 4 4 5 5 if (PHP_VERSION_ID < 50600) { 6 echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 7 exit(1); 6 if (!headers_sent()) { 7 header('HTTP/1.1 500 Internal Server Error'); 8 } 9 $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL; 10 if (!ini_get('display_errors')) { 11 if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { 12 fwrite(STDERR, $err); 13 } elseif (!headers_sent()) { 14 echo $err; 15 } 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 8 21 } 9 22 10 23 require_once __DIR__ . '/composer/autoload_real.php'; 11 24 12 return ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa4::getLoader();25 return ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812::getLoader(); -
simpleshop-cz/trunk/vendor/composer/autoload_real.php
r2814282 r2829151 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa45 class ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa4', 'loadClassLoader'), true, false);25 spl_autoload_register(array('ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812', 'loadClassLoader'), true, false); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__)); 27 spl_autoload_unregister(array('ComposerAutoloaderInit 3d4fa138a1265abfc9c2ea62c410afa4', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit04d46cae7cb78b2f35213c16daef7812', 'loadClassLoader')); 28 28 29 29 require __DIR__ . '/autoload_static.php'; 30 call_user_func(\Composer\Autoload\ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa4::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit04d46cae7cb78b2f35213c16daef7812::getInitializer($loader)); 31 31 32 32 $loader->register(false); 33 33 34 $includeFiles = \Composer\Autoload\ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa4::$files;34 $includeFiles = \Composer\Autoload\ComposerStaticInit04d46cae7cb78b2f35213c16daef7812::$files; 35 35 foreach ($includeFiles as $fileIdentifier => $file) { 36 composerRequire 3d4fa138a1265abfc9c2ea62c410afa4($fileIdentifier, $file);36 composerRequire04d46cae7cb78b2f35213c16daef7812($fileIdentifier, $file); 37 37 } 38 38 … … 46 46 * @return void 47 47 */ 48 function composerRequire 3d4fa138a1265abfc9c2ea62c410afa4($fileIdentifier, $file)48 function composerRequire04d46cae7cb78b2f35213c16daef7812($fileIdentifier, $file) 49 49 { 50 50 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
simpleshop-cz/trunk/vendor/composer/autoload_static.php
r2814282 r2829151 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa47 class ComposerStaticInit04d46cae7cb78b2f35213c16daef7812 8 8 { 9 9 public static $files = array ( … … 37 37 { 38 38 return \Closure::bind(function () use ($loader) { 39 $loader->classMap = ComposerStaticInit 3d4fa138a1265abfc9c2ea62c410afa4::$classMap;39 $loader->classMap = ComposerStaticInit04d46cae7cb78b2f35213c16daef7812::$classMap; 40 40 41 41 }, null, ClassLoader::class); -
simpleshop-cz/trunk/vendor/composer/installed.php
r2814282 r2829151 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' 7fb9f8535c191c00c75b9a70ccf45dfe4fcab286',6 'reference' => 'f0dea3192d1ede8eaefd69d6b6331ca30db79a10', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-master', 24 24 'version' => 'dev-master', 25 'reference' => ' 7fb9f8535c191c00c75b9a70ccf45dfe4fcab286',25 'reference' => 'f0dea3192d1ede8eaefd69d6b6331ca30db79a10', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.