wp-studio 1.7.8-beta2 → 1.7.8-beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +54 -1
  2. package/assets/demo.gif +0 -0
  3. package/dist/cli/{_events-BRGCap7g.mjs → _events-C2dFSpKE.mjs} +2 -2
  4. package/dist/cli/{certificate-manager-Dd4zv2_k.mjs → certificate-manager-BMngpL-s.mjs} +12 -4
  5. package/dist/cli/{index-9Oz-0bqF.mjs → index-CkFXAp-n.mjs} +5 -5
  6. package/dist/cli/{index-CT4S2538.mjs → index-odShRBgM.mjs} +171 -117
  7. package/dist/cli/{login-D4E3GoXe.mjs → login-BeT1uKwW.mjs} +2 -2
  8. package/dist/cli/{logout-DE-RoshK.mjs → logout-BFQJBJD0.mjs} +2 -2
  9. package/dist/cli/main.mjs +3 -2
  10. package/dist/cli/proxy-daemon.mjs +1 -1
  11. package/dist/cli/{resume-DLoXmzNG.mjs → resume-D_K0QEl5.mjs} +1 -1
  12. package/dist/cli/{set-B8YYUENH.mjs → set-C5l116L7.mjs} +2 -2
  13. package/dist/cli/{set-B0L-QiXT.mjs → set-DzcR6sFr.mjs} +2 -2
  14. package/dist/cli/{status-DEOAA0yx.mjs → status-CbXnAskz.mjs} +1 -1
  15. package/dist/cli/{wp-CobSX6C6.mjs → wp-CUKyZNTP.mjs} +1 -1
  16. package/dist/cli/wp-files/latest/available-site-translations.json +1 -1
  17. package/dist/cli/wp-files/latest/languages/admin-de_DE.l10n.php +2 -2
  18. package/dist/cli/wp-files/latest/languages/admin-network-de_DE.l10n.php +1 -1
  19. package/dist/cli/wp-files/latest/languages/admin-pl_PL.l10n.php +2 -2
  20. package/dist/cli/wp-files/latest/languages/de_DE-0cc31205f20441b3df1d1b46100f6b8d.json +1 -1
  21. package/dist/cli/wp-files/latest/languages/de_DE-0ce75ad2f775d1cac9696967d484808c.json +1 -1
  22. package/dist/cli/wp-files/latest/languages/de_DE-0eebe503220d4a00341eb011b92769b4.json +1 -1
  23. package/dist/cli/wp-files/latest/languages/de_DE-17179a5f2930647c89151e365f843b6e.json +1 -1
  24. package/dist/cli/wp-files/latest/languages/de_DE-1780a2033cf98d69ce13c2e5c8510004.json +1 -1
  25. package/dist/cli/wp-files/latest/languages/de_DE-1a0cd6a7128913b15c1a10dd68951869.json +1 -1
  26. package/dist/cli/wp-files/latest/languages/de_DE-1bba9045bb07c89671c88a3f328548e8.json +1 -1
  27. package/dist/cli/wp-files/latest/languages/de_DE-1c4303f02ff93b290e9faad991eeb06f.json +1 -1
  28. package/dist/cli/wp-files/latest/languages/de_DE-1d17475f620f63a92e2c5d2681c51ee8.json +1 -1
  29. package/dist/cli/wp-files/latest/languages/de_DE-2617ce121227a46077ede6c69aa9fcb5.json +1 -1
  30. package/dist/cli/wp-files/latest/languages/de_DE-270d72d1cff17227d37f3244759cbecb.json +1 -1
  31. package/dist/cli/wp-files/latest/languages/de_DE-28b3c3d595952907e08d98287077426c.json +1 -1
  32. package/dist/cli/wp-files/latest/languages/de_DE-2b390f85a3048c5b4255fb45960b6514.json +1 -1
  33. package/dist/cli/wp-files/latest/languages/de_DE-2c5d274ea625dd91556554ad82901529.json +1 -1
  34. package/dist/cli/wp-files/latest/languages/de_DE-320f4ad9792aaa6dedb1e71cbdf85d57.json +1 -1
  35. package/dist/cli/wp-files/latest/languages/de_DE-440127dd25bde48a531ded36f33e927b.json +1 -1
  36. package/dist/cli/wp-files/latest/languages/de_DE-49c6d4acf36cf3aca9f0b2a77617304f.json +1 -1
  37. package/dist/cli/wp-files/latest/languages/de_DE-4a38fe1c0c45989e44682ba6109d9f46.json +1 -1
  38. package/dist/cli/wp-files/latest/languages/de_DE-4bfa11da57ff2600004bb500368247f4.json +1 -1
  39. package/dist/cli/wp-files/latest/languages/de_DE-50278328b502f4eb3f2b8b7ab49324a1.json +1 -1
  40. package/dist/cli/wp-files/latest/languages/de_DE-5251f7623766a714c8207c7edb938628.json +1 -1
  41. package/dist/cli/wp-files/latest/languages/de_DE-529362903a5a05b34b06b5e793fb4cf8.json +1 -1
  42. package/dist/cli/wp-files/latest/languages/de_DE-569e85ef168299eb8c8f24d8ef8c8a78.json +1 -1
  43. package/dist/cli/wp-files/latest/languages/de_DE-6025add6bde16aaeb12787d250f9b414.json +1 -1
  44. package/dist/cli/wp-files/latest/languages/de_DE-60d06fac6f98e8e8f0ec5a945738b660.json +1 -1
  45. package/dist/cli/wp-files/latest/languages/de_DE-68f2cec7514bf8563c723a4d675fcfe6.json +1 -1
  46. package/dist/cli/wp-files/latest/languages/de_DE-7233008897033de5ee0d14f86a42a65a.json +1 -1
  47. package/dist/cli/wp-files/latest/languages/de_DE-7289286ed59e90a8f36ae797df62220b.json +1 -1
  48. package/dist/cli/wp-files/latest/languages/de_DE-7436b7ee9e4f11ac0d618d8cc886eb66.json +1 -1
  49. package/dist/cli/wp-files/latest/languages/de_DE-77fdfadaf2e1ca3a027d1956b910bc50.json +1 -1
  50. package/dist/cli/wp-files/latest/languages/de_DE-7b74c8457eaa7fcc50db41b431f8a003.json +1 -1
  51. package/dist/cli/wp-files/latest/languages/de_DE-7c90cd4398ee2d9d3628c387a87a70e5.json +1 -1
  52. package/dist/cli/wp-files/latest/languages/de_DE-7d5ca435e60d92f024d46c9257aaa0f7.json +1 -1
  53. package/dist/cli/wp-files/latest/languages/de_DE-7f13c36c641b114bf18cd0bcc9ecc7e0.json +1 -1
  54. package/dist/cli/wp-files/latest/languages/de_DE-803bf1ce2131e13efc590c1bc47851fc.json +1 -1
  55. package/dist/cli/wp-files/latest/languages/de_DE-81c889563f09dd13de1701135dc62941.json +1 -1
  56. package/dist/cli/wp-files/latest/languages/de_DE-81d6f084cb273e02e15b01bd9ece87f7.json +1 -1
  57. package/dist/cli/wp-files/latest/languages/de_DE-8240df461220d1d3a028a9a4c5652a5b.json +1 -1
  58. package/dist/cli/wp-files/latest/languages/de_DE-8860e58c20c6a2ab5876a0f07be43bd9.json +1 -1
  59. package/dist/cli/wp-files/latest/languages/de_DE-93882e8f9976382d7f724ac595ed7151.json +1 -1
  60. package/dist/cli/wp-files/latest/languages/de_DE-947c76bb5095da30e16668eec15406b2.json +1 -1
  61. package/dist/cli/wp-files/latest/languages/de_DE-9b256ea9cd54df92095e04c76758ceb0.json +1 -1
  62. package/dist/cli/wp-files/latest/languages/de_DE-9c3519f4870fac83dc0dbf18cb6bd4c4.json +1 -1
  63. package/dist/cli/wp-files/latest/languages/de_DE-9d47a87c240c1d10701cd6a02b28aa1b.json +1 -1
  64. package/dist/cli/wp-files/latest/languages/de_DE-a25d1cc7bf7ca0b4e114f6bea64943f4.json +1 -1
  65. package/dist/cli/wp-files/latest/languages/de_DE-a2796e57f680e25d84c4b352ee6d7280.json +1 -1
  66. package/dist/cli/wp-files/latest/languages/de_DE-a9dc201dcd011fe71849743133052619.json +1 -1
  67. package/dist/cli/wp-files/latest/languages/de_DE-aabfce98c410957228848dc581e3c420.json +1 -1
  68. package/dist/cli/wp-files/latest/languages/de_DE-ac23eee47530ac63a1178c827db28087.json +1 -1
  69. package/dist/cli/wp-files/latest/languages/de_DE-bf0f094965d3d4a95b47babcb35fc136.json +1 -1
  70. package/dist/cli/wp-files/latest/languages/de_DE-bf23b24175490c2e46aaf92ff6a0c70f.json +1 -1
  71. package/dist/cli/wp-files/latest/languages/de_DE-c31d5f185753910c14afebc6deb2ce24.json +1 -1
  72. package/dist/cli/wp-files/latest/languages/de_DE-ca28138671823450e87dfd354f7afc6b.json +1 -1
  73. package/dist/cli/wp-files/latest/languages/de_DE-daeb084aab42199d26393a56c3465bc0.json +1 -1
  74. package/dist/cli/wp-files/latest/languages/de_DE-e2791ba830489d23043be8650a22a22b.json +1 -1
  75. package/dist/cli/wp-files/latest/languages/de_DE-e2e4c4b80f3adf2c70b431bfdb1b4872.json +1 -1
  76. package/dist/cli/wp-files/latest/languages/de_DE-e53526243551a102928735ec9eed4edf.json +1 -1
  77. package/dist/cli/wp-files/latest/languages/de_DE-f575f481034e90e21d832e415fd95fcf.json +1 -1
  78. package/dist/cli/wp-files/latest/languages/de_DE-f70806bf0c7d62f2908bd5a1c3fe4efc.json +1 -1
  79. package/dist/cli/wp-files/latest/languages/de_DE-f8f49d9fc4a9cf7d78ec99285417bd9c.json +1 -1
  80. package/dist/cli/wp-files/latest/languages/de_DE.l10n.php +27 -27
  81. package/dist/cli/wp-files/latest/languages/pl_PL-0cc31205f20441b3df1d1b46100f6b8d.json +1 -1
  82. package/dist/cli/wp-files/latest/languages/pl_PL-0eebe503220d4a00341eb011b92769b4.json +1 -1
  83. package/dist/cli/wp-files/latest/languages/pl_PL-1c4303f02ff93b290e9faad991eeb06f.json +1 -1
  84. package/dist/cli/wp-files/latest/languages/pl_PL-1d17475f620f63a92e2c5d2681c51ee8.json +1 -1
  85. package/dist/cli/wp-files/latest/languages/pl_PL-2b390f85a3048c5b4255fb45960b6514.json +1 -1
  86. package/dist/cli/wp-files/latest/languages/pl_PL-4a38fe1c0c45989e44682ba6109d9f46.json +1 -1
  87. package/dist/cli/wp-files/latest/languages/pl_PL-4bfa11da57ff2600004bb500368247f4.json +1 -1
  88. package/dist/cli/wp-files/latest/languages/pl_PL-50278328b502f4eb3f2b8b7ab49324a1.json +1 -1
  89. package/dist/cli/wp-files/latest/languages/pl_PL-5251f7623766a714c8207c7edb938628.json +1 -1
  90. package/dist/cli/wp-files/latest/languages/pl_PL-529362903a5a05b34b06b5e793fb4cf8.json +1 -1
  91. package/dist/cli/wp-files/latest/languages/pl_PL-569e85ef168299eb8c8f24d8ef8c8a78.json +1 -1
  92. package/dist/cli/wp-files/latest/languages/pl_PL-6025add6bde16aaeb12787d250f9b414.json +1 -1
  93. package/dist/cli/wp-files/latest/languages/pl_PL-7436b7ee9e4f11ac0d618d8cc886eb66.json +1 -1
  94. package/dist/cli/wp-files/latest/languages/pl_PL-77fdfadaf2e1ca3a027d1956b910bc50.json +1 -1
  95. package/dist/cli/wp-files/latest/languages/pl_PL-7b74c8457eaa7fcc50db41b431f8a003.json +1 -1
  96. package/dist/cli/wp-files/latest/languages/pl_PL-7d5ca435e60d92f024d46c9257aaa0f7.json +1 -1
  97. package/dist/cli/wp-files/latest/languages/pl_PL-81d6f084cb273e02e15b01bd9ece87f7.json +1 -1
  98. package/dist/cli/wp-files/latest/languages/pl_PL-8240df461220d1d3a028a9a4c5652a5b.json +1 -1
  99. package/dist/cli/wp-files/latest/languages/pl_PL-9b256ea9cd54df92095e04c76758ceb0.json +1 -1
  100. package/dist/cli/wp-files/latest/languages/pl_PL-9c3519f4870fac83dc0dbf18cb6bd4c4.json +1 -1
  101. package/dist/cli/wp-files/latest/languages/pl_PL-9d47a87c240c1d10701cd6a02b28aa1b.json +1 -1
  102. package/dist/cli/wp-files/latest/languages/pl_PL-a9dc201dcd011fe71849743133052619.json +1 -1
  103. package/dist/cli/wp-files/latest/languages/pl_PL-aabfce98c410957228848dc581e3c420.json +1 -1
  104. package/dist/cli/wp-files/latest/languages/pl_PL-ca28138671823450e87dfd354f7afc6b.json +1 -1
  105. package/dist/cli/wp-files/latest/languages/pl_PL-e2e4c4b80f3adf2c70b431bfdb1b4872.json +1 -1
  106. package/dist/cli/wp-files/sqlite-command/composer.json +4 -3
  107. package/dist/cli/wp-files/sqlite-command/composer.lock +132 -80
  108. package/dist/cli/wp-files/sqlite-command/vendor/autoload.php +1 -1
  109. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_classmap.php +58 -70
  110. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_namespaces.php +1 -0
  111. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_psr4.php +1 -1
  112. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_real.php +5 -5
  113. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_static.php +78 -80
  114. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.json +104 -49
  115. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.php +29 -16
  116. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/CHANGELOG.md +103 -0
  117. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/Comparator.php +62 -0
  118. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
  119. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
  120. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
  121. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
  122. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Finder.php +851 -0
  123. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Gitignore.php +91 -0
  124. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Glob.php +116 -0
  125. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
  126. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
  127. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
  128. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
  129. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
  130. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
  131. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
  132. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
  133. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
  134. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
  135. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
  136. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
  137. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SortableIterator.php +115 -0
  138. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
  139. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/LICENSE +19 -0
  140. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/README.md +14 -0
  141. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/SplFileInfo.php +80 -0
  142. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/composer.json +31 -0
  143. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/.gitattributes +8 -0
  144. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/LICENSE +1 -1
  145. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/README.md +76 -0
  146. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/composer.json +6 -16
  147. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/src/Mustache/Autoloader.php +88 -0
  148. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/AbstractCache.php +7 -15
  149. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/FilesystemCache.php +15 -20
  150. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/NoopCache.php +4 -8
  151. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache.php +7 -10
  152. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Compiler.php +87 -144
  153. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Context.php +19 -23
  154. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Engine.php +134 -251
  155. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/InvalidArgumentException.php +2 -6
  156. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/LogicException.php +2 -6
  157. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/RuntimeException.php +2 -6
  158. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/SyntaxException.php +8 -7
  159. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownFilterException.php +7 -7
  160. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownHelperException.php +7 -7
  161. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownTemplateException.php +7 -7
  162. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception.php +5 -4
  163. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/HelperCollection.php +17 -22
  164. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/LambdaHelper.php +8 -28
  165. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ArrayLoader.php +9 -12
  166. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/CascadingLoader.php +15 -18
  167. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/FilesystemLoader.php +18 -24
  168. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/InlineLoader.php +13 -19
  169. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/MutableLoader.php +7 -4
  170. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ProductionFilesystemLoader.php +16 -23
  171. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/StringLoader.php +4 -8
  172. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader.php +7 -8
  173. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/AbstractLogger.php +26 -22
  174. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/StreamLogger.php +20 -25
  175. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger.php +37 -13
  176. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Parser.php +93 -100
  177. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source/FilesystemSource.php +7 -11
  178. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source.php +5 -4
  179. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Template.php +32 -39
  180. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Tokenizer.php +29 -33
  181. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.actrc +3 -0
  182. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.gitattributes +6 -0
  183. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.mailmap +234 -0
  184. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/README.md +4 -4
  185. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/VERSION +1 -1
  186. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/CHANGELOG.md +0 -65
  187. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/README.md +1 -2
  188. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem +372 -315
  189. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem.sha256 +1 -1
  190. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/composer.json +5 -7
  191. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Iri.php +18 -20
  192. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Requests.php +1 -1
  193. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Response/Headers.php +1 -1
  194. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Curl.php +1 -5
  195. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Fsockopen.php +0 -2
  196. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php +0 -12
  197. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/FilteredIterator.php +2 -2
  198. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/composer.json +13 -30
  199. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/dependencies.yml +6 -0
  200. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/manifest.json +1 -1
  201. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Autoloader.php +2 -4
  202. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/AutoloaderStep.php +1 -10
  203. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/CheckRoot.php +2 -20
  204. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DefineProtectedCommands.php +3 -3
  205. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFrameworkAutoloader.php +4 -3
  206. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php +3 -4
  207. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeContexts.php +0 -3
  208. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeLogger.php +1 -1
  209. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php +3 -6
  210. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/{RegisterShutdownHandler.php → LoadDispatcher.php} +4 -6
  211. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadRequiredCommand.php +5 -9
  212. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadUtilityFunctions.php +0 -1
  213. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Completions.php +6 -149
  214. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Configurator.php +49 -202
  215. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Admin.php +21 -113
  216. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Auto.php +1 -1
  217. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Cli.php +1 -0
  218. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Frontend.php +1 -0
  219. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php +26 -63
  220. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php +9 -19
  221. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php +19 -284
  222. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php +5 -17
  223. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Exception/NonExistentKeyException.php +3 -6
  224. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Extractor.php +54 -30
  225. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Base.php +3 -7
  226. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php +2 -4
  227. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php +3 -8
  228. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Signup.php +1 -3
  229. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php +4 -12
  230. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php +1 -3
  231. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/FileCache.php +33 -135
  232. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Formatter.php +57 -221
  233. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Inflector.php +4 -4
  234. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/CSV.php +1 -6
  235. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Query.php +1 -3
  236. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Table.php +1 -7
  237. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Transform.php +0 -2
  238. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Base.php +0 -15
  239. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Quiet.php +3 -2
  240. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Regular.php +3 -4
  241. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/NoOp.php +0 -4
  242. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Process.php +7 -40
  243. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/RequestsLibrary.php +1 -4
  244. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php +234 -795
  245. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisParser.php +26 -116
  246. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisValidator.php +1 -1
  247. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Traverser/RecursiveDataStructureTraverser.php +26 -69
  248. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/UpgraderSkin.php +1 -1
  249. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpHttpCacheManager.php +5 -67
  250. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpOrgApi.php +3 -3
  251. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/boot-fs.php +2 -2
  252. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/bootstrap.php +2 -5
  253. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/class-wp-cli.php +62 -311
  254. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Alias_Command.php +60 -292
  255. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Cache_Command.php +1 -1
  256. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Command.php +31 -191
  257. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/Help_Command.php +35 -177
  258. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/config-spec.php +4 -28
  259. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils-wp.php +47 -81
  260. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils.php +200 -512
  261. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-cli.php +2 -2
  262. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-settings-cli.php +465 -0
  263. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man-params.mustache +4 -0
  264. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man.mustache +0 -8
  265. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ArgValidationTest.php +74 -0
  266. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/CommandFactoryTest.php +420 -0
  267. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ConfiguratorTest.php +87 -0
  268. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/DocParserTest.php +213 -0
  269. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ExtractorTest.php +293 -0
  270. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/FileCacheTest.php +207 -0
  271. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/HelpTest.php +119 -0
  272. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/InflectorTest.php +37 -0
  273. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/LoggingTest.php +124 -0
  274. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ProcessTest.php +30 -0
  275. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/SynopsisParserTest.php +194 -0
  276. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/UtilsTest.php +1092 -0
  277. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WPCLITest.php +16 -0
  278. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Iterators/CSVTest.php +109 -0
  279. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Traversers/RecursiveDataStructureTraverserTest.php +151 -0
  280. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/WpOrgApiTest.php +166 -0
  281. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WpVersionCompareTest.php +78 -0
  282. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/bootstrap.php +17 -0
  283. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class-win.php +70 -0
  284. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class.php +70 -0
  285. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function-win.php +19 -0
  286. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function.php +19 -0
  287. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab2 +0 -0
  288. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ab1 +0 -0
  289. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ac1 +0 -0
  290. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.efg2 +0 -0
  291. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab1 +0 -0
  292. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab2 +0 -0
  293. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg1 +0 -0
  294. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg2 +0 -0
  295. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/mock-requests-transport.php +34 -0
  296. package/dist/cli/wp-files/sqlite-command/version +1 -1
  297. package/package.json +4 -3
  298. package/patches/archiver+7.0.1.patch +14 -0
  299. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/.php-cs-fixer.php +0 -20
  300. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/README.md +0 -94
  301. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/RenderedString.php +0 -51
  302. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/compat.php +0 -282
  303. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.typos.toml +0 -14
  304. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/AGENTS.md +0 -121
  305. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/proxy.py +0 -5
  306. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/start.sh +0 -19
  307. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/stop.sh +0 -10
  308. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Path.php +0 -260
  309. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php +0 -329
  310. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli-config.json +0 -218
  311. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli.example.yml +0 -55
  312. /package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/{codecov.yml → tests/data/expand_globs/bar.ab1} +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  // Can be used by plugins/themes to check if WP-CLI is running or not.
