Changeset 2910521
- Timestamp:
- 05/10/2023 07:48:53 AM (3 years ago)
- Location:
- appful-app
- Files:
-
- 20 edited
- 1 copied
-
tags/2.0.1 (copied) (copied from appful-app/trunk)
-
tags/2.0.1/appful-app.php (modified) (1 diff)
-
tags/2.0.1/includes/wp/WPAttachmentManager.php (modified) (1 diff)
-
tags/2.0.1/includes/wp/mapper/AttachmentMapper.php (modified) (1 diff)
-
tags/2.0.1/lib/vendor/autoload.php (modified) (1 diff)
-
tags/2.0.1/lib/vendor/composer/ClassLoader.php (modified) (4 diffs)
-
tags/2.0.1/lib/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
tags/2.0.1/lib/vendor/composer/autoload_real.php (modified) (2 diffs)
-
tags/2.0.1/lib/vendor/composer/autoload_static.php (modified) (1 diff)
-
tags/2.0.1/lib/vendor/composer/installed.php (modified) (2 diffs)
-
tags/2.0.1/readme.txt (modified) (1 diff)
-
trunk/appful-app.php (modified) (1 diff)
-
trunk/includes/wp/WPAttachmentManager.php (modified) (1 diff)
-
trunk/includes/wp/mapper/AttachmentMapper.php (modified) (1 diff)
-
trunk/lib/vendor/autoload.php (modified) (1 diff)
-
trunk/lib/vendor/composer/ClassLoader.php (modified) (4 diffs)
-
trunk/lib/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/lib/vendor/composer/autoload_real.php (modified) (2 diffs)
-
trunk/lib/vendor/composer/autoload_static.php (modified) (1 diff)
-
trunk/lib/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
appful-app/tags/2.0.1/appful-app.php
r2907312 r2910521 12 12 * Plugin URI: https://appful.io 13 13 * Description: Appful® is the number 1 plugin for turning your WordPress Content into a native, beautiful app on iOS & Android in under 5 minutes. 14 * Version: 2.0. 014 * Version: 2.0.1 15 15 * Requires at least: 5.8 16 16 * Requires PHP: 7.4 -
appful-app/tags/2.0.1/includes/wp/WPAttachmentManager.php
r2907312 r2910521 61 61 } 62 62 63 public static function get_meta_for_attachment( WP_Post $attachment ) : array{63 public static function get_meta_for_attachment( WP_Post $attachment ) { 64 64 return wp_get_attachment_metadata( $attachment->ID ); 65 65 } -
appful-app/tags/2.0.1/includes/wp/mapper/AttachmentMapper.php
r2907312 r2910521 12 12 $attachment_url = WPAttachmentManager::get_url_for_attachment( $attachment ); 13 13 14 $width = $attachment_meta['width']; 15 if ( is_null( $width ) ) { 16 $width = 0; 17 } 18 $height = $attachment_meta['height']; 19 if ( is_null( $height ) ) { 14 if ( ! $attachment_meta ) { 15 $width = 0; 20 16 $height = 0; 17 } else { 18 $width = $attachment_meta['width']; 19 if ( is_null( $width ) ) { 20 $width = 0; 21 } 22 $height = $attachment_meta['height']; 23 if ( is_null( $height ) ) { 24 $height = 0; 25 } 21 26 } 22 27 -
appful-app/tags/2.0.1/lib/vendor/autoload.php
r2907312 r2910521 4 4 5 5 if (PHP_VERSION_ID < 50600) { 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 ); 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); 21 8 } 22 9 -
appful-app/tags/2.0.1/lib/vendor/composer/ClassLoader.php
r2907312 r2910521 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */46 private static $includeFile;47 48 45 /** @var ?string */ 49 46 private $vendorDir; … … 110 107 { 111 108 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure();113 109 } 114 110 … … 430 426 { 431 427 if ($file = $this->findFile($class)) { 432 $includeFile = self::$includeFile; 433 $includeFile($file); 428 includeFile($file); 434 429 435 430 return true; … … 561 556 return false; 562 557 } 563 564 /**565 * @return void566 */567 private static function initializeIncludeClosure()568 {569 if (self::$includeFile !== null) {570 return;571 }572 573 /**574 * Scope isolated include.575 *576 * Prevents access to $this/self from included files.577 *578 * @param string $file579 * @return void580 */581 self::$includeFile = \Closure::bind(static function($file) {582 include $file;583 }, null, null);584 }585 558 } 559 560 /** 561 * Scope isolated include. 562 * 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 568 */ 569 function includeFile($file) 570 { 571 include $file; 572 } -
appful-app/tags/2.0.1/lib/vendor/composer/autoload_psr4.php
r2907312 r2910521 10 10 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), 11 11 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'), 12 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http- message/src', $vendorDir . '/psr/http-factory/src'),12 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), 13 13 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 14 14 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), -
appful-app/tags/2.0.1/lib/vendor/composer/autoload_real.php
r2907312 r2910521 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitd43aeadb67b43de6c1f9d304ae50b8c3::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 36 $includeFiles = \Composer\Autoload\ComposerStaticInitd43aeadb67b43de6c1f9d304ae50b8c3::$files; 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequired43aeadb67b43de6c1f9d304ae50b8c3($fileIdentifier, $file); 46 39 } 47 40 … … 49 42 } 50 43 } 44 45 /** 46 * @param string $fileIdentifier 47 * @param string $file 48 * @return void 49 */ 50 function composerRequired43aeadb67b43de6c1f9d304ae50b8c3($fileIdentifier, $file) 51 { 52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 54 55 require $file; 56 } 57 } -
appful-app/tags/2.0.1/lib/vendor/composer/autoload_static.php
r2907312 r2910521 76 76 'Psr\\Http\\Message\\' => 77 77 array ( 78 0 => __DIR__ . '/..' . '/psr/http- message/src',79 1 => __DIR__ . '/..' . '/psr/http- factory/src',78 0 => __DIR__ . '/..' . '/psr/http-factory/src', 79 1 => __DIR__ . '/..' . '/psr/http-message/src', 80 80 ), 81 81 'Psr\\Http\\Client\\' => -
appful-app/tags/2.0.1/lib/vendor/composer/installed.php
r2907312 r2910521 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => ' dev-main',5 'version' => ' dev-main',6 'reference' => 'b1254843d60da12919cc461fd4211144e8f8459d',4 'pretty_version' => '1.0.0+no-version-set', 5 'version' => '1.0.0.0', 6 'reference' => NULL, 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => ' dev-main',15 'version' => ' dev-main',16 'reference' => 'b1254843d60da12919cc461fd4211144e8f8459d',14 'pretty_version' => '1.0.0+no-version-set', 15 'version' => '1.0.0.0', 16 'reference' => NULL, 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
appful-app/tags/2.0.1/readme.txt
r2907312 r2910521 6 6 Tested up to: 6.2 7 7 Requires PHP: 7.4 8 Stable tag: 2.0. 08 Stable tag: 2.0.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
appful-app/trunk/appful-app.php
r2907312 r2910521 12 12 * Plugin URI: https://appful.io 13 13 * Description: Appful® is the number 1 plugin for turning your WordPress Content into a native, beautiful app on iOS & Android in under 5 minutes. 14 * Version: 2.0. 014 * Version: 2.0.1 15 15 * Requires at least: 5.8 16 16 * Requires PHP: 7.4 -
appful-app/trunk/includes/wp/WPAttachmentManager.php
r2907312 r2910521 61 61 } 62 62 63 public static function get_meta_for_attachment( WP_Post $attachment ) : array{63 public static function get_meta_for_attachment( WP_Post $attachment ) { 64 64 return wp_get_attachment_metadata( $attachment->ID ); 65 65 } -
appful-app/trunk/includes/wp/mapper/AttachmentMapper.php
r2907312 r2910521 12 12 $attachment_url = WPAttachmentManager::get_url_for_attachment( $attachment ); 13 13 14 $width = $attachment_meta['width']; 15 if ( is_null( $width ) ) { 16 $width = 0; 17 } 18 $height = $attachment_meta['height']; 19 if ( is_null( $height ) ) { 14 if ( ! $attachment_meta ) { 15 $width = 0; 20 16 $height = 0; 17 } else { 18 $width = $attachment_meta['width']; 19 if ( is_null( $width ) ) { 20 $width = 0; 21 } 22 $height = $attachment_meta['height']; 23 if ( is_null( $height ) ) { 24 $height = 0; 25 } 21 26 } 22 27 -
appful-app/trunk/lib/vendor/autoload.php
r2907312 r2910521 4 4 5 5 if (PHP_VERSION_ID < 50600) { 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 ); 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); 21 8 } 22 9 -
appful-app/trunk/lib/vendor/composer/ClassLoader.php
r2907312 r2910521 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */46 private static $includeFile;47 48 45 /** @var ?string */ 49 46 private $vendorDir; … … 110 107 { 111 108 $this->vendorDir = $vendorDir; 112 self::initializeIncludeClosure();113 109 } 114 110 … … 430 426 { 431 427 if ($file = $this->findFile($class)) { 432 $includeFile = self::$includeFile; 433 $includeFile($file); 428 includeFile($file); 434 429 435 430 return true; … … 561 556 return false; 562 557 } 563 564 /**565 * @return void566 */567 private static function initializeIncludeClosure()568 {569 if (self::$includeFile !== null) {570 return;571 }572 573 /**574 * Scope isolated include.575 *576 * Prevents access to $this/self from included files.577 *578 * @param string $file579 * @return void580 */581 self::$includeFile = \Closure::bind(static function($file) {582 include $file;583 }, null, null);584 }585 558 } 559 560 /** 561 * Scope isolated include. 562 * 563 * Prevents access to $this/self from included files. 564 * 565 * @param string $file 566 * @return void 567 * @private 568 */ 569 function includeFile($file) 570 { 571 include $file; 572 } -
appful-app/trunk/lib/vendor/composer/autoload_psr4.php
r2907312 r2910521 10 10 'Symfony\\Polyfill\\Mbstring\\' => array($vendorDir . '/symfony/polyfill-mbstring'), 11 11 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'), 12 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http- message/src', $vendorDir . '/psr/http-factory/src'),12 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'), 13 13 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 14 14 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), -
appful-app/trunk/lib/vendor/composer/autoload_real.php
r2907312 r2910521 34 34 $loader->register(true); 35 35 36 $filesToLoad = \Composer\Autoload\ComposerStaticInitd43aeadb67b43de6c1f9d304ae50b8c3::$files; 37 $requireFile = \Closure::bind(static function ($fileIdentifier, $file) { 38 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 39 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 40 41 require $file; 42 } 43 }, null, null); 44 foreach ($filesToLoad as $fileIdentifier => $file) { 45 $requireFile($fileIdentifier, $file); 36 $includeFiles = \Composer\Autoload\ComposerStaticInitd43aeadb67b43de6c1f9d304ae50b8c3::$files; 37 foreach ($includeFiles as $fileIdentifier => $file) { 38 composerRequired43aeadb67b43de6c1f9d304ae50b8c3($fileIdentifier, $file); 46 39 } 47 40 … … 49 42 } 50 43 } 44 45 /** 46 * @param string $fileIdentifier 47 * @param string $file 48 * @return void 49 */ 50 function composerRequired43aeadb67b43de6c1f9d304ae50b8c3($fileIdentifier, $file) 51 { 52 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { 53 $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true; 54 55 require $file; 56 } 57 } -
appful-app/trunk/lib/vendor/composer/autoload_static.php
r2907312 r2910521 76 76 'Psr\\Http\\Message\\' => 77 77 array ( 78 0 => __DIR__ . '/..' . '/psr/http- message/src',79 1 => __DIR__ . '/..' . '/psr/http- factory/src',78 0 => __DIR__ . '/..' . '/psr/http-factory/src', 79 1 => __DIR__ . '/..' . '/psr/http-message/src', 80 80 ), 81 81 'Psr\\Http\\Client\\' => -
appful-app/trunk/lib/vendor/composer/installed.php
r2907312 r2910521 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => ' dev-main',5 'version' => ' dev-main',6 'reference' => 'b1254843d60da12919cc461fd4211144e8f8459d',4 'pretty_version' => '1.0.0+no-version-set', 5 'version' => '1.0.0.0', 6 'reference' => NULL, 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => ' dev-main',15 'version' => ' dev-main',16 'reference' => 'b1254843d60da12919cc461fd4211144e8f8459d',14 'pretty_version' => '1.0.0+no-version-set', 15 'version' => '1.0.0.0', 16 'reference' => NULL, 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', -
appful-app/trunk/readme.txt
r2907312 r2910521 6 6 Tested up to: 6.2 7 7 Requires PHP: 7.4 8 Stable tag: 2.0. 08 Stable tag: 2.0.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.