Changeset 3074239
- Timestamp:
- 04/20/2024 02:46:44 PM (4 months ago)
- Location:
- rest-api-blocks
- Files:
-
- 24 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
rest-api-blocks/tags/1.0.2/readme.md
r3011477 r3074239 1 1 # REST API blocks 2 Contributors: spacedmonkey 3 Donate link: https://github.com/sponsors/spacedmonkey 4 Tags: blocks, gutenberg, api, wp-json, rest-api 5 Requires at least: 5.5 6 Tested up to: 6. 47 Requires PHP: 7.0.0 8 Stable tag: 1.0. 19 License: GPLv3 or later 2 Contributors: spacedmonkey 3 Donate link: https://github.com/sponsors/spacedmonkey 4 Tags: blocks, gutenberg, api, wp-json, rest-api 5 Requires at least: 5.5 6 Tested up to: 6. 7 Requires PHP: 7.0.0 8 Stable tag: 1.0. 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html 11 11 … … 84 84 ## Changelog ## 85 85 86 87 88 89 90 86 91 ### 1.0.1 ### 87 92 * Update coding standards to WP coding standards 3.0.1 -
rest-api-blocks/tags/1.0.2/src/data.php
r3011477 r3074239 95 95 function get_attribute( $attribute, $html, $post_id = 0 ) { 96 96 $value = null; 97 98 99 97 100 if ( isset( $attribute['source'] ) ) { 98 if ( isset( $attribute['selector'] ) ) { 99 $dom = pQuery::parseStr( trim( $html ) ); 100 if ( 'attribute' === $attribute['source'] ) { 101 $value = $dom->query( $attribute['selector'] )->attr( $attribute['attribute'] ); 102 } elseif ( 'html' === $attribute['source'] ) { 103 $value = $dom->query( $attribute['selector'] )->html(); 104 } elseif ( 'text' === $attribute['source'] ) { 105 $value = $dom->query( $attribute['selector'] )->text(); 106 } elseif ( 'query' === $attribute['source'] && isset( $attribute['query'] ) ) { 107 $nodes = $dom->query( $attribute['selector'] )->getIterator(); 108 $counter = 0; 109 foreach ( $nodes as $node ) { 110 foreach ( $attribute['query'] as $key => $current_attribute ) { 111 $current_value = get_attribute( $current_attribute, $node->toString(), $post_id ); 112 if ( null !== $current_value ) { 113 $value[ $counter ][ $key ] = $current_value; 101 switch ( $attribute['source'] ) { 102 case 'attribute': 103 $value = $node->attr( $attribute['attribute'] ); 104 break; 105 case 'html': 106 case 'rich-text': 107 $value = $node->html(); 108 break; 109 case 'text': 110 $value = $node->text(); 111 break; 112 case 'query': 113 if ( isset( $attribute['query'] ) ) { 114 $counter = 0; 115 $nodes = $node->getIterator(); 116 foreach ( $nodes as $v_node ) { 117 foreach ( $attribute['query'] as $key => $current_attribute ) { 118 $current_value = get_attribute( $current_attribute, $v_node->toString(), $post_id ); 119 if ( null !== $current_value ) { 120 $value[ $counter ][ $key ] = $current_value; 121 } 114 122 } 123 115 124 } 116 ++$counter;117 125 } 118 } 119 } else { 120 $dom = pQuery::parseStr( trim( $html ) ); 121 $node = $dom->query(); 122 if ( 'attribute' === $attribute['source'] ) { 123 $current_value = $node->attr( $attribute['attribute'] ); 124 if ( null !== $current_value ) { 125 $value = $current_value; 126 break; 127 case 'meta': 128 if ( $post_id && isset( $attribute['meta'] ) ) { 129 $value = get_post_meta( $post_id, $attribute['meta'], true ); 126 130 } 127 } elseif ( 'html' === $attribute['source'] ) { 128 $value = $node->html(); 129 } elseif ( 'text' === $attribute['source'] ) { 130 $value = $node->text(); 131 } 132 } 133 134 if ( $post_id && 'meta' === $attribute['source'] && isset( $attribute['meta'] ) ) { 135 $value = get_post_meta( $post_id, $attribute['meta'], true ); 131 break; 136 132 } 137 133 } 138 134 135 139 136 if ( is_null( $value ) && isset( $attribute['default'] ) ) { 140 137 $value = $attribute['default']; 141 138 } 142 139 143 if ( isset( $attribute['type'] ) && rest_validate_value_from_schema( $value, $attribute ) ) { 140 $allowed_types = [ 'array', 'object', 'string', 'number', 'integer', 'boolean', 'null' ]; 141 // If attribute type is set and valid, sanitize value. 142 if ( isset( $attribute['type'] ) && in_array( $attribute['type'], $allowed_types, true ) && rest_validate_value_from_schema( $value, $attribute ) ) { 144 143 $value = rest_sanitize_value_from_schema( $value, $attribute ); 145 144 } -
rest-api-blocks/tags/1.0.2/vendor/autoload.php
r3011477 r3074239 3 3 // autoload.php @generated by Composer 4 4 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_ERROR20 );21 }22 23 5 require_once __DIR__ . '/composer/autoload_real.php'; 24 6 25 return ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d469::getLoader();7 return ComposerAutoloaderInit::getLoader(); -
rest-api-blocks/tags/1.0.2/vendor/composer/ClassLoader.php
r3011477 r3074239 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 45 /** @var ?string */ 49 46 private $vendorDir; 50 47 51 48 // PSR-4 52 49 /** 53 * @var array<string, array<string, int>> 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 54 52 */ 55 53 private $prefixLengthsPsr4 = array(); 56 54 /** 57 * @var array<string, list<string>> 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 58 57 */ 59 58 private $prefixDirsPsr4 = array(); 60 59 /** 61 * @var list<string> 60 * @var array[] 61 * @psalm-var array<string, string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 72 69 */ 73 70 private $prefixesPsr0 = array(); 74 71 /** 75 * @var list<string> 72 * @var array[] 73 * @psalm-var array<string, string> 76 74 */ 77 75 private $fallbackDirsPsr0 = array(); … … 81 79 82 80 /** 83 * @var array<string, string> 81 * @var string[] 82 * @psalm-var array<string, string> 84 83 */ 85 84 private $classMap = array(); … … 89 88 90 89 /** 91 * @var array<string, bool> 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var string|null*/95 /** @var */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var array<string, self>99 * @var 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param string|null$vendorDir104 * @param $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 109 } 110 111 /** 112 * @return string[] 114 113 */ 115 114 public function getPrefixes() … … 123 122 124 123 /** 125 * @return array<string, list<string>> 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return list<string> 133 * @return array[] 134 * @psalm-return array<string, string> 134 135 */ 135 136 public function getFallbackDirs() … … 139 140 140 141 /** 141 * @return list<string> 142 * @return array[] 143 * @psalm-return array<string, string> 142 144 */ 143 145 public function getFallbackDirsPsr4() … … 147 149 148 150 /** 149 * @return array<string, string> Array of classname => path 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 150 153 */ 151 154 public function getClassMap() … … 155 158 156 159 /** 157 * @param array<string, string> $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 158 162 * 159 163 * @return void … … 172 176 * appending or prepending to the ones previously set for this prefix. 173 177 * 174 * @param string 175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool 178 * @param string $prefix The prefix 179 * @param |string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 177 181 * 178 182 * @return void … … 180 184 public function add($prefix, $paths, $prepend = false) 181 185 { 182 $paths = (array) $paths;183 186 if (!$prefix) { 184 187 if ($prepend) { 185 188 $this->fallbackDirsPsr0 = array_merge( 186 $paths,189 $paths, 187 190 $this->fallbackDirsPsr0 188 191 ); … … 190 193 $this->fallbackDirsPsr0 = array_merge( 191 194 $this->fallbackDirsPsr0, 192 $paths195 $paths 193 196 ); 194 197 } … … 199 202 $first = $prefix[0]; 200 203 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;204 $this->prefixesPsr0[$first][$prefix] = $paths; 202 205 203 206 return; … … 205 208 if ($prepend) { 206 209 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,210 $paths, 208 211 $this->prefixesPsr0[$first][$prefix] 209 212 ); … … 211 214 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 215 $this->prefixesPsr0[$first][$prefix], 213 $paths216 $paths 214 217 ); 215 218 } … … 220 223 * appending or prepending to the ones previously set for this namespace. 221 224 * 222 * @param string 223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool 225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param |string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 225 228 * 226 229 * @throws \InvalidArgumentException … … 230 233 public function addPsr4($prefix, $paths, $prepend = false) 231 234 { 232 $paths = (array) $paths;233 235 if (!$prefix) { 234 236 // Register directories for the root namespace. 235 237 if ($prepend) { 236 238 $this->fallbackDirsPsr4 = array_merge( 237 $paths,239 $paths, 238 240 $this->fallbackDirsPsr4 239 241 ); … … 241 243 $this->fallbackDirsPsr4 = array_merge( 242 244 $this->fallbackDirsPsr4, 243 $paths245 $paths 244 246 ); 245 247 } … … 251 253 } 252 254 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;255 $this->prefixDirsPsr4[$prefix] = $paths; 254 256 } elseif ($prepend) { 255 257 // Prepend directories for an already registered namespace. 256 258 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,259 $paths, 258 260 $this->prefixDirsPsr4[$prefix] 259 261 ); … … 262 264 $this->prefixDirsPsr4[$prefix] = array_merge( 263 265 $this->prefixDirsPsr4[$prefix], 264 $paths266 $paths 265 267 ); 266 268 } … … 271 273 * replacing any others previously set for this prefix. 272 274 * 273 * @param string 274 * @param list<string>|string $paths The PSR-0 base directories275 * @param string $prefix The prefix 276 * @param |string $paths The PSR-0 base directories 275 277 * 276 278 * @return void … … 289 291 * replacing any others previously set for this namespace. 290 292 * 291 * @param string 292 * @param list<string>|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param |string $paths The PSR-4 base directories 293 295 * 294 296 * @throws \InvalidArgumentException … … 424 426 { 425 427 if ($file = $this->findFile($class)) { 426 $includeFile = self::$includeFile; 427 $includeFile($file); 428 includeFile($file); 428 429 429 430 return true; … … 476 477 477 478 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories.479 * 480 * @return array<string, self>479 * Returns the currently registered loaders ed by their corresponding vendor directories. 480 * 481 * @return 481 482 */ 482 483 public static function getRegisteredLoaders() … … 555 556 return false; 556 557 } 557 558 /**559 * @return void560 */561 private static function initializeIncludeClosure()562 {563 if (self::$includeFile !== null) {564 return;565 }566 567 /**568 * Scope isolated include.569 *570 * Prevents access to $this/self from included files.571 *572 * @param string $file573 * @return void574 */575 self::$includeFile = \Closure::bind(static function($file) {576 include $file;577 }, null, null);578 }579 558 } 559 560 561 562 563 564 565 566 567 568 569 570 571 572 -
rest-api-blocks/tags/1.0.2/vendor/composer/InstalledVersions.php
r2901997 r3074239 22 22 * 23 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 *25 * @final26 24 */ 27 25 class InstalledVersions … … 29 27 /** 30 28 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null29 * @psalm-var array{root: array{name: string, }>}|array{}|null 32 30 */ 33 31 private static $installed; … … 40 38 /** 41 39 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>40 * @psalm-var array<string, array{root: array{name: string, }>}> 43 41 */ 44 42 private static $installedByVendor = array(); … … 99 97 foreach (self::getInstalled() as $installed) { 100 98 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;99 return $includeDevRequirements || ; 102 100 } 103 101 } … … 120 118 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 119 { 122 $constraint = $parser->parseConstraints( (string)$constraint);120 $constraint = $parser->parseConstraints($constraint); 123 121 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 122 … … 244 242 /** 245 243 * @return array 246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}244 * @psalm-return array{name: string, } 247 245 */ 248 246 public static function getRootPackage() … … 258 256 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 257 * @return array[] 260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}258 * @psalm-return array{root: array{name: string, }>} 261 259 */ 262 260 public static function getRawData() … … 281 279 * 282 280 * @return array[] 283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>281 * @psalm-return list<array{root: array{name: string, }>}> 284 282 */ 285 283 public static function getAllRawData() … … 304 302 * @return void 305 303 * 306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data304 * @psalm-param array{root: array{name: string, }>} $data 307 305 */ 308 306 public static function reload($data) … … 314 312 /** 315 313 * @return array[] 316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>314 * @psalm-return list<array{root: array{name: string, }>}> 317 315 */ 318 316 private static function getInstalled() -
rest-api-blocks/tags/1.0.2/vendor/composer/autoload_classmap.php
r2901997 r3074239 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
rest-api-blocks/tags/1.0.2/vendor/composer/autoload_namespaces.php
r2901997 r3074239 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
rest-api-blocks/tags/1.0.2/vendor/composer/autoload_psr4.php
r2901997 r3074239 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
rest-api-blocks/tags/1.0.2/vendor/composer/autoload_real.php
r3011477 r3074239 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d4695 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d469', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( __DIR__));29 spl_autoload_unregister(array('ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d469', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname()); 29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit16ffa2380971890c7d06726dab77d469::getInitializer($loader)); 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit988f9a80d414bdc0701a092d71455a8c::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 33 52 34 53 $loader->register(true); -
rest-api-blocks/tags/1.0.2/vendor/composer/autoload_static.php
r3011477 r3074239 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 16ffa2380971890c7d06726dab77d4697 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 149 149 { 150 150 return \Closure::bind(function () use ($loader) { 151 $loader->prefixLengthsPsr4 = ComposerStaticInit 16ffa2380971890c7d06726dab77d469::$prefixLengthsPsr4;152 $loader->prefixDirsPsr4 = ComposerStaticInit 16ffa2380971890c7d06726dab77d469::$prefixDirsPsr4;153 $loader->classMap = ComposerStaticInit 16ffa2380971890c7d06726dab77d469::$classMap;151 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 152 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 153 $loader->classMap = ComposerStaticInit::$classMap; 154 154 155 155 }, null, ClassLoader::class); -
rest-api-blocks/tags/1.0.2/vendor/composer/installed.php
r3011477 r3074239 1 1 <?php return array( 2 2 'root' => array( 3 'name' => 'spacedmonkey/wp-rest-blocks', 4 'pretty_version' => '1.0.1', 5 'version' => '1.0.1.0', 6 'reference' => '04d5ea4b56d56843552f77f80240a8cd299ed1e7', 3 'pretty_version' => '1.0.2', 4 'version' => '1.0.2.0', 7 5 'type' => 'wordpress-plugin', 8 6 'install_path' => __DIR__ . '/../../', 9 7 'aliases' => array(), 8 9 10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'v1.12.0', 15 15 'version' => '1.12.0.0', 16 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',17 16 'type' => 'composer-plugin', 18 17 'install_path' => __DIR__ . '/./installers', 19 18 'aliases' => array(), 19 20 20 'dev_requirement' => false, 21 21 ), … … 33 33 ), 34 34 'spacedmonkey/wp-rest-blocks' => array( 35 'pretty_version' => '1.0.1', 36 'version' => '1.0.1.0', 37 'reference' => '04d5ea4b56d56843552f77f80240a8cd299ed1e7', 35 'pretty_version' => '1.0.2', 36 'version' => '1.0.2.0', 38 37 'type' => 'wordpress-plugin', 39 38 'install_path' => __DIR__ . '/../../', 40 39 'aliases' => array(), 40 41 41 'dev_requirement' => false, 42 42 ), … … 44 44 'pretty_version' => 'v1.1.1', 45 45 'version' => '1.1.1.0', 46 'reference' => '872339ffd38d261c4417ea1855428b1b4ff9abf1',47 46 'type' => 'library', 48 47 'install_path' => __DIR__ . '/../tburry/pquery', 49 48 'aliases' => array(), 49 50 50 'dev_requirement' => false, 51 51 ), -
rest-api-blocks/tags/1.0.2/wp-rest-blocks.php
r2901997 r3074239 8 8 * Text Domain: wp-rest-blocks 9 9 * Domain Path: /languages 10 * Version: 1.0. 010 * Version: 1.0. 11 11 * Requires at least: 5.5 12 12 * Requires PHP: 7.0 -
rest-api-blocks/trunk/readme.md
r3011477 r3074239 1 1 # REST API blocks 2 Contributors: spacedmonkey 3 Donate link: https://github.com/sponsors/spacedmonkey 4 Tags: blocks, gutenberg, api, wp-json, rest-api 5 Requires at least: 5.5 6 Tested up to: 6. 47 Requires PHP: 7.0.0 8 Stable tag: 1.0. 19 License: GPLv3 or later 2 Contributors: spacedmonkey 3 Donate link: https://github.com/sponsors/spacedmonkey 4 Tags: blocks, gutenberg, api, wp-json, rest-api 5 Requires at least: 5.5 6 Tested up to: 6. 7 Requires PHP: 7.0.0 8 Stable tag: 1.0. 9 License: GPLv3 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.en.html 11 11 … … 84 84 ## Changelog ## 85 85 86 87 88 89 90 86 91 ### 1.0.1 ### 87 92 * Update coding standards to WP coding standards 3.0.1 -
rest-api-blocks/trunk/src/data.php
r3011477 r3074239 95 95 function get_attribute( $attribute, $html, $post_id = 0 ) { 96 96 $value = null; 97 98 99 97 100 if ( isset( $attribute['source'] ) ) { 98 if ( isset( $attribute['selector'] ) ) { 99 $dom = pQuery::parseStr( trim( $html ) ); 100 if ( 'attribute' === $attribute['source'] ) { 101 $value = $dom->query( $attribute['selector'] )->attr( $attribute['attribute'] ); 102 } elseif ( 'html' === $attribute['source'] ) { 103 $value = $dom->query( $attribute['selector'] )->html(); 104 } elseif ( 'text' === $attribute['source'] ) { 105 $value = $dom->query( $attribute['selector'] )->text(); 106 } elseif ( 'query' === $attribute['source'] && isset( $attribute['query'] ) ) { 107 $nodes = $dom->query( $attribute['selector'] )->getIterator(); 108 $counter = 0; 109 foreach ( $nodes as $node ) { 110 foreach ( $attribute['query'] as $key => $current_attribute ) { 111 $current_value = get_attribute( $current_attribute, $node->toString(), $post_id ); 112 if ( null !== $current_value ) { 113 $value[ $counter ][ $key ] = $current_value; 101 switch ( $attribute['source'] ) { 102 case 'attribute': 103 $value = $node->attr( $attribute['attribute'] ); 104 break; 105 case 'html': 106 case 'rich-text': 107 $value = $node->html(); 108 break; 109 case 'text': 110 $value = $node->text(); 111 break; 112 case 'query': 113 if ( isset( $attribute['query'] ) ) { 114 $counter = 0; 115 $nodes = $node->getIterator(); 116 foreach ( $nodes as $v_node ) { 117 foreach ( $attribute['query'] as $key => $current_attribute ) { 118 $current_value = get_attribute( $current_attribute, $v_node->toString(), $post_id ); 119 if ( null !== $current_value ) { 120 $value[ $counter ][ $key ] = $current_value; 121 } 114 122 } 123 115 124 } 116 ++$counter;117 125 } 118 } 119 } else { 120 $dom = pQuery::parseStr( trim( $html ) ); 121 $node = $dom->query(); 122 if ( 'attribute' === $attribute['source'] ) { 123 $current_value = $node->attr( $attribute['attribute'] ); 124 if ( null !== $current_value ) { 125 $value = $current_value; 126 break; 127 case 'meta': 128 if ( $post_id && isset( $attribute['meta'] ) ) { 129 $value = get_post_meta( $post_id, $attribute['meta'], true ); 126 130 } 127 } elseif ( 'html' === $attribute['source'] ) { 128 $value = $node->html(); 129 } elseif ( 'text' === $attribute['source'] ) { 130 $value = $node->text(); 131 } 132 } 133 134 if ( $post_id && 'meta' === $attribute['source'] && isset( $attribute['meta'] ) ) { 135 $value = get_post_meta( $post_id, $attribute['meta'], true ); 131 break; 136 132 } 137 133 } 138 134 135 139 136 if ( is_null( $value ) && isset( $attribute['default'] ) ) { 140 137 $value = $attribute['default']; 141 138 } 142 139 143 if ( isset( $attribute['type'] ) && rest_validate_value_from_schema( $value, $attribute ) ) { 140 $allowed_types = [ 'array', 'object', 'string', 'number', 'integer', 'boolean', 'null' ]; 141 // If attribute type is set and valid, sanitize value. 142 if ( isset( $attribute['type'] ) && in_array( $attribute['type'], $allowed_types, true ) && rest_validate_value_from_schema( $value, $attribute ) ) { 144 143 $value = rest_sanitize_value_from_schema( $value, $attribute ); 145 144 } -
rest-api-blocks/trunk/vendor/autoload.php
r3011477 r3074239 3 3 // autoload.php @generated by Composer 4 4 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_ERROR20 );21 }22 23 5 require_once __DIR__ . '/composer/autoload_real.php'; 24 6 25 return ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d469::getLoader();7 return ComposerAutoloaderInit::getLoader(); -
rest-api-blocks/trunk/vendor/composer/ClassLoader.php
r3011477 r3074239 43 43 class ClassLoader 44 44 { 45 /** @var \Closure(string):void */ 46 private static $includeFile; 47 48 /** @var string|null */ 45 /** @var ?string */ 49 46 private $vendorDir; 50 47 51 48 // PSR-4 52 49 /** 53 * @var array<string, array<string, int>> 50 * @var array[] 51 * @psalm-var array<string, array<string, int>> 54 52 */ 55 53 private $prefixLengthsPsr4 = array(); 56 54 /** 57 * @var array<string, list<string>> 55 * @var array[] 56 * @psalm-var array<string, array<int, string>> 58 57 */ 59 58 private $prefixDirsPsr4 = array(); 60 59 /** 61 * @var list<string> 60 * @var array[] 61 * @psalm-var array<string, string> 62 62 */ 63 63 private $fallbackDirsPsr4 = array(); … … 65 65 // PSR-0 66 66 /** 67 * List of PSR-0 prefixes 68 * 69 * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2'))) 70 * 71 * @var array<string, array<string, list<string>>> 67 * @var array[] 68 * @psalm-var array<string, array<string, string[]>> 72 69 */ 73 70 private $prefixesPsr0 = array(); 74 71 /** 75 * @var list<string> 72 * @var array[] 73 * @psalm-var array<string, string> 76 74 */ 77 75 private $fallbackDirsPsr0 = array(); … … 81 79 82 80 /** 83 * @var array<string, string> 81 * @var string[] 82 * @psalm-var array<string, string> 84 83 */ 85 84 private $classMap = array(); … … 89 88 90 89 /** 91 * @var array<string, bool> 90 * @var bool[] 91 * @psalm-var array<string, bool> 92 92 */ 93 93 private $missingClasses = array(); 94 94 95 /** @var string|null*/95 /** @var */ 96 96 private $apcuPrefix; 97 97 98 98 /** 99 * @var array<string, self>99 * @var 100 100 */ 101 101 private static $registeredLoaders = array(); 102 102 103 103 /** 104 * @param string|null$vendorDir104 * @param $vendorDir 105 105 */ 106 106 public function __construct($vendorDir = null) 107 107 { 108 108 $this->vendorDir = $vendorDir; 109 self::initializeIncludeClosure(); 110 } 111 112 /** 113 * @return array<string, list<string>> 109 } 110 111 /** 112 * @return string[] 114 113 */ 115 114 public function getPrefixes() … … 123 122 124 123 /** 125 * @return array<string, list<string>> 124 * @return array[] 125 * @psalm-return array<string, array<int, string>> 126 126 */ 127 127 public function getPrefixesPsr4() … … 131 131 132 132 /** 133 * @return list<string> 133 * @return array[] 134 * @psalm-return array<string, string> 134 135 */ 135 136 public function getFallbackDirs() … … 139 140 140 141 /** 141 * @return list<string> 142 * @return array[] 143 * @psalm-return array<string, string> 142 144 */ 143 145 public function getFallbackDirsPsr4() … … 147 149 148 150 /** 149 * @return array<string, string> Array of classname => path 151 * @return string[] Array of classname => path 152 * @psalm-return array<string, string> 150 153 */ 151 154 public function getClassMap() … … 155 158 156 159 /** 157 * @param array<string, string> $classMap Class to filename map 160 * @param string[] $classMap Class to filename map 161 * @psalm-param array<string, string> $classMap 158 162 * 159 163 * @return void … … 172 176 * appending or prepending to the ones previously set for this prefix. 173 177 * 174 * @param string 175 * @param list<string>|string $paths The PSR-0 root directories176 * @param bool 178 * @param string $prefix The prefix 179 * @param |string $paths The PSR-0 root directories 180 * @param bool $prepend Whether to prepend the directories 177 181 * 178 182 * @return void … … 180 184 public function add($prefix, $paths, $prepend = false) 181 185 { 182 $paths = (array) $paths;183 186 if (!$prefix) { 184 187 if ($prepend) { 185 188 $this->fallbackDirsPsr0 = array_merge( 186 $paths,189 $paths, 187 190 $this->fallbackDirsPsr0 188 191 ); … … 190 193 $this->fallbackDirsPsr0 = array_merge( 191 194 $this->fallbackDirsPsr0, 192 $paths195 $paths 193 196 ); 194 197 } … … 199 202 $first = $prefix[0]; 200 203 if (!isset($this->prefixesPsr0[$first][$prefix])) { 201 $this->prefixesPsr0[$first][$prefix] = $paths;204 $this->prefixesPsr0[$first][$prefix] = $paths; 202 205 203 206 return; … … 205 208 if ($prepend) { 206 209 $this->prefixesPsr0[$first][$prefix] = array_merge( 207 $paths,210 $paths, 208 211 $this->prefixesPsr0[$first][$prefix] 209 212 ); … … 211 214 $this->prefixesPsr0[$first][$prefix] = array_merge( 212 215 $this->prefixesPsr0[$first][$prefix], 213 $paths216 $paths 214 217 ); 215 218 } … … 220 223 * appending or prepending to the ones previously set for this namespace. 221 224 * 222 * @param string 223 * @param list<string>|string $paths The PSR-4 base directories224 * @param bool 225 * @param string $prefix The prefix/namespace, with trailing '\\' 226 * @param |string $paths The PSR-4 base directories 227 * @param bool $prepend Whether to prepend the directories 225 228 * 226 229 * @throws \InvalidArgumentException … … 230 233 public function addPsr4($prefix, $paths, $prepend = false) 231 234 { 232 $paths = (array) $paths;233 235 if (!$prefix) { 234 236 // Register directories for the root namespace. 235 237 if ($prepend) { 236 238 $this->fallbackDirsPsr4 = array_merge( 237 $paths,239 $paths, 238 240 $this->fallbackDirsPsr4 239 241 ); … … 241 243 $this->fallbackDirsPsr4 = array_merge( 242 244 $this->fallbackDirsPsr4, 243 $paths245 $paths 244 246 ); 245 247 } … … 251 253 } 252 254 $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length; 253 $this->prefixDirsPsr4[$prefix] = $paths;255 $this->prefixDirsPsr4[$prefix] = $paths; 254 256 } elseif ($prepend) { 255 257 // Prepend directories for an already registered namespace. 256 258 $this->prefixDirsPsr4[$prefix] = array_merge( 257 $paths,259 $paths, 258 260 $this->prefixDirsPsr4[$prefix] 259 261 ); … … 262 264 $this->prefixDirsPsr4[$prefix] = array_merge( 263 265 $this->prefixDirsPsr4[$prefix], 264 $paths266 $paths 265 267 ); 266 268 } … … 271 273 * replacing any others previously set for this prefix. 272 274 * 273 * @param string 274 * @param list<string>|string $paths The PSR-0 base directories275 * @param string $prefix The prefix 276 * @param |string $paths The PSR-0 base directories 275 277 * 276 278 * @return void … … 289 291 * replacing any others previously set for this namespace. 290 292 * 291 * @param string 292 * @param list<string>|string $paths The PSR-4 base directories293 * @param string $prefix The prefix/namespace, with trailing '\\' 294 * @param |string $paths The PSR-4 base directories 293 295 * 294 296 * @throws \InvalidArgumentException … … 424 426 { 425 427 if ($file = $this->findFile($class)) { 426 $includeFile = self::$includeFile; 427 $includeFile($file); 428 includeFile($file); 428 429 429 430 return true; … … 476 477 477 478 /** 478 * Returns the currently registered loaders keyed by their corresponding vendor directories.479 * 480 * @return array<string, self>479 * Returns the currently registered loaders ed by their corresponding vendor directories. 480 * 481 * @return 481 482 */ 482 483 public static function getRegisteredLoaders() … … 555 556 return false; 556 557 } 557 558 /**559 * @return void560 */561 private static function initializeIncludeClosure()562 {563 if (self::$includeFile !== null) {564 return;565 }566 567 /**568 * Scope isolated include.569 *570 * Prevents access to $this/self from included files.571 *572 * @param string $file573 * @return void574 */575 self::$includeFile = \Closure::bind(static function($file) {576 include $file;577 }, null, null);578 }579 558 } 559 560 561 562 563 564 565 566 567 568 569 570 571 572 -
rest-api-blocks/trunk/vendor/composer/InstalledVersions.php
r2901997 r3074239 22 22 * 23 23 * To require its presence, you can require `composer-runtime-api ^2.0` 24 *25 * @final26 24 */ 27 25 class InstalledVersions … … 29 27 /** 30 28 * @var mixed[]|null 31 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null29 * @psalm-var array{root: array{name: string, }>}|array{}|null 32 30 */ 33 31 private static $installed; … … 40 38 /** 41 39 * @var array[] 42 * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>40 * @psalm-var array<string, array{root: array{name: string, }>}> 43 41 */ 44 42 private static $installedByVendor = array(); … … 99 97 foreach (self::getInstalled() as $installed) { 100 98 if (isset($installed['versions'][$packageName])) { 101 return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;99 return $includeDevRequirements || ; 102 100 } 103 101 } … … 120 118 public static function satisfies(VersionParser $parser, $packageName, $constraint) 121 119 { 122 $constraint = $parser->parseConstraints( (string)$constraint);120 $constraint = $parser->parseConstraints($constraint); 123 121 $provided = $parser->parseConstraints(self::getVersionRanges($packageName)); 124 122 … … 244 242 /** 245 243 * @return array 246 * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}244 * @psalm-return array{name: string, } 247 245 */ 248 246 public static function getRootPackage() … … 258 256 * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect. 259 257 * @return array[] 260 * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}258 * @psalm-return array{root: array{name: string, }>} 261 259 */ 262 260 public static function getRawData() … … 281 279 * 282 280 * @return array[] 283 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>281 * @psalm-return list<array{root: array{name: string, }>}> 284 282 */ 285 283 public static function getAllRawData() … … 304 302 * @return void 305 303 * 306 * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data304 * @psalm-param array{root: array{name: string, }>} $data 307 305 */ 308 306 public static function reload($data) … … 314 312 /** 315 313 * @return array[] 316 * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>314 * @psalm-return list<array{root: array{name: string, }>}> 317 315 */ 318 316 private static function getInstalled() -
rest-api-blocks/trunk/vendor/composer/autoload_classmap.php
r2901997 r3074239 3 3 // autoload_classmap.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
rest-api-blocks/trunk/vendor/composer/autoload_namespaces.php
r2901997 r3074239 3 3 // autoload_namespaces.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
rest-api-blocks/trunk/vendor/composer/autoload_psr4.php
r2901997 r3074239 3 3 // autoload_psr4.php @generated by Composer 4 4 5 $vendorDir = dirname( __DIR__);5 $vendorDir = dirname(); 6 6 $baseDir = dirname($vendorDir); 7 7 -
rest-api-blocks/trunk/vendor/composer/autoload_real.php
r3011477 r3074239 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d4695 class ComposerAutoloaderInit 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d469', 'loadClassLoader'), true, true);28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname( __DIR__));29 spl_autoload_unregister(array('ComposerAutoloaderInit 16ffa2380971890c7d06726dab77d469', 'loadClassLoader'));27 spl_autoload_register(array('ComposerAutoloaderInit', 'loadClassLoader'), true, true); 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname()); 29 spl_autoload_unregister(array('ComposerAutoloaderInit', 'loadClassLoader')); 30 30 31 require __DIR__ . '/autoload_static.php'; 32 call_user_func(\Composer\Autoload\ComposerStaticInit16ffa2380971890c7d06726dab77d469::getInitializer($loader)); 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 32 if ($useStaticLoader) { 33 require __DIR__ . '/autoload_static.php'; 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit988f9a80d414bdc0701a092d71455a8c::getInitializer($loader)); 36 } else { 37 $map = require __DIR__ . '/autoload_namespaces.php'; 38 foreach ($map as $namespace => $path) { 39 $loader->set($namespace, $path); 40 } 41 42 $map = require __DIR__ . '/autoload_psr4.php'; 43 foreach ($map as $namespace => $path) { 44 $loader->setPsr4($namespace, $path); 45 } 46 47 $classMap = require __DIR__ . '/autoload_classmap.php'; 48 if ($classMap) { 49 $loader->addClassMap($classMap); 50 } 51 } 33 52 34 53 $loader->register(true); -
rest-api-blocks/trunk/vendor/composer/autoload_static.php
r3011477 r3074239 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 16ffa2380971890c7d06726dab77d4697 class ComposerStaticInit 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 149 149 { 150 150 return \Closure::bind(function () use ($loader) { 151 $loader->prefixLengthsPsr4 = ComposerStaticInit 16ffa2380971890c7d06726dab77d469::$prefixLengthsPsr4;152 $loader->prefixDirsPsr4 = ComposerStaticInit 16ffa2380971890c7d06726dab77d469::$prefixDirsPsr4;153 $loader->classMap = ComposerStaticInit 16ffa2380971890c7d06726dab77d469::$classMap;151 $loader->prefixLengthsPsr4 = ComposerStaticInit::$prefixLengthsPsr4; 152 $loader->prefixDirsPsr4 = ComposerStaticInit::$prefixDirsPsr4; 153 $loader->classMap = ComposerStaticInit::$classMap; 154 154 155 155 }, null, ClassLoader::class); -
rest-api-blocks/trunk/vendor/composer/installed.php
r3011477 r3074239 1 1 <?php return array( 2 2 'root' => array( 3 'name' => 'spacedmonkey/wp-rest-blocks', 4 'pretty_version' => '1.0.1', 5 'version' => '1.0.1.0', 6 'reference' => '04d5ea4b56d56843552f77f80240a8cd299ed1e7', 3 'pretty_version' => '1.0.2', 4 'version' => '1.0.2.0', 7 5 'type' => 'wordpress-plugin', 8 6 'install_path' => __DIR__ . '/../../', 9 7 'aliases' => array(), 8 9 10 10 'dev' => false, 11 11 ), … … 14 14 'pretty_version' => 'v1.12.0', 15 15 'version' => '1.12.0.0', 16 'reference' => 'd20a64ed3c94748397ff5973488761b22f6d3f19',17 16 'type' => 'composer-plugin', 18 17 'install_path' => __DIR__ . '/./installers', 19 18 'aliases' => array(), 19 20 20 'dev_requirement' => false, 21 21 ), … … 33 33 ), 34 34 'spacedmonkey/wp-rest-blocks' => array( 35 'pretty_version' => '1.0.1', 36 'version' => '1.0.1.0', 37 'reference' => '04d5ea4b56d56843552f77f80240a8cd299ed1e7', 35 'pretty_version' => '1.0.2', 36 'version' => '1.0.2.0', 38 37 'type' => 'wordpress-plugin', 39 38 'install_path' => __DIR__ . '/../../', 40 39 'aliases' => array(), 40 41 41 'dev_requirement' => false, 42 42 ), … … 44 44 'pretty_version' => 'v1.1.1', 45 45 'version' => '1.1.1.0', 46 'reference' => '872339ffd38d261c4417ea1855428b1b4ff9abf1',47 46 'type' => 'library', 48 47 'install_path' => __DIR__ . '/../tburry/pquery', 49 48 'aliases' => array(), 49 50 50 'dev_requirement' => false, 51 51 ), -
rest-api-blocks/trunk/wp-rest-blocks.php
r2901997 r3074239 8 8 * Text Domain: wp-rest-blocks 9 9 * Domain Path: /languages 10 * Version: 1.0. 010 * Version: 1.0. 11 11 * Requires at least: 5.5 12 12 * Requires PHP: 7.0
Note: See TracChangeset
for help on using the changeset viewer.