4
4
  define( 'WP_CLI', true );
5
- define( 'WP_CLI_VERSION', trim( (string) file_get_contents( WP_CLI_ROOT . '/VERSION' ) ) );
5
+ define( 'WP_CLI_VERSION', trim( file_get_contents( WP_CLI_ROOT . '/VERSION' ) ) );
6
6
  define( 'WP_CLI_START_MICROTIME', microtime( true ) );
7
7
 
8
8
  if ( file_exists( WP_CLI_ROOT . '/vendor/autoload.php' ) ) {
@@ -26,7 +26,7 @@ $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
26
26
  require_once WP_CLI_ROOT . '/php/bootstrap.php';
27
27
 
28
28
  if ( getenv( 'WP_CLI_EARLY_REQUIRE' ) ) {
29
- foreach ( explode( ',', (string) getenv( 'WP_CLI_EARLY_REQUIRE' ) ) as $wp_cli_early_require ) {
29
+ foreach ( explode( ',', getenv( 'WP_CLI_EARLY_REQUIRE' ) ) as $wp_cli_early_require ) {
30
30
  require_once trim( $wp_cli_early_require );
31
31
  }
32
32
  unset( $wp_cli_early_require );
@@ -0,0 +1,465 @@
1
+ <?php
2
+ /**
3
+ * A modified version of wp-settings.php, tailored for CLI use.
4
+ *
5
+ * Note: This is not being used anymore from WordPress 4.6-alpha-37575 onwards.
6
+ *
7
+ * @phpcs:disable WordPress.WP.GlobalVariablesOverride -- Setting the globals is the point of this file.
8
+ * @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound -- These are WP native constants which are needed.
9
+ * @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- All hook calls in this file are to WP native hooks.
10
+ * @phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Ensuring native WP variables are available.
11
+ */
12
+
13
+ use WP_CLI\Utils;
14
+
15
+ /**
16
+ * Stores the location of the WordPress directory of functions, classes, and core content.
17
+ *
18
+ * @since 1.0.0
19
+ */
20
+ define( 'WPINC', 'wp-includes' );
21
+
22
+ // Include files required for initialization.
23
+ require ABSPATH . WPINC . '/load.php';
24
+ require ABSPATH . WPINC . '/default-constants.php';
25
+ require ABSPATH . WPINC . '/plugin.php';
26
+
27
+ /*
28
+ * These can't be directly globalized in version.php. When updating,
29
+ * we're including version.php from another installation and don't want
30
+ * these values to be overridden if already set.
31
+ */
32
+ global $wp_version, $wp_db_version, $tinymce_version, $required_php_version, $required_mysql_version, $wp_local_package, $upgrading;
33
+ require ABSPATH . WPINC . '/version.php';
34
+
35
+ /**
36
+ * If not already configured, `$blog_id` will default to 1 in a single site
37
+ * configuration. In multisite, it will be overridden by default in ms-settings.php.
38
+ *
39
+ * @since 2.0.0
40
+ * @global int $blog_id
41
+ */
42
+ global $blog_id;
43
+
44
+ // Set initial default constants including WP_MEMORY_LIMIT, WP_MAX_MEMORY_LIMIT, WP_DEBUG, WP_CONTENT_DIR and WP_CACHE.
45
+ wp_initial_constants();
46
+
47
+ // Check for the required PHP version and for the MySQL extension or a database drop-in.
48
+ wp_check_php_mysql_versions();
49
+
50
+ // Disable magic quotes at runtime. Magic quotes are added using wpdb later in wp-settings.php.
51
+ // phpcs:disable PHPCompatibility.IniDirectives.RemovedIniDirectives,WordPress.PHP.IniSet.Risky
52
+ ini_set( 'magic_quotes_runtime', 0 );
53
+ ini_set( 'magic_quotes_sybase', 0 );
54
+ // phpc:enable PHPCompatibility.IniDirectives.RemovedIniDirectives,WordPress.PHP.IniSet
55
+
56
+ // WordPress calculates offsets from UTC.
57
+ // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set
58
+ date_default_timezone_set( 'UTC' );
59
+
60
+ // Standardize $_SERVER variables across setups.
61
+ wp_fix_server_vars();
62
+
63
+ // Check if we're in maintenance mode.
64
+ // WP-CLI: run enable_maintenance_mode filter early for compat with < WP 4.6
65
+ /**
66
+ * Filters whether to enable maintenance mode.
67
+ *
68
+ * This filter runs before it can be used by plugins. It is designed for
69
+ * non-web runtimes. If this filter returns true, maintenance mode will be
70
+ * active and the request will end. If false, the request will be allowed to
71
+ * continue processing even if maintenance mode should be active.
72
+ *
73
+ * @since 4.6.0
74
+ *
75
+ * @param bool $enable_checks Whether to enable maintenance mode. Default true.
76
+ * @param int $upgrading The timestamp set in the .maintenance file.
77
+ */
78
+ if ( apply_filters( 'enable_maintenance_mode', true, $upgrading ) ) {
79
+ wp_maintenance();
80
+ }
81
+
82
+ // Start loading timer.
83
+ timer_start();
84
+
85
+ // WP-CLI: run enable_wp_debug_mode_checks filter early for compat with < WP 4.6
86
+ /**
87
+ * Filters whether to allow the debug mode check to occur.
88
+ *
89
+ * This filter runs before it can be used by plugins. It is designed for
90
+ * non-web run-times. Returning false causes the `WP_DEBUG` and related
91
+ * constants to not be checked and the default php values for errors
92
+ * will be used unless you take care to update them yourself.
93
+ *
94
+ * @since 4.6.0
95
+ *
96
+ * @param bool $enable_debug_mode Whether to enable debug mode checks to occur. Default true.
97
+ */
98
+ if ( apply_filters( 'enable_wp_debug_mode_checks', true ) ) {
99
+ wp_debug_mode();
100
+ }
101
+
102
+ /**
103
+ * Filters whether to enable loading of the advanced-cache.php drop-in.
104
+ *
105
+ * This filter runs before it can be used by plugins. It is designed for non-web
106
+ * run-times. If false is returned, advance-cache.php will never be loaded.
107
+ *
108
+ * @since 4.6.0
109
+ *
110
+ * @param bool $enable_advanced_cache Whether to enable loading advanced-cache.php (if present).
111
+ * Default true.
112
+ */
113
+ if ( WP_CACHE && apply_filters( 'enable_loading_advanced_cache_dropin', true ) ) {
114
+ // For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
115
+ if ( file_exists( WP_CONTENT_DIR . '/advanced-cache.php' ) ) {
116
+ include WP_CONTENT_DIR . '/advanced-cache.php';
117
+ }
118
+ }
119
+
120
+ // Define WP_LANG_DIR if not set.
121
+ wp_set_lang_dir();
122
+
123
+ // Load early WordPress files.
124
+ require ABSPATH . WPINC . '/compat.php';
125
+ require ABSPATH . WPINC . '/functions.php';
126
+ require ABSPATH . WPINC . '/class-wp.php';
127
+ require ABSPATH . WPINC . '/class-wp-error.php';
128
+ require ABSPATH . WPINC . '/pomo/mo.php';
129
+
130
+ // Include the wpdb class and, if present, a db.php database drop-in.
131
+ require_wp_db();
132
+
133
+ // WP-CLI: Handle db error ourselves, instead of waiting for dead_db()
134
+ global $wpdb;
135
+ if ( ! empty( $wpdb->error ) ) {
136
+ wp_die( $wpdb->error );
137
+ }
138
+
139
+ // Set the database table prefix and the format specifiers for database table columns.
140
+ $GLOBALS['table_prefix'] = $table_prefix;
141
+ wp_set_wpdb_vars();
142
+
143
+ // Start the WordPress object cache, or an external object cache if the drop-in is present.
144
+ wp_start_object_cache();
145
+
146
+ // Attach the default filters.
147
+ require ABSPATH . WPINC . '/default-filters.php';
148
+
149
+ // Initialize multisite if enabled.
150
+ if ( is_multisite() ) {
151
+ Utils\maybe_require( '4.6-alpha-37575', ABSPATH . WPINC . '/class-wp-site-query.php' );
152
+ Utils\maybe_require( '4.6-alpha-37896', ABSPATH . WPINC . '/class-wp-network-query.php' );
153
+ require ABSPATH . WPINC . '/ms-blogs.php';
154
+ require ABSPATH . WPINC . '/ms-settings.php';
155
+ } elseif ( ! defined( 'MULTISITE' ) ) {
156
+ define( 'MULTISITE', false );
157
+ }
158
+
159
+ register_shutdown_function( 'shutdown_action_hook' );
160
+
161
+ // Stop most of WordPress from being loaded if we just want the basics.
162
+ if ( SHORTINIT ) {
163
+ return false;
164
+ }
165
+
166
+ // Load the L10n library.
167
+ require_once ABSPATH . WPINC . '/l10n.php';
168
+
169
+ // WP-CLI: Permit Utils\wp_not_installed() to run on < WP 4.0
170
+ apply_filters( 'nocache_headers', [] );
171
+
172
+ // Run the installer if WordPress is not installed.
173
+ wp_not_installed();
174
+
175
+ // Load most of WordPress.
176
+ require ABSPATH . WPINC . '/class-wp-walker.php';
177
+ require ABSPATH . WPINC . '/class-wp-ajax-response.php';
178
+ require ABSPATH . WPINC . '/formatting.php';
179
+ require ABSPATH . WPINC . '/capabilities.php';
180
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-roles.php' );
181
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-role.php' );
182
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-user.php' );
183
+ require ABSPATH . WPINC . '/query.php';
184
+ Utils\maybe_require( '3.7-alpha-25139', ABSPATH . WPINC . '/date.php' );
185
+ require ABSPATH . WPINC . '/theme.php';
186
+ require ABSPATH . WPINC . '/class-wp-theme.php';
187
+ require ABSPATH . WPINC . '/template.php';
188
+ require ABSPATH . WPINC . '/user.php';
189
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-user-query.php' );
190
+ Utils\maybe_require( '4.0', ABSPATH . WPINC . '/session.php' );
191
+ require ABSPATH . WPINC . '/meta.php';
192
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-meta-query.php' );
193
+ Utils\maybe_require( '4.5-alpha-35776', ABSPATH . WPINC . '/class-wp-metadata-lazyloader.php' );
194
+ require ABSPATH . WPINC . '/general-template.php';
195
+ require ABSPATH . WPINC . '/link-template.php';
196
+ require ABSPATH . WPINC . '/author-template.php';
197
+ require ABSPATH . WPINC . '/post.php';
198
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-walker-page.php' );
199
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-walker-page-dropdown.php' );
200
+ Utils\maybe_require( '4.6-alpha-37890', ABSPATH . WPINC . '/class-wp-post-type.php' );
201
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-post.php' );
202
+ require ABSPATH . WPINC . '/post-template.php';
203
+ Utils\maybe_require( '3.6-alpha-23451', ABSPATH . WPINC . '/revision.php' );
204
+ Utils\maybe_require( '3.6-alpha-23451', ABSPATH . WPINC . '/post-formats.php' );
205
+ require ABSPATH . WPINC . '/post-thumbnail-template.php';
206
+ require ABSPATH . WPINC . '/category.php';
207
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-walker-category.php' );
208
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-walker-category-dropdown.php' );
209
+ require ABSPATH . WPINC . '/category-template.php';
210
+ require ABSPATH . WPINC . '/comment.php';
211
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-comment.php' );
212
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-comment-query.php' );
213
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-walker-comment.php' );
214
+ require ABSPATH . WPINC . '/comment-template.php';
215
+ require ABSPATH . WPINC . '/rewrite.php';
216
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-rewrite.php' );
217
+ require ABSPATH . WPINC . '/feed.php';
218
+ require ABSPATH . WPINC . '/bookmark.php';
219
+ require ABSPATH . WPINC . '/bookmark-template.php';
220
+ require ABSPATH . WPINC . '/kses.php';
221
+ require ABSPATH . WPINC . '/cron.php';
222
+ require ABSPATH . WPINC . '/deprecated.php';
223
+ require ABSPATH . WPINC . '/script-loader.php';
224
+ require ABSPATH . WPINC . '/taxonomy.php';
225
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-term.php' );
226
+ Utils\maybe_require( '4.6-alpha-37575', ABSPATH . WPINC . '/class-wp-term-query.php' );
227
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-tax-query.php' );
228
+ require ABSPATH . WPINC . '/update.php';
229
+ require ABSPATH . WPINC . '/canonical.php';
230
+ require ABSPATH . WPINC . '/shortcodes.php';
231
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/embed.php' );
232
+ require ABSPATH . WPINC . '/class-wp-embed.php';
233
+ require ABSPATH . WPINC . '/media.php';
234
+ Utils\maybe_require( '4.4-alpha-34903', ABSPATH . WPINC . '/class-wp-oembed-controller.php' );
235
+ require ABSPATH . WPINC . '/http.php';
236
+ require_once ABSPATH . WPINC . '/class-http.php';
237
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-http-streams.php' );
238
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-http-curl.php' );
239
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-http-proxy.php' );
240
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-http-cookie.php' );
241
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-http-encoding.php' );
242
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-http-response.php' );
243
+ Utils\maybe_require( '4.6-alpha-37438', ABSPATH . WPINC . '/class-wp-http-requests-response.php' );
244
+ require ABSPATH . WPINC . '/widgets.php';
245
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-widget.php' );
246
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/class-wp-widget-factory.php' );
247
+ require ABSPATH . WPINC . '/nav-menu.php';
248
+ require ABSPATH . WPINC . '/nav-menu-template.php';
249
+ require ABSPATH . WPINC . '/admin-bar.php';
250
+ Utils\maybe_require( '4.4-alpha-34928', ABSPATH . WPINC . '/rest-api.php' );
251
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/rest-api/class-wp-rest-server.php' );
252
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/rest-api/class-wp-rest-response.php' );
253
+ Utils\maybe_require( '4.4-beta4-35719', ABSPATH . WPINC . '/rest-api/class-wp-rest-request.php' );
254
+
255
+ // Load multisite-specific files.
256
+ if ( is_multisite() ) {
257
+ require ABSPATH . WPINC . '/ms-functions.php';
258
+ require ABSPATH . WPINC . '/ms-default-filters.php';
259
+ require ABSPATH . WPINC . '/ms-deprecated.php';
260
+ }
261
+
262
+ // Define constants that rely on the API to obtain the default value.
263
+ // Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in.
264
+ wp_plugin_directory_constants();
265
+
266
+ $symlinked_plugins_supported = function_exists( 'wp_register_plugin_realpath' );
267
+ if ( $symlinked_plugins_supported ) {
268
+ $GLOBALS['wp_plugin_paths'] = [];
269
+ }
270
+
271
+ // Load must-use plugins.
272
+ foreach ( wp_get_mu_plugins() as $mu_plugin ) {
273
+ include_once $mu_plugin;
274
+ }
275
+ unset( $mu_plugin );
276
+
277
+ // Load network activated plugins.
278
+ if ( is_multisite() ) {
279
+ foreach ( wp_get_active_network_plugins() as $network_plugin ) {
280
+ if ( $symlinked_plugins_supported ) {
281
+ wp_register_plugin_realpath( $network_plugin );
282
+ }
283
+ include_once $network_plugin;
284
+ }
285
+ unset( $network_plugin );
286
+ }
287
+
288
+ do_action( 'muplugins_loaded' );
289
+
290
+ if ( is_multisite() ) {
291
+ ms_cookie_constants();
292
+ }
293
+
294
+ // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().
295
+ wp_cookie_constants();
296
+
297
+ // Define and enforce our SSL constants.
298
+ wp_ssl_constants();
299
+
300
+ // Create common globals.
301
+ require ABSPATH . WPINC . '/vars.php';
302
+
303
+ // Make taxonomies and posts available to plugins and themes.
304
+ // @plugin authors: warning: these get registered again on the init hook.
305
+ create_initial_taxonomies();
306
+ create_initial_post_types();
307
+
308
+ // Register the default theme directory root
309
+ register_theme_directory( get_theme_root() );
310
+
311
+ // Load active plugins.
312
+ foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
313
+ if ( $symlinked_plugins_supported ) {
314
+ wp_register_plugin_realpath( $plugin );
315
+ }
316
+ include_once $plugin;
317
+ }
318
+ unset( $plugin, $symlinked_plugins_supported );
319
+
320
+ // Load pluggable functions.
321
+ require ABSPATH . WPINC . '/pluggable.php';
322
+ require ABSPATH . WPINC . '/pluggable-deprecated.php';
323
+
324
+ // Set internal encoding.
325
+ wp_set_internal_encoding();
326
+
327
+ // Run wp_cache_postload() if object cache is enabled and the function exists.
328
+ if ( WP_CACHE && function_exists( 'wp_cache_postload' ) ) {
329
+ wp_cache_postload();
330
+ }
331
+
332
+ do_action( 'plugins_loaded' );
333
+
334
+ // Define constants which affect functionality if not already defined.
335
+ wp_functionality_constants();
336
+
337
+ if ( ! function_exists( 'get_magic_quotes_gpc' ) ) {
338
+ // Provide compat fallback for newer PHP version (7.4+) on older WordPress core versions.
339
+ function get_magic_quotes_gpc() {
340
+ return false;
341
+ }
342
+ }
343
+
344
+ // Add magic quotes and set up $_REQUEST ( $_GET + $_POST )
345
+ wp_magic_quotes();
346
+
347
+ do_action( 'sanitize_comment_cookies' );
348
+
349
+ /**
350
+ * WordPress Query object
351
+ * @since 2.0.0
352
+ * @global object $wp_the_query
353
+ */
354
+ $GLOBALS['wp_the_query'] = new WP_Query();
355
+
356
+ /**
357
+ * Holds the reference to @see $wp_the_query
358
+ * Use this global for WordPress queries
359
+ * @since 1.5.0
360
+ * @global object $wp_query
361
+ */
362
+ $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
363
+
364
+ /**
365
+ * Holds the WordPress Rewrite object for creating pretty URLs
366
+ * @since 1.5.0
367
+ * @global object $wp_rewrite
368
+ */
369
+ $GLOBALS['wp_rewrite'] = new WP_Rewrite();
370
+
371
+ /**
372
+ * WordPress Object
373
+ * @since 2.0.0
374
+ * @global object $wp
375
+ */
376
+ $GLOBALS['wp'] = new WP();
377
+
378
+ /**
379
+ * WordPress Widget Factory Object
380
+ * @since 2.8.0
381
+ * @global object $wp_widget_factory
382
+ */
383
+ $GLOBALS['wp_widget_factory'] = new WP_Widget_Factory();
384
+
385
+ /**
386
+ * WordPress User Roles
387
+ * @since 2.0.0
388
+ * @global object $wp_roles
389
+ */
390
+ $GLOBALS['wp_roles'] = new WP_Roles();
391
+
392
+ do_action( 'setup_theme' );
393
+
394
+ // Define the template related constants.
395
+ wp_templating_constants();
396
+
397
+ // Load the default text localization domain.
398
+ load_default_textdomain();
399
+
400
+ $locale = get_locale();
401
+ $locale_file = WP_LANG_DIR . "/$locale.php";
402
+ if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) {
403
+ require $locale_file;
404
+ }
405
+ unset( $locale_file );
406
+
407
+ // Pull in locale data after loading text domain.
408
+ require_once ABSPATH . WPINC . '/locale.php';
409
+
410
+ /**
411
+ * WordPress Locale object for loading locale domain date and various strings.
412
+ * @since 2.1.0
413
+ * @global object $wp_locale
414
+ */
415
+ $GLOBALS['wp_locale'] = new WP_Locale();
416
+
417
+ // Load the functions for the active theme, for both parent and child theme if applicable.
418
+ // phpcs:disable WordPress.WP.DiscouragedConstants.STYLESHEETPATHUsageFound,WordPress.WP.DiscouragedConstants.TEMPLATEPATHUsageFound
419
+ global $pagenow;
420
+ if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) {
421
+ if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) ) {
422
+ include STYLESHEETPATH . '/functions.php';
423
+ }
424
+ if ( file_exists( TEMPLATEPATH . '/functions.php' ) ) {
425
+ include TEMPLATEPATH . '/functions.php';
426
+ }
427
+ }
428
+ // phpcs:enable WordPress.WP.DiscouragedConstants
429
+
430
+ do_action( 'after_setup_theme' );
431
+
432
+ // Set up current user.
433
+ $GLOBALS['wp']->init();
434
+
435
+ /**
436
+ * Most of WP is loaded at this stage, and the user is authenticated. WP continues
437
+ * to load on the init hook that follows (e.g. widgets), and many plugins instantiate
438
+ * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.).
439
+ *
440
+ * If you wish to plug an action once WP is loaded, use the wp_loaded hook below.
441
+ */
442
+ do_action( 'init' );
443
+
444
+ // Check site status.
445
+ # if ( is_multisite() ) { // WP-CLI
446
+ if ( is_multisite() && ! defined( 'WP_INSTALLING' ) ) {
447
+ $file = ms_site_check();
448
+ if ( true !== $file ) {
449
+ require $file;
450
+ die();
451
+ }
452
+ unset( $file );
453
+ }
454
+
455
+ /**
456
+ * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated.
457
+ *
458
+ * AJAX requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for
459
+ * users not logged in.
460
+ *
461
+ * @link https://developer.wordpress.org/plugins/javascript/ajax/
462
+ *
463
+ * @since 3.0.0
464
+ */
465
+ do_action( 'wp_loaded' );
@@ -15,3 +15,7 @@
15
15
 
16
16
  {{/parameters}}
17
17
  {{/has_parameters}}
18
+ {{#root_command}}
19
+ Run 'wp help <command>' to get more information on a specific command.
20
+
21
+ {{/root_command}}
@@ -6,14 +6,6 @@
6
6
  ## DESCRIPTION
7
7
 
8
8
  {{shortdesc}}
9
- {{#root_command}}
10
-
11
- Run 'wp help <command>' to get more information on a specific command.
12
-
13
- See the handbook for more information on WP-CLI:
14
- https://make.wordpress.org/cli/handbook/
15
-
16
- {{/root_command}}
17
9
 
18
10
  {{/shortdesc}}
19
11
  ## SYNOPSIS
@@ -0,0 +1,74 @@
1
+ <?php
2
+
3
+ use WP_CLI\SynopsisValidator;
4
+ use WP_CLI\Tests\TestCase;
5
+
6
+ class ArgValidationTest extends TestCase {
7
+
8
+ public function testMissingPositional() {
9
+ $validator = new SynopsisValidator( '<foo> <bar> [<baz>]' );
10
+
11
+ $this->assertFalse( $validator->enough_positionals( [] ) );
12
+ $this->assertTrue( $validator->enough_positionals( [ 1, 2 ] ) );
13
+ $this->assertTrue( $validator->enough_positionals( [ 1, 2, 3, 4 ] ) );
14
+
15
+ $this->assertEquals( [ 4 ], $validator->unknown_positionals( [ 1, 2, 3, 4 ] ) );
16
+ }
17
+
18
+ public function testRepeatingPositional() {
19
+ $validator = new SynopsisValidator( '<foo> [<bar>...]' );
20
+
21
+ $this->assertFalse( $validator->enough_positionals( [] ) );
22
+ $this->assertTrue( $validator->enough_positionals( [ 1 ] ) );
23
+ $this->assertTrue( $validator->enough_positionals( [ 1, 2, 3 ] ) );
24
+
25
+ $this->assertEmpty( $validator->unknown_positionals( [ 1, 2, 3 ] ) );
26
+ }
27
+
28
+ public function testUnknownAssocEmpty() {
29
+ $validator = new SynopsisValidator( '' );
30
+
31
+ $assoc_args = [
32
+ 'foo' => true,
33
+ 'bar' => false,
34
+ ];
35
+ $this->assertEquals( array_keys( $assoc_args ), $validator->unknown_assoc( $assoc_args ) );
36
+ }
37
+
38
+ public function testUnknownAssoc() {
39
+ $validator = new SynopsisValidator( '--type=<type> [--brand=<brand>] [--flag]' );
40
+
41
+ $assoc_args = [
42
+ 'type' => 'analog',
43
+ 'brand' => true,
44
+ 'flag' => true,
45
+ ];
46
+ $this->assertEmpty( $validator->unknown_assoc( $assoc_args ) );
47
+
48
+ $assoc_args['another'] = true;
49
+ $this->assertContains( 'another', $validator->unknown_assoc( $assoc_args ) );
50
+ }
51
+
52
+ public function testMissingAssoc() {
53
+ $validator = new SynopsisValidator( '--type=<type> [--brand=<brand>] [--flag]' );
54
+
55
+ $assoc_args = [
56
+ 'brand' => true,
57
+ 'flag' => true,
58
+ ];
59
+ list( $errors, $to_unset ) = $validator->validate_assoc( $assoc_args );
60
+
61
+ $this->assertCount( 1, $errors['fatal'] );
62
+ $this->assertCount( 1, $errors['warning'] );
63
+ }
64
+
65
+ public function testAssocWithOptionalValue() {
66
+ $validator = new SynopsisValidator( '[--network[=<id>]]' );
67
+
68
+ $assoc_args = [ 'network' => true ];
69
+ list( $errors, $to_unset ) = $validator->validate_assoc( $assoc_args );
70
+
71
+ $this->assertCount( 0, $errors['fatal'] );
72
+ $this->assertCount( 0, $errors['warning'] );
73
+ }
74
+ }