sdc-build-wp 4.1.0 → 4.1.2
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.
- package/composer.json +2 -3
- package/composer.lock +3 -313
- package/index.js +38 -21
- package/lib/blocks.js +8 -6
- package/lib/style.js +17 -0
- package/package.json +1 -1
- package/vendor/composer/autoload_classmap.php +0 -37
- package/vendor/composer/autoload_psr4.php +0 -1
- package/vendor/composer/autoload_real.php +2 -0
- package/vendor/composer/autoload_static.php +0 -53
- package/vendor/composer/installed.json +1 -329
- package/vendor/composer/installed.php +3 -39
- package/vendor/composer/platform_check.php +26 -0
- package/lib/bustCache.js +0 -14
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/LICENSE.md +0 -22
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/README.md +0 -285
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/composer.json +0 -71
- package/vendor/dealerdirect/phpcodesniffer-composer-installer/src/Plugin.php +0 -637
- package/vendor/phpcsstandards/phpcsextra/CHANGELOG.md +0 -590
- package/vendor/phpcsstandards/phpcsextra/LICENSE +0 -165
- package/vendor/phpcsstandards/phpcsextra/Modernize/Docs/FunctionCalls/DirnameStandard.xml +0 -40
- package/vendor/phpcsstandards/phpcsextra/Modernize/Sniffs/FunctionCalls/DirnameSniff.php +0 -382
- package/vendor/phpcsstandards/phpcsextra/Modernize/ruleset.xml +0 -5
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Docs/Arrays/ArrayBraceSpacingStandard.xml +0 -94
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Docs/Arrays/CommaAfterLastStandard.xml +0 -43
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Sniffs/Arrays/ArrayBraceSpacingSniff.php +0 -305
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/Sniffs/Arrays/CommaAfterLastSniff.php +0 -226
- package/vendor/phpcsstandards/phpcsextra/NormalizedArrays/ruleset.xml +0 -5
- package/vendor/phpcsstandards/phpcsextra/README.md +0 -573
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/DisallowShortArraySyntaxStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/DuplicateArrayKeyStandard.xml +0 -44
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/MixedArrayKeyTypesStandard.xml +0 -40
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Arrays/MixedKeyedUnkeyedArrayStandard.xml +0 -31
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/DisallowAnonClassParenthesesStandard.xml +0 -24
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/DisallowFinalClassStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/ModifierKeywordOrderStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/RequireAnonClassParenthesesStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Classes/RequireFinalClassStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/ConstructorDestructorReturnStandard.xml +0 -64
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/ForeachUniqueAssignmentStandard.xml +0 -26
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/NoDoubleNegativeStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/NoEchoSprintfStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/CodeAnalysis/StaticInFinalClassStandard.xml +0 -43
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/LowercaseClassResolutionKeywordStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/ModifierKeywordOrderStandard.xml +0 -30
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Constants/UppercaseMagicConstantsStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowAlternativeSyntaxStandard.xml +0 -35
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/DisallowLonelyIfStandard.xml +0 -49
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/ControlStructures/IfElseDeclarationStandard.xml +0 -37
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Files/SeparateFunctionsFromOOStandard.xml +0 -45
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/FunctionDeclarations/NoLongClosuresStandard.xml +0 -42
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/FunctionDeclarations/RequireFinalMethodsInTraitsStandard.xml +0 -33
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Lists/DisallowLongListSyntaxStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Lists/DisallowShortListSyntaxStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/DisallowCurlyBraceSyntaxStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/DisallowDeclarationWithoutNameStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/EnforceCurlyBraceSyntaxStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Namespaces/OneDeclarationPerFileStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/NamingConventions/NoReservedKeywordParameterNamesStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/OOStructures/AlphabeticExtendsImplementsStandard.xml +0 -27
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/ConcatPositionStandard.xml +0 -31
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowLogicalAndOrStandard.xml +0 -30
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowShortTernaryStandard.xml +0 -26
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/DisallowStandalonePostIncrementDecrementStandard.xml +0 -44
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/StrictComparisonsStandard.xml +0 -29
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/Operators/TypeSeparatorSpacingStandard.xml +0 -33
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/PHP/LowercasePHPTagStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/PHP/OneStatementInShortEchoTagStandard.xml +0 -41
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowMixedGroupUseStandard.xml +0 -39
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseClassStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseConstStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/DisallowUseFunctionStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/KeywordSpacingStandard.xml +0 -29
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/LowercaseFunctionConstStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/NoLeadingBackslashStandard.xml +0 -23
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/UseStatements/NoUselessAliasesStandard.xml +0 -30
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/AnonClassKeywordSpacingStandard.xml +0 -31
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/CommaSpacingStandard.xml +0 -94
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/DisallowInlineTabsStandard.xml +0 -25
- package/vendor/phpcsstandards/phpcsextra/Universal/Docs/WhiteSpace/PrecisionAlignmentStandard.xml +0 -29
- package/vendor/phpcsstandards/phpcsextra/Universal/Helpers/DummyTokenizer.php +0 -60
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/DisallowShortArraySyntaxSniff.php +0 -89
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/DuplicateArrayKeySniff.php +0 -297
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/MixedArrayKeyTypesSniff.php +0 -174
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Arrays/MixedKeyedUnkeyedArraySniff.php +0 -134
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/DisallowAnonClassParenthesesSniff.php +0 -112
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/DisallowFinalClassSniff.php +0 -116
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/ModifierKeywordOrderSniff.php +0 -188
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/RequireAnonClassParenthesesSniff.php +0 -81
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Classes/RequireFinalClassSniff.php +0 -102
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/ConstructorDestructorReturnSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/ForeachUniqueAssignmentSniff.php +0 -153
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/NoDoubleNegativeSniff.php +0 -269
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/NoEchoSprintfSniff.php +0 -131
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/CodeAnalysis/StaticInFinalClassSniff.php +0 -216
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/LowercaseClassResolutionKeywordSniff.php +0 -106
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/ModifierKeywordOrderSniff.php +0 -199
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Constants/UppercaseMagicConstantsSniff.php +0 -89
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/DisallowAlternativeSyntaxSniff.php +0 -216
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/DisallowLonelyIfSniff.php +0 -348
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/ControlStructures/IfElseDeclarationSniff.php +0 -164
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Files/SeparateFunctionsFromOOSniff.php +0 -190
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/FunctionDeclarations/NoLongClosuresSniff.php +0 -233
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/FunctionDeclarations/RequireFinalMethodsInTraitsSniff.php +0 -120
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Lists/DisallowLongListSyntaxSniff.php +0 -71
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Lists/DisallowShortListSyntaxSniff.php +0 -86
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/DisallowCurlyBraceSyntaxSniff.php +0 -81
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/DisallowDeclarationWithoutNameSniff.php +0 -80
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/EnforceCurlyBraceSyntaxSniff.php +0 -81
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Namespaces/OneDeclarationPerFileSniff.php +0 -96
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/NamingConventions/NoReservedKeywordParameterNamesSniff.php +0 -190
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/OOStructures/AlphabeticExtendsImplementsSniff.php +0 -275
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/ConcatPositionSniff.php +0 -204
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowLogicalAndOrSniff.php +0 -112
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowShortTernarySniff.php +0 -76
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/DisallowStandalonePostIncrementDecrementSniff.php +0 -197
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/StrictComparisonsSniff.php +0 -116
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/Operators/TypeSeparatorSpacingSniff.php +0 -85
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/PHP/LowercasePHPTagSniff.php +0 -87
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/PHP/OneStatementInShortEchoTagSniff.php +0 -101
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowMixedGroupUseSniff.php +0 -248
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseClassSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseConstSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/DisallowUseFunctionSniff.php +0 -211
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/KeywordSpacingSniff.php +0 -207
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/LowercaseFunctionConstSniff.php +0 -156
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/NoLeadingBackslashSniff.php +0 -170
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/UseStatements/NoUselessAliasesSniff.php +0 -155
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/AnonClassKeywordSpacingSniff.php +0 -79
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/CommaSpacingSniff.php +0 -408
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php +0 -173
- package/vendor/phpcsstandards/phpcsextra/Universal/Sniffs/WhiteSpace/PrecisionAlignmentSniff.php +0 -445
- package/vendor/phpcsstandards/phpcsextra/Universal/ruleset.xml +0 -5
- package/vendor/phpcsstandards/phpcsextra/composer.json +0 -69
- package/vendor/phpcsstandards/phpcsutils/.phpdoc.xml.dist +0 -36
- package/vendor/phpcsstandards/phpcsutils/CHANGELOG.md +0 -1106
- package/vendor/phpcsstandards/phpcsutils/LICENSE +0 -165
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/AbstractSniffs/AbstractArrayDeclarationSniff.php +0 -551
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCFile.php +0 -781
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/BCTokens.php +0 -123
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/BackCompat/Helper.php +0 -202
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/InvalidTokenArray.php +0 -44
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestFileNotFound.php +0 -47
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestMarkerNotFound.php +0 -43
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Exceptions/TestTargetNotFound.php +0 -50
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Fixers/SpacesFixer.php +0 -246
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/Cache.php +0 -218
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrList.php +0 -687
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/IsShortArrayOrListWithCache.php +0 -269
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/NoFileCache.php +0 -164
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Internal/StableCollections.php +0 -75
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/TestUtils/UtilityMethodTestCase.php +0 -459
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/Collections.php +0 -837
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Tokens/TokenHelper.php +0 -55
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Arrays.php +0 -227
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Conditions.php +0 -156
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Context.php +0 -232
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ControlStructures.php +0 -276
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/FunctionDeclarations.php +0 -828
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/GetTokensAsString.php +0 -262
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Lists.php +0 -359
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/MessageHelper.php +0 -145
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Namespaces.php +0 -389
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/NamingConventions.php +0 -116
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Numbers.php +0 -322
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/ObjectDeclarations.php +0 -359
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Operators.php +0 -252
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Orthography.php +0 -120
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Parentheses.php +0 -419
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/PassedParameters.php +0 -510
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Scopes.php +0 -143
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/TextStrings.php +0 -331
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/UseStatements.php +0 -432
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/Utils/Variables.php +0 -333
- package/vendor/phpcsstandards/phpcsutils/PHPCSUtils/ruleset.xml +0 -4
- package/vendor/phpcsstandards/phpcsutils/README.md +0 -297
- package/vendor/phpcsstandards/phpcsutils/composer.json +0 -92
- package/vendor/phpcsstandards/phpcsutils/phpcsutils-autoload.php +0 -68
- package/vendor/wp-coding-standards/wpcs/CHANGELOG.md +0 -1654
- package/vendor/wp-coding-standards/wpcs/LICENSE +0 -21
- package/vendor/wp-coding-standards/wpcs/README.md +0 -261
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractArrayAssignmentRestrictionsSniff.php +0 -261
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractClassRestrictionsSniff.php +0 -257
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractFunctionParameterSniff.php +0 -111
- package/vendor/wp-coding-standards/wpcs/WordPress/AbstractFunctionRestrictionsSniff.php +0 -358
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/ArrayIndentationStandard.xml +0 -116
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/ArrayKeySpacingRestrictionsStandard.xml +0 -31
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Arrays/MultipleStatementAlignmentStandard.xml +0 -50
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/CodeAnalysis/EscapedNotTranslatedStandard.xml +0 -24
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/CurrentTimeTimestampStandard.xml +0 -35
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/DateTime/RestrictedFunctionsStandard.xml +0 -54
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/PrefixAllGlobalsStandard.xml +0 -119
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidHookNameStandard.xml +0 -35
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/NamingConventions/ValidPostTypeSlugStandard.xml +0 -121
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/IniSetStandard.xml +0 -40
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/StrictInArrayStandard.xml +0 -53
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/PHP/YodaConditionsStandard.xml +0 -27
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/Security/SafeRedirectStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CapabilitiesStandard.xml +0 -69
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CapitalPDangitStandard.xml +0 -43
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/ClassNameCaseStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/CronIntervalStandard.xml +0 -45
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedClassesStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedFunctionsStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedParameterValuesStandard.xml +0 -23
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/DeprecatedParametersStandard.xml +0 -40
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/EnqueuedResourceParametersStandard.xml +0 -92
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/EnqueuedResourcesStandard.xml +0 -57
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WP/PostsPerPageStandard.xml +0 -73
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/CastStructureSpacingStandard.xml +0 -27
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ControlStructureSpacingStandard.xml +0 -150
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/ObjectOperatorSpacingStandard.xml +0 -19
- package/vendor/wp-coding-standards/wpcs/WordPress/Docs/WhiteSpace/OperatorSpacingStandard.xml +0 -61
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ArrayWalkingFunctionsHelper.php +0 -108
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ConstantsHelper.php +0 -135
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ContextHelper.php +0 -394
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/DeprecationHelper.php +0 -84
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/EscapingFunctionsTrait.php +0 -256
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/FormattingFunctionsHelper.php +0 -60
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/IsUnitTestTrait.php +0 -238
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ListHelper.php +0 -101
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/MinimumWPVersionTrait.php +0 -159
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/PrintingFunctionsTrait.php +0 -122
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/RulesetPropertyHelper.php +0 -73
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/SanitizationHelperTrait.php +0 -418
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/SnakeCaseHelper.php +0 -60
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/UnslashingFunctionsHelper.php +0 -59
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/ValidationHelper.php +0 -349
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/VariableHelper.php +0 -262
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPDBTrait.php +0 -115
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPGlobalVariablesHelper.php +0 -312
- package/vendor/wp-coding-standards/wpcs/WordPress/Helpers/WPHookHelper.php +0 -113
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniff.php +0 -72
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayDeclarationSpacingSniff.php +0 -252
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayIndentationSniff.php +0 -550
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/ArrayKeySpacingRestrictionsSniff.php +0 -174
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Arrays/MultipleStatementAlignmentSniff.php +0 -583
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/CodeAnalysis/AssignmentInTernaryConditionSniff.php +0 -173
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/CodeAnalysis/EscapedNotTranslatedSniff.php +0 -89
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/DirectDatabaseQuerySniff.php +0 -301
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/PreparedSQLPlaceholdersSniff.php +0 -761
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/PreparedSQLSniff.php +0 -242
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/RestrictedClassesSniff.php +0 -57
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/RestrictedFunctionsSniff.php +0 -63
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DB/SlowDBQuerySniff.php +0 -58
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DateTime/CurrentTimeTimestampSniff.php +0 -168
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/DateTime/RestrictedFunctionsSniff.php +0 -59
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Files/FileNameSniff.php +0 -313
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/PrefixAllGlobalsSniff.php +0 -1297
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidFunctionNameSniff.php +0 -188
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidHookNameSniff.php +0 -277
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidPostTypeSlugSniff.php +0 -230
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/NamingConventions/ValidVariableNameSniff.php +0 -289
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DevelopmentFunctionsSniff.php +0 -63
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DiscouragedPHPFunctionsSniff.php +0 -100
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/DontExtractSniff.php +0 -52
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/IniSetSniff.php +0 -193
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/NoSilencedErrorsSniff.php +0 -245
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/POSIXFunctionsSniff.php +0 -73
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/PregQuoteDelimiterSniff.php +0 -70
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/RestrictedPHPFunctionsSniff.php +0 -45
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/StrictInArraySniff.php +0 -122
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/TypeCastsSniff.php +0 -90
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/PHP/YodaConditionsSniff.php +0 -124
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/EscapeOutputSniff.php +0 -903
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/NonceVerificationSniff.php +0 -422
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/PluginMenuSlugSniff.php +0 -126
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/SafeRedirectSniff.php +0 -45
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Security/ValidatedSanitizedInputSniff.php +0 -244
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php +0 -862
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/AlternativeFunctionsSniff.php +0 -371
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CapabilitiesSniff.php +0 -478
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CapitalPDangitSniff.php +0 -315
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/ClassNameCaseSniff.php +0 -897
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/CronIntervalSniff.php +0 -321
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedClassesSniff.php +0 -152
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedFunctionsSniff.php +0 -1708
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedParameterValuesSniff.php +0 -291
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DeprecatedParametersSniff.php +0 -509
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DiscouragedConstantsSniff.php +0 -160
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/DiscouragedFunctionsSniff.php +0 -54
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/EnqueuedResourceParametersSniff.php +0 -241
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/EnqueuedResourcesSniff.php +0 -108
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/GlobalVariablesOverrideSniff.php +0 -436
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/I18nSniff.php +0 -977
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/PostsPerPageSniff.php +0 -102
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/CastStructureSpacingSniff.php +0 -59
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php +0 -486
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/ObjectOperatorSpacingSniff.php +0 -63
- package/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WhiteSpace/OperatorSpacingSniff.php +0 -60
- package/vendor/wp-coding-standards/wpcs/WordPress/ruleset.xml +0 -13
- package/vendor/wp-coding-standards/wpcs/WordPress-Core/ruleset.xml +0 -948
- package/vendor/wp-coding-standards/wpcs/WordPress-Docs/ruleset.xml +0 -109
- package/vendor/wp-coding-standards/wpcs/WordPress-Extra/ruleset.xml +0 -199
- package/vendor/wp-coding-standards/wpcs/composer.json +0 -88
- package/vendor/wp-coding-standards/wpcs/phpcs.xml.dist.sample +0 -153
|
@@ -1,897 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
/**
|
|
3
|
-
* WordPress Coding Standard.
|
|
4
|
-
*
|
|
5
|
-
* @package WPCS\WordPressCodingStandards
|
|
6
|
-
* @link https://github.com/WordPress/WordPress-Coding-Standards
|
|
7
|
-
* @license https://opensource.org/licenses/MIT MIT
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
namespace WordPressCS\WordPress\Sniffs\WP;
|
|
11
|
-
|
|
12
|
-
use WordPressCS\WordPress\AbstractClassRestrictionsSniff;
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Verify whether references to WP native classes use the proper casing for the class name.
|
|
16
|
-
*
|
|
17
|
-
* @since 3.0.0
|
|
18
|
-
*/
|
|
19
|
-
final class ClassNameCaseSniff extends AbstractClassRestrictionsSniff {
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* List of all WP native classes.
|
|
23
|
-
*
|
|
24
|
-
* List is sorted alphabetically and based on a draft sniff to autogenerate this list.
|
|
25
|
-
*
|
|
26
|
-
* Note: this list will be enhanced in the class constructor.
|
|
27
|
-
*
|
|
28
|
-
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
|
|
29
|
-
*
|
|
30
|
-
* @since 3.0.0
|
|
31
|
-
*
|
|
32
|
-
* @var string[] The class names in their "proper" case.
|
|
33
|
-
* The constructor will add the lowercased class name as a key to each entry.
|
|
34
|
-
*/
|
|
35
|
-
private $wp_classes = array(
|
|
36
|
-
'_WP_Dependency',
|
|
37
|
-
'_WP_Editors',
|
|
38
|
-
'_WP_List_Table_Compat',
|
|
39
|
-
'AtomEntry',
|
|
40
|
-
'AtomFeed',
|
|
41
|
-
'AtomParser',
|
|
42
|
-
'Automatic_Upgrader_Skin',
|
|
43
|
-
'Bulk_Plugin_Upgrader_Skin',
|
|
44
|
-
'Bulk_Theme_Upgrader_Skin',
|
|
45
|
-
'Bulk_Upgrader_Skin',
|
|
46
|
-
'Core_Upgrader',
|
|
47
|
-
'Custom_Background',
|
|
48
|
-
'Custom_Image_Header',
|
|
49
|
-
'Featured_Content',
|
|
50
|
-
'File_Upload_Upgrader',
|
|
51
|
-
'ftp',
|
|
52
|
-
'ftp_base',
|
|
53
|
-
'ftp_pure',
|
|
54
|
-
'ftp_sockets',
|
|
55
|
-
'Gettext_Translations',
|
|
56
|
-
'IXR_Base64',
|
|
57
|
-
'IXR_Client',
|
|
58
|
-
'IXR_ClientMulticall',
|
|
59
|
-
'IXR_Date',
|
|
60
|
-
'IXR_Error',
|
|
61
|
-
'IXR_IntrospectionServer',
|
|
62
|
-
'IXR_Message',
|
|
63
|
-
'IXR_Request',
|
|
64
|
-
'IXR_Server',
|
|
65
|
-
'IXR_Value',
|
|
66
|
-
'Language_Pack_Upgrader',
|
|
67
|
-
'Language_Pack_Upgrader_Skin',
|
|
68
|
-
'MO',
|
|
69
|
-
'MagpieRSS',
|
|
70
|
-
'NOOP_Translations',
|
|
71
|
-
'PO',
|
|
72
|
-
'POMO_CachedFileReader',
|
|
73
|
-
'POMO_CachedIntFileReader',
|
|
74
|
-
'POMO_FileReader',
|
|
75
|
-
'POMO_Reader',
|
|
76
|
-
'POMO_StringReader',
|
|
77
|
-
'POP3',
|
|
78
|
-
'PasswordHash',
|
|
79
|
-
'PclZip',
|
|
80
|
-
'Plugin_Installer_Skin',
|
|
81
|
-
'Plugin_Upgrader',
|
|
82
|
-
'Plugin_Upgrader_Skin',
|
|
83
|
-
'Plural_Forms',
|
|
84
|
-
'RSSCache',
|
|
85
|
-
'Services_JSON',
|
|
86
|
-
'Services_JSON_Error',
|
|
87
|
-
'Snoopy',
|
|
88
|
-
'Text_Diff',
|
|
89
|
-
'Text_Diff_Engine_native',
|
|
90
|
-
'Text_Diff_Engine_shell',
|
|
91
|
-
'Text_Diff_Engine_string',
|
|
92
|
-
'Text_Diff_Engine_xdiff',
|
|
93
|
-
'Text_Diff_Op',
|
|
94
|
-
'Text_Diff_Op_add',
|
|
95
|
-
'Text_Diff_Op_change',
|
|
96
|
-
'Text_Diff_Op_copy',
|
|
97
|
-
'Text_Diff_Op_delete',
|
|
98
|
-
'Text_Diff_Renderer',
|
|
99
|
-
'Text_Diff_Renderer_inline',
|
|
100
|
-
'Text_MappedDiff',
|
|
101
|
-
'Theme_Installer_Skin',
|
|
102
|
-
'Theme_Upgrader',
|
|
103
|
-
'Theme_Upgrader_Skin',
|
|
104
|
-
'Translation_Entry',
|
|
105
|
-
'Translations',
|
|
106
|
-
'Walker',
|
|
107
|
-
'Walker_Category',
|
|
108
|
-
'Walker_CategoryDropdown',
|
|
109
|
-
'Walker_Category_Checklist',
|
|
110
|
-
'Walker_Comment',
|
|
111
|
-
'Walker_Nav_Menu',
|
|
112
|
-
'Walker_Nav_Menu_Checklist',
|
|
113
|
-
'Walker_Nav_Menu_Edit',
|
|
114
|
-
'Walker_Page',
|
|
115
|
-
'Walker_PageDropdown',
|
|
116
|
-
'WP',
|
|
117
|
-
'WP_Admin_Bar',
|
|
118
|
-
'WP_Ajax_Response',
|
|
119
|
-
'WP_Ajax_Upgrader_Skin',
|
|
120
|
-
'WP_Application_Passwords',
|
|
121
|
-
'WP_Application_Passwords_List_Table',
|
|
122
|
-
'WP_Automatic_Updater',
|
|
123
|
-
'WP_Block',
|
|
124
|
-
'WP_Block_Bindings_Registry',
|
|
125
|
-
'WP_Block_Bindings_Source',
|
|
126
|
-
'WP_Block_Editor_Context',
|
|
127
|
-
'WP_Block_List',
|
|
128
|
-
'WP_Block_Parser',
|
|
129
|
-
'WP_Block_Parser_Block',
|
|
130
|
-
'WP_Block_Parser_Frame',
|
|
131
|
-
'WP_Block_Pattern_Categories_Registry',
|
|
132
|
-
'WP_Block_Patterns_Registry',
|
|
133
|
-
'WP_Block_Styles_Registry',
|
|
134
|
-
'WP_Block_Supports',
|
|
135
|
-
'WP_Block_Template',
|
|
136
|
-
'WP_Block_Type',
|
|
137
|
-
'WP_Block_Type_Registry',
|
|
138
|
-
'WP_Classic_To_Block_Menu_Converter',
|
|
139
|
-
'WP_Comment',
|
|
140
|
-
'WP_Comment_Query',
|
|
141
|
-
'WP_Comments_List_Table',
|
|
142
|
-
'WP_Community_Events',
|
|
143
|
-
'WP_Customize_Background_Image_Control',
|
|
144
|
-
'WP_Customize_Background_Image_Setting',
|
|
145
|
-
'WP_Customize_Background_Position_Control',
|
|
146
|
-
'WP_Customize_Code_Editor_Control',
|
|
147
|
-
'WP_Customize_Color_Control',
|
|
148
|
-
'WP_Customize_Control',
|
|
149
|
-
'WP_Customize_Cropped_Image_Control',
|
|
150
|
-
'WP_Customize_Custom_CSS_Setting',
|
|
151
|
-
'WP_Customize_Date_Time_Control',
|
|
152
|
-
'WP_Customize_Filter_Setting',
|
|
153
|
-
'WP_Customize_Header_Image_Control',
|
|
154
|
-
'WP_Customize_Header_Image_Setting',
|
|
155
|
-
'WP_Customize_Image_Control',
|
|
156
|
-
'WP_Customize_Manager',
|
|
157
|
-
'WP_Customize_Media_Control',
|
|
158
|
-
'WP_Customize_Nav_Menu_Auto_Add_Control',
|
|
159
|
-
'WP_Customize_Nav_Menu_Control',
|
|
160
|
-
'WP_Customize_Nav_Menu_Item_Control',
|
|
161
|
-
'WP_Customize_Nav_Menu_Item_Setting',
|
|
162
|
-
'WP_Customize_Nav_Menu_Location_Control',
|
|
163
|
-
'WP_Customize_Nav_Menu_Locations_Control',
|
|
164
|
-
'WP_Customize_Nav_Menu_Name_Control',
|
|
165
|
-
'WP_Customize_Nav_Menu_Section',
|
|
166
|
-
'WP_Customize_Nav_Menu_Setting',
|
|
167
|
-
'WP_Customize_Nav_Menus',
|
|
168
|
-
'WP_Customize_Nav_Menus_Panel',
|
|
169
|
-
'WP_Customize_New_Menu_Control',
|
|
170
|
-
'WP_Customize_New_Menu_Section',
|
|
171
|
-
'WP_Customize_Panel',
|
|
172
|
-
'WP_Customize_Partial',
|
|
173
|
-
'WP_Customize_Section',
|
|
174
|
-
'WP_Customize_Selective_Refresh',
|
|
175
|
-
'WP_Customize_Setting',
|
|
176
|
-
'WP_Customize_Sidebar_Section',
|
|
177
|
-
'WP_Customize_Site_Icon_Control',
|
|
178
|
-
'WP_Customize_Theme_Control',
|
|
179
|
-
'WP_Customize_Themes_Panel',
|
|
180
|
-
'WP_Customize_Themes_Section',
|
|
181
|
-
'WP_Customize_Upload_Control',
|
|
182
|
-
'WP_Customize_Widgets',
|
|
183
|
-
'WP_Date_Query',
|
|
184
|
-
'WP_Debug_Data',
|
|
185
|
-
'WP_Dependencies',
|
|
186
|
-
'WP_Duotone',
|
|
187
|
-
'WP_Embed',
|
|
188
|
-
'WP_Error',
|
|
189
|
-
'WP_Fatal_Error_Handler',
|
|
190
|
-
'WP_Feed_Cache',
|
|
191
|
-
'WP_Feed_Cache_Transient',
|
|
192
|
-
'WP_Filesystem_Base',
|
|
193
|
-
'WP_Filesystem_Direct',
|
|
194
|
-
'WP_Filesystem_FTPext',
|
|
195
|
-
'WP_Filesystem_SSH2',
|
|
196
|
-
'WP_Filesystem_ftpsockets',
|
|
197
|
-
'WP_Font_Collection',
|
|
198
|
-
'WP_Font_Face',
|
|
199
|
-
'WP_Font_Face_Resolver',
|
|
200
|
-
'WP_Font_Library',
|
|
201
|
-
'WP_Font_Utils',
|
|
202
|
-
'WP_HTML_Active_Formatting_Elements',
|
|
203
|
-
'WP_HTML_Attribute_Token',
|
|
204
|
-
'WP_HTML_Open_Elements',
|
|
205
|
-
'WP_HTML_Processor',
|
|
206
|
-
'WP_HTML_Processor_State',
|
|
207
|
-
'WP_HTML_Span',
|
|
208
|
-
'WP_HTML_Tag_Processor',
|
|
209
|
-
'WP_HTML_Text_Replacement',
|
|
210
|
-
'WP_HTML_Token',
|
|
211
|
-
'WP_HTML_Unsupported_Exception',
|
|
212
|
-
'WP_HTTP_Fsockopen',
|
|
213
|
-
'WP_HTTP_IXR_Client',
|
|
214
|
-
'WP_HTTP_Proxy',
|
|
215
|
-
'WP_HTTP_Requests_Hooks',
|
|
216
|
-
'WP_HTTP_Requests_Response',
|
|
217
|
-
'WP_HTTP_Response',
|
|
218
|
-
'WP_Hook',
|
|
219
|
-
'WP_Http',
|
|
220
|
-
'WP_Http_Cookie',
|
|
221
|
-
'WP_Http_Curl',
|
|
222
|
-
'WP_Http_Encoding',
|
|
223
|
-
'WP_Http_Streams',
|
|
224
|
-
'WP_Image_Editor',
|
|
225
|
-
'WP_Image_Editor_GD',
|
|
226
|
-
'WP_Image_Editor_Imagick',
|
|
227
|
-
'WP_Importer',
|
|
228
|
-
'WP_Interactivity_API',
|
|
229
|
-
'WP_Interactivity_API_Directives_Processor',
|
|
230
|
-
'WP_Internal_Pointers',
|
|
231
|
-
'WP_Links_List_Table',
|
|
232
|
-
'WP_List_Table',
|
|
233
|
-
'WP_List_Util',
|
|
234
|
-
'WP_Locale',
|
|
235
|
-
'WP_Locale_Switcher',
|
|
236
|
-
'WP_MS_Sites_List_Table',
|
|
237
|
-
'WP_MS_Themes_List_Table',
|
|
238
|
-
'WP_MS_Users_List_Table',
|
|
239
|
-
'WP_MatchesMapRegex',
|
|
240
|
-
'WP_Media_List_Table',
|
|
241
|
-
'WP_Meta_Query',
|
|
242
|
-
'WP_Metadata_Lazyloader',
|
|
243
|
-
'WP_Nav_Menu_Widget',
|
|
244
|
-
'WP_Navigation_Block_Renderer',
|
|
245
|
-
'WP_Navigation_Fallback',
|
|
246
|
-
'WP_Network',
|
|
247
|
-
'WP_Network_Query',
|
|
248
|
-
'WP_Object_Cache',
|
|
249
|
-
'WP_Paused_Extensions_Storage',
|
|
250
|
-
'WP_Plugin_Dependencies',
|
|
251
|
-
'WP_Plugin_Install_List_Table',
|
|
252
|
-
'WP_Plugins_List_Table',
|
|
253
|
-
'WP_Post',
|
|
254
|
-
'WP_Post_Comments_List_Table',
|
|
255
|
-
'WP_Post_Type',
|
|
256
|
-
'WP_Posts_List_Table',
|
|
257
|
-
'WP_Privacy_Data_Export_Requests_List_Table',
|
|
258
|
-
'WP_Privacy_Data_Export_Requests_Table',
|
|
259
|
-
'WP_Privacy_Data_Removal_Requests_List_Table',
|
|
260
|
-
'WP_Privacy_Data_Removal_Requests_Table',
|
|
261
|
-
'WP_Privacy_Policy_Content',
|
|
262
|
-
'WP_Privacy_Requests_Table',
|
|
263
|
-
'WP_Query',
|
|
264
|
-
'WP_REST_Application_Passwords_Controller',
|
|
265
|
-
'WP_REST_Attachments_Controller',
|
|
266
|
-
'WP_REST_Autosaves_Controller',
|
|
267
|
-
'WP_REST_Block_Directory_Controller',
|
|
268
|
-
'WP_REST_Block_Pattern_Categories_Controller',
|
|
269
|
-
'WP_REST_Block_Patterns_Controller',
|
|
270
|
-
'WP_REST_Block_Renderer_Controller',
|
|
271
|
-
'WP_REST_Block_Types_Controller',
|
|
272
|
-
'WP_REST_Blocks_Controller',
|
|
273
|
-
'WP_REST_Comment_Meta_Fields',
|
|
274
|
-
'WP_REST_Comments_Controller',
|
|
275
|
-
'WP_REST_Controller',
|
|
276
|
-
'WP_REST_Edit_Site_Export_Controller',
|
|
277
|
-
'WP_REST_Font_Collections_Controller',
|
|
278
|
-
'WP_REST_Font_Faces_Controller',
|
|
279
|
-
'WP_REST_Font_Families_Controller',
|
|
280
|
-
'WP_REST_Global_Styles_Controller',
|
|
281
|
-
'WP_REST_Global_Styles_Revisions_Controller',
|
|
282
|
-
'WP_REST_Menu_Items_Controller',
|
|
283
|
-
'WP_REST_Menu_Locations_Controller',
|
|
284
|
-
'WP_REST_Menus_Controller',
|
|
285
|
-
'WP_REST_Meta_Fields',
|
|
286
|
-
'WP_REST_Navigation_Fallback_Controller',
|
|
287
|
-
'WP_REST_Pattern_Directory_Controller',
|
|
288
|
-
'WP_REST_Plugins_Controller',
|
|
289
|
-
'WP_REST_Post_Format_Search_Handler',
|
|
290
|
-
'WP_REST_Post_Meta_Fields',
|
|
291
|
-
'WP_REST_Post_Search_Handler',
|
|
292
|
-
'WP_REST_Post_Statuses_Controller',
|
|
293
|
-
'WP_REST_Post_Types_Controller',
|
|
294
|
-
'WP_REST_Posts_Controller',
|
|
295
|
-
'WP_REST_Request',
|
|
296
|
-
'WP_REST_Response',
|
|
297
|
-
'WP_REST_Revisions_Controller',
|
|
298
|
-
'WP_REST_Search_Controller',
|
|
299
|
-
'WP_REST_Search_Handler',
|
|
300
|
-
'WP_REST_Server',
|
|
301
|
-
'WP_REST_Settings_Controller',
|
|
302
|
-
'WP_REST_Sidebars_Controller',
|
|
303
|
-
'WP_REST_Site_Health_Controller',
|
|
304
|
-
'WP_REST_Taxonomies_Controller',
|
|
305
|
-
'WP_REST_Template_Autosaves_Controller',
|
|
306
|
-
'WP_REST_Template_Revisions_Controller',
|
|
307
|
-
'WP_REST_Templates_Controller',
|
|
308
|
-
'WP_REST_Term_Meta_Fields',
|
|
309
|
-
'WP_REST_Term_Search_Handler',
|
|
310
|
-
'WP_REST_Terms_Controller',
|
|
311
|
-
'WP_REST_Themes_Controller',
|
|
312
|
-
'WP_REST_URL_Details_Controller',
|
|
313
|
-
'WP_REST_User_Meta_Fields',
|
|
314
|
-
'WP_REST_Users_Controller',
|
|
315
|
-
'WP_REST_Widget_Types_Controller',
|
|
316
|
-
'WP_REST_Widgets_Controller',
|
|
317
|
-
'WP_Recovery_Mode',
|
|
318
|
-
'WP_Recovery_Mode_Cookie_Service',
|
|
319
|
-
'WP_Recovery_Mode_Email_Service',
|
|
320
|
-
'WP_Recovery_Mode_Key_Service',
|
|
321
|
-
'WP_Recovery_Mode_Link_Service',
|
|
322
|
-
'WP_Rewrite',
|
|
323
|
-
'WP_Role',
|
|
324
|
-
'WP_Roles',
|
|
325
|
-
'WP_Screen',
|
|
326
|
-
'WP_Script_Modules',
|
|
327
|
-
'WP_Scripts',
|
|
328
|
-
'WP_Session_Tokens',
|
|
329
|
-
'WP_Sidebar_Block_Editor_Control',
|
|
330
|
-
'WP_SimplePie_File',
|
|
331
|
-
'WP_SimplePie_Sanitize_KSES',
|
|
332
|
-
'WP_Site',
|
|
333
|
-
'WP_Site_Health',
|
|
334
|
-
'WP_Site_Health_Auto_Updates',
|
|
335
|
-
'WP_Site_Icon',
|
|
336
|
-
'WP_Site_Query',
|
|
337
|
-
'WP_Sitemaps',
|
|
338
|
-
'WP_Sitemaps_Index',
|
|
339
|
-
'WP_Sitemaps_Posts',
|
|
340
|
-
'WP_Sitemaps_Provider',
|
|
341
|
-
'WP_Sitemaps_Registry',
|
|
342
|
-
'WP_Sitemaps_Renderer',
|
|
343
|
-
'WP_Sitemaps_Stylesheet',
|
|
344
|
-
'WP_Sitemaps_Taxonomies',
|
|
345
|
-
'WP_Sitemaps_Users',
|
|
346
|
-
'WP_Style_Engine',
|
|
347
|
-
'WP_Style_Engine_CSS_Declarations',
|
|
348
|
-
'WP_Style_Engine_CSS_Rule',
|
|
349
|
-
'WP_Style_Engine_CSS_Rules_Store',
|
|
350
|
-
'WP_Style_Engine_Processor',
|
|
351
|
-
'WP_Styles',
|
|
352
|
-
'WP_Tax_Query',
|
|
353
|
-
'WP_Taxonomy',
|
|
354
|
-
'WP_Term',
|
|
355
|
-
'WP_Term_Query',
|
|
356
|
-
'WP_Terms_List_Table',
|
|
357
|
-
'WP_Text_Diff_Renderer_Table',
|
|
358
|
-
'WP_Text_Diff_Renderer_inline',
|
|
359
|
-
'WP_Textdomain_Registry',
|
|
360
|
-
'WP_Theme',
|
|
361
|
-
'WP_Theme_Install_List_Table',
|
|
362
|
-
'WP_Theme_JSON',
|
|
363
|
-
'WP_Theme_JSON_Data',
|
|
364
|
-
'WP_Theme_JSON_Resolver',
|
|
365
|
-
'WP_Theme_JSON_Schema',
|
|
366
|
-
'WP_Themes_List_Table',
|
|
367
|
-
'WP_Translation_Controller',
|
|
368
|
-
'WP_Translation_File',
|
|
369
|
-
'WP_Translation_File_MO',
|
|
370
|
-
'WP_Translation_File_PHP',
|
|
371
|
-
'WP_Translations',
|
|
372
|
-
'WP_Upgrader',
|
|
373
|
-
'WP_Upgrader_Skin',
|
|
374
|
-
'WP_User',
|
|
375
|
-
'WP_User_Meta_Session_Tokens',
|
|
376
|
-
'WP_User_Query',
|
|
377
|
-
'WP_User_Request',
|
|
378
|
-
'WP_User_Search',
|
|
379
|
-
'WP_Users_List_Table',
|
|
380
|
-
'WP_Widget',
|
|
381
|
-
'WP_Widget_Archives',
|
|
382
|
-
'WP_Widget_Area_Customize_Control',
|
|
383
|
-
'WP_Widget_Block',
|
|
384
|
-
'WP_Widget_Calendar',
|
|
385
|
-
'WP_Widget_Categories',
|
|
386
|
-
'WP_Widget_Custom_HTML',
|
|
387
|
-
'WP_Widget_Factory',
|
|
388
|
-
'WP_Widget_Form_Customize_Control',
|
|
389
|
-
'WP_Widget_Links',
|
|
390
|
-
'WP_Widget_Media',
|
|
391
|
-
'WP_Widget_Media_Audio',
|
|
392
|
-
'WP_Widget_Media_Gallery',
|
|
393
|
-
'WP_Widget_Media_Image',
|
|
394
|
-
'WP_Widget_Media_Video',
|
|
395
|
-
'WP_Widget_Meta',
|
|
396
|
-
'WP_Widget_Pages',
|
|
397
|
-
'WP_Widget_RSS',
|
|
398
|
-
'WP_Widget_Recent_Comments',
|
|
399
|
-
'WP_Widget_Recent_Posts',
|
|
400
|
-
'WP_Widget_Search',
|
|
401
|
-
'WP_Widget_Tag_Cloud',
|
|
402
|
-
'WP_Widget_Text',
|
|
403
|
-
'WP_oEmbed',
|
|
404
|
-
'WP_oEmbed_Controller',
|
|
405
|
-
'wp_atom_server',
|
|
406
|
-
'wp_xmlrpc_server',
|
|
407
|
-
'wpdb',
|
|
408
|
-
);
|
|
409
|
-
|
|
410
|
-
/**
|
|
411
|
-
* List of all WP native classes as shipped with themes included in WP Core.
|
|
412
|
-
*
|
|
413
|
-
* Note: this list will be enhanced in the class constructor.
|
|
414
|
-
*
|
|
415
|
-
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
|
|
416
|
-
*
|
|
417
|
-
* @since 3.0.0
|
|
418
|
-
*
|
|
419
|
-
* @var string[] The class names in their "proper" case.
|
|
420
|
-
* The constructor will add the lowercased class name as a key to each entry.
|
|
421
|
-
*/
|
|
422
|
-
private $wp_themes_classes = array(
|
|
423
|
-
'TwentyNineteen_SVG_Icons',
|
|
424
|
-
'TwentyNineteen_Walker_Comment',
|
|
425
|
-
'TwentyTwenty_Customize',
|
|
426
|
-
'TwentyTwenty_Non_Latin_Languages',
|
|
427
|
-
'TwentyTwenty_SVG_Icons',
|
|
428
|
-
'TwentyTwenty_Script_Loader',
|
|
429
|
-
'TwentyTwenty_Separator_Control',
|
|
430
|
-
'TwentyTwenty_Walker_Comment',
|
|
431
|
-
'TwentyTwenty_Walker_Page',
|
|
432
|
-
'Twenty_Eleven_Ephemera_Widget',
|
|
433
|
-
'Twenty_Fourteen_Ephemera_Widget',
|
|
434
|
-
'Twenty_Twenty_One_Custom_Colors',
|
|
435
|
-
'Twenty_Twenty_One_Customize',
|
|
436
|
-
'Twenty_Twenty_One_Customize_Color_Control',
|
|
437
|
-
'Twenty_Twenty_One_Customize_Notice_Control',
|
|
438
|
-
'Twenty_Twenty_One_Dark_Mode',
|
|
439
|
-
'Twenty_Twenty_One_SVG_Icons',
|
|
440
|
-
);
|
|
441
|
-
|
|
442
|
-
/**
|
|
443
|
-
* List of all AVIF classes included in WP Core.
|
|
444
|
-
*
|
|
445
|
-
* Note: this list will be enhanced in the class constructor.
|
|
446
|
-
*
|
|
447
|
-
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
|
|
448
|
-
*
|
|
449
|
-
* @since 3.1.0
|
|
450
|
-
*
|
|
451
|
-
* @var string[] The class names in their "proper" case.
|
|
452
|
-
* The constructor will add the lowercased class name as a key to each entry.
|
|
453
|
-
*/
|
|
454
|
-
private $avif_classes = array(
|
|
455
|
-
'Avifinfo\\Box',
|
|
456
|
-
'Avifinfo\\Chan_Prop',
|
|
457
|
-
'Avifinfo\\Dim_Prop',
|
|
458
|
-
'Avifinfo\\Features',
|
|
459
|
-
'Avifinfo\\Parser',
|
|
460
|
-
'Avifinfo\\Prop',
|
|
461
|
-
'Avifinfo\\Tile',
|
|
462
|
-
);
|
|
463
|
-
|
|
464
|
-
/**
|
|
465
|
-
* List of all GetID3 classes included in WP Core.
|
|
466
|
-
*
|
|
467
|
-
* Note: this list will be enhanced in the class constructor.
|
|
468
|
-
*
|
|
469
|
-
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
|
|
470
|
-
*
|
|
471
|
-
* @since 3.0.0
|
|
472
|
-
*
|
|
473
|
-
* @var string[] The class names in their "proper" case.
|
|
474
|
-
* The constructor will add the lowercased class name as a key to each entry.
|
|
475
|
-
*/
|
|
476
|
-
private $getid3_classes = array(
|
|
477
|
-
'AMFReader',
|
|
478
|
-
'AMFStream',
|
|
479
|
-
'AVCSequenceParameterSetReader',
|
|
480
|
-
'getID3',
|
|
481
|
-
'getid3_ac3',
|
|
482
|
-
'getid3_apetag',
|
|
483
|
-
'getid3_asf',
|
|
484
|
-
'getid3_dts',
|
|
485
|
-
'getid3_exception',
|
|
486
|
-
'getid3_flac',
|
|
487
|
-
'getid3_flv',
|
|
488
|
-
'getid3_handler',
|
|
489
|
-
'getid3_id3v1',
|
|
490
|
-
'getid3_id3v2',
|
|
491
|
-
'getid3_lib',
|
|
492
|
-
'getid3_lyrics3',
|
|
493
|
-
'getid3_matroska',
|
|
494
|
-
'getid3_mp3',
|
|
495
|
-
'getid3_ogg',
|
|
496
|
-
'getid3_quicktime',
|
|
497
|
-
'getid3_riff',
|
|
498
|
-
);
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* List of all PHPMailer classes included in WP Core.
|
|
502
|
-
*
|
|
503
|
-
* Note: this list will be enhanced in the class constructor.
|
|
504
|
-
*
|
|
505
|
-
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
|
|
506
|
-
*
|
|
507
|
-
* @since 3.0.0
|
|
508
|
-
*
|
|
509
|
-
* @var string[] The class names in their "proper" case.
|
|
510
|
-
* The constructor will add the lowercased class name as a key to each entry.
|
|
511
|
-
*/
|
|
512
|
-
private $phpmailer_classes = array(
|
|
513
|
-
'PHPMailer\\PHPMailer\\Exception',
|
|
514
|
-
'PHPMailer\\PHPMailer\\PHPMailer',
|
|
515
|
-
'PHPMailer\\PHPMailer\\SMTP',
|
|
516
|
-
);
|
|
517
|
-
|
|
518
|
-
/**
|
|
519
|
-
* List of all Requests classes included in WP Core.
|
|
520
|
-
*
|
|
521
|
-
* Note: this list will be enhanced in the class constructor.
|
|
522
|
-
*
|
|
523
|
-
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
|
|
524
|
-
*
|
|
525
|
-
* @since 3.0.0
|
|
526
|
-
*
|
|
527
|
-
* @var string[] The class names in their "proper" case.
|
|
528
|
-
* The constructor will add the lowercased class name as a key to each entry.
|
|
529
|
-
*/
|
|
530
|
-
private $requests_classes = array(
|
|
531
|
-
// Interfaces, Requests v1.
|
|
532
|
-
'Requests_Auth',
|
|
533
|
-
'Requests_Hooker',
|
|
534
|
-
'Requests_Proxy',
|
|
535
|
-
'Requests_Transport',
|
|
536
|
-
|
|
537
|
-
// Interfaces, Requests v2.
|
|
538
|
-
'WpOrg\\Requests\\Auth',
|
|
539
|
-
'WpOrg\\Requests\\Capability',
|
|
540
|
-
'WpOrg\\Requests\\HookManager',
|
|
541
|
-
'WpOrg\\Requests\\Proxy',
|
|
542
|
-
'WpOrg\\Requests\\Transport',
|
|
543
|
-
|
|
544
|
-
// Classes, Requests v1.
|
|
545
|
-
'Requests',
|
|
546
|
-
'Requests_Auth_Basic',
|
|
547
|
-
'Requests_Cookie',
|
|
548
|
-
'Requests_Cookie_Jar',
|
|
549
|
-
'Requests_Exception',
|
|
550
|
-
'Requests_Exception_HTTP',
|
|
551
|
-
'Requests_Exception_Transport',
|
|
552
|
-
'Requests_Exception_Transport_cURL',
|
|
553
|
-
'Requests_Exception_HTTP_304',
|
|
554
|
-
'Requests_Exception_HTTP_305',
|
|
555
|
-
'Requests_Exception_HTTP_306',
|
|
556
|
-
'Requests_Exception_HTTP_400',
|
|
557
|
-
'Requests_Exception_HTTP_401',
|
|
558
|
-
'Requests_Exception_HTTP_402',
|
|
559
|
-
'Requests_Exception_HTTP_403',
|
|
560
|
-
'Requests_Exception_HTTP_404',
|
|
561
|
-
'Requests_Exception_HTTP_405',
|
|
562
|
-
'Requests_Exception_HTTP_406',
|
|
563
|
-
'Requests_Exception_HTTP_407',
|
|
564
|
-
'Requests_Exception_HTTP_408',
|
|
565
|
-
'Requests_Exception_HTTP_409',
|
|
566
|
-
'Requests_Exception_HTTP_410',
|
|
567
|
-
'Requests_Exception_HTTP_411',
|
|
568
|
-
'Requests_Exception_HTTP_412',
|
|
569
|
-
'Requests_Exception_HTTP_413',
|
|
570
|
-
'Requests_Exception_HTTP_414',
|
|
571
|
-
'Requests_Exception_HTTP_415',
|
|
572
|
-
'Requests_Exception_HTTP_416',
|
|
573
|
-
'Requests_Exception_HTTP_417',
|
|
574
|
-
'Requests_Exception_HTTP_418',
|
|
575
|
-
'Requests_Exception_HTTP_428',
|
|
576
|
-
'Requests_Exception_HTTP_429',
|
|
577
|
-
'Requests_Exception_HTTP_431',
|
|
578
|
-
'Requests_Exception_HTTP_500',
|
|
579
|
-
'Requests_Exception_HTTP_501',
|
|
580
|
-
'Requests_Exception_HTTP_502',
|
|
581
|
-
'Requests_Exception_HTTP_503',
|
|
582
|
-
'Requests_Exception_HTTP_504',
|
|
583
|
-
'Requests_Exception_HTTP_505',
|
|
584
|
-
'Requests_Exception_HTTP_511',
|
|
585
|
-
'Requests_Exception_HTTP_Unknown',
|
|
586
|
-
'Requests_Hooks',
|
|
587
|
-
'Requests_IDNAEncoder',
|
|
588
|
-
'Requests_IPv6',
|
|
589
|
-
'Requests_IRI',
|
|
590
|
-
'Requests_Proxy_HTTP',
|
|
591
|
-
'Requests_Response',
|
|
592
|
-
'Requests_Response_Headers',
|
|
593
|
-
'Requests_Session',
|
|
594
|
-
'Requests_SSL',
|
|
595
|
-
'Requests_Transport_cURL',
|
|
596
|
-
'Requests_Transport_fsockopen',
|
|
597
|
-
'Requests_Utility_CaseInsensitiveDictionary',
|
|
598
|
-
'Requests_Utility_FilteredIterator',
|
|
599
|
-
|
|
600
|
-
// Classes, Requests v2.
|
|
601
|
-
'WpOrg\Requests\Auth\Basic',
|
|
602
|
-
'WpOrg\Requests\Autoload',
|
|
603
|
-
'WpOrg\Requests\Cookie',
|
|
604
|
-
'WpOrg\Requests\Cookie\Jar',
|
|
605
|
-
'WpOrg\Requests\Exception',
|
|
606
|
-
'WpOrg\Requests\Exception\ArgumentCount',
|
|
607
|
-
'WpOrg\Requests\Exception\Http',
|
|
608
|
-
'WpOrg\Requests\Exception\Http\Status304',
|
|
609
|
-
'WpOrg\Requests\Exception\Http\Status305',
|
|
610
|
-
'WpOrg\Requests\Exception\Http\Status306',
|
|
611
|
-
'WpOrg\Requests\Exception\Http\Status400',
|
|
612
|
-
'WpOrg\Requests\Exception\Http\Status401',
|
|
613
|
-
'WpOrg\Requests\Exception\Http\Status402',
|
|
614
|
-
'WpOrg\Requests\Exception\Http\Status403',
|
|
615
|
-
'WpOrg\Requests\Exception\Http\Status404',
|
|
616
|
-
'WpOrg\Requests\Exception\Http\Status405',
|
|
617
|
-
'WpOrg\Requests\Exception\Http\Status406',
|
|
618
|
-
'WpOrg\Requests\Exception\Http\Status407',
|
|
619
|
-
'WpOrg\Requests\Exception\Http\Status408',
|
|
620
|
-
'WpOrg\Requests\Exception\Http\Status409',
|
|
621
|
-
'WpOrg\Requests\Exception\Http\Status410',
|
|
622
|
-
'WpOrg\Requests\Exception\Http\Status411',
|
|
623
|
-
'WpOrg\Requests\Exception\Http\Status412',
|
|
624
|
-
'WpOrg\Requests\Exception\Http\Status413',
|
|
625
|
-
'WpOrg\Requests\Exception\Http\Status414',
|
|
626
|
-
'WpOrg\Requests\Exception\Http\Status415',
|
|
627
|
-
'WpOrg\Requests\Exception\Http\Status416',
|
|
628
|
-
'WpOrg\Requests\Exception\Http\Status417',
|
|
629
|
-
'WpOrg\Requests\Exception\Http\Status418',
|
|
630
|
-
'WpOrg\Requests\Exception\Http\Status428',
|
|
631
|
-
'WpOrg\Requests\Exception\Http\Status429',
|
|
632
|
-
'WpOrg\Requests\Exception\Http\Status431',
|
|
633
|
-
'WpOrg\Requests\Exception\Http\Status500',
|
|
634
|
-
'WpOrg\Requests\Exception\Http\Status501',
|
|
635
|
-
'WpOrg\Requests\Exception\Http\Status502',
|
|
636
|
-
'WpOrg\Requests\Exception\Http\Status503',
|
|
637
|
-
'WpOrg\Requests\Exception\Http\Status504',
|
|
638
|
-
'WpOrg\Requests\Exception\Http\Status505',
|
|
639
|
-
'WpOrg\Requests\Exception\Http\Status511',
|
|
640
|
-
'WpOrg\Requests\Exception\Http\StatusUnknown',
|
|
641
|
-
'WpOrg\Requests\Exception\InvalidArgument',
|
|
642
|
-
'WpOrg\Requests\Exception\Transport',
|
|
643
|
-
'WpOrg\Requests\Exception\Transport\Curl',
|
|
644
|
-
'WpOrg\Requests\Hooks',
|
|
645
|
-
'WpOrg\Requests\IdnaEncoder',
|
|
646
|
-
'WpOrg\Requests\Ipv6',
|
|
647
|
-
'WpOrg\Requests\Iri',
|
|
648
|
-
'WpOrg\Requests\Port',
|
|
649
|
-
'WpOrg\Requests\Proxy\Http',
|
|
650
|
-
'WpOrg\Requests\Requests',
|
|
651
|
-
'WpOrg\Requests\Response',
|
|
652
|
-
'WpOrg\Requests\Response\Headers',
|
|
653
|
-
'WpOrg\Requests\Session',
|
|
654
|
-
'WpOrg\Requests\Ssl',
|
|
655
|
-
'WpOrg\Requests\Transport\Curl',
|
|
656
|
-
'WpOrg\Requests\Transport\Fsockopen',
|
|
657
|
-
'WpOrg\Requests\Utility\CaseInsensitiveDictionary',
|
|
658
|
-
'WpOrg\Requests\Utility\FilteredIterator',
|
|
659
|
-
'WpOrg\Requests\Utility\InputValidator',
|
|
660
|
-
);
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* List of all SimplePie classes included in WP Core.
|
|
664
|
-
*
|
|
665
|
-
* Note: this list will be enhanced in the class constructor.
|
|
666
|
-
*
|
|
667
|
-
* {@internal To be updated after every major release. Last updated for WordPress 6.5-RC3.}
|
|
668
|
-
*
|
|
669
|
-
* @since 3.0.0
|
|
670
|
-
*
|
|
671
|
-
* @var string[] The class names in their "proper" case.
|
|
672
|
-
* The constructor will add the lowercased class name as a key to each entry.
|
|
673
|
-
*/
|
|
674
|
-
private $simplepie_classes = array(
|
|
675
|
-
// Interfaces.
|
|
676
|
-
'SimplePie_Cache_Base',
|
|
677
|
-
|
|
678
|
-
// Classes.
|
|
679
|
-
'SimplePie',
|
|
680
|
-
'SimplePie_Author',
|
|
681
|
-
'SimplePie_Cache',
|
|
682
|
-
'SimplePie_Cache_DB',
|
|
683
|
-
'SimplePie_Cache_File',
|
|
684
|
-
'SimplePie_Cache_Memcache',
|
|
685
|
-
'SimplePie_Cache_Memcached',
|
|
686
|
-
'SimplePie_Cache_MySQL',
|
|
687
|
-
'SimplePie_Cache_Redis',
|
|
688
|
-
'SimplePie_Caption',
|
|
689
|
-
'SimplePie_Category',
|
|
690
|
-
'SimplePie_Content_Type_Sniffer',
|
|
691
|
-
'SimplePie_Copyright',
|
|
692
|
-
'SimplePie_Core',
|
|
693
|
-
'SimplePie_Credit',
|
|
694
|
-
'SimplePie_Decode_HTML_Entities',
|
|
695
|
-
'SimplePie_Enclosure',
|
|
696
|
-
'SimplePie_Exception',
|
|
697
|
-
'SimplePie_File',
|
|
698
|
-
'SimplePie_HTTP_Parser',
|
|
699
|
-
'SimplePie_IRI',
|
|
700
|
-
'SimplePie_Item',
|
|
701
|
-
'SimplePie_Locator',
|
|
702
|
-
'SimplePie_Misc',
|
|
703
|
-
'SimplePie_Net_IPv6',
|
|
704
|
-
'SimplePie_Parse_Date',
|
|
705
|
-
'SimplePie_Parser',
|
|
706
|
-
'SimplePie_Rating',
|
|
707
|
-
'SimplePie_Registry',
|
|
708
|
-
'SimplePie_Restriction',
|
|
709
|
-
'SimplePie_Sanitize',
|
|
710
|
-
'SimplePie_Source',
|
|
711
|
-
'SimplePie_XML_Declaration_Parser',
|
|
712
|
-
'SimplePie_gzdecode',
|
|
713
|
-
);
|
|
714
|
-
|
|
715
|
-
/**
|
|
716
|
-
* List of all WP native classes in lowercase.
|
|
717
|
-
*
|
|
718
|
-
* This array is automatically generated in the class constructor based on the $wp_classes property.
|
|
719
|
-
*
|
|
720
|
-
* @since 3.0.0
|
|
721
|
-
*
|
|
722
|
-
* @var string[] The class names in lowercase.
|
|
723
|
-
*/
|
|
724
|
-
private $wp_classes_lc = array();
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* List of all WP native classes as shipped with themes in lowercase.
|
|
728
|
-
*
|
|
729
|
-
* This array is automatically generated in the class constructor based on the $wp_themes_classes property.
|
|
730
|
-
*
|
|
731
|
-
* @since 3.0.0
|
|
732
|
-
*
|
|
733
|
-
* @var string[] The class names in lowercase.
|
|
734
|
-
*/
|
|
735
|
-
private $wp_themes_classes_lc = array();
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* List of all AVIF classes in lowercase.
|
|
739
|
-
*
|
|
740
|
-
* This array is automatically generated in the class constructor based on the $avif_classes property.
|
|
741
|
-
*
|
|
742
|
-
* @since 3.1.0
|
|
743
|
-
*
|
|
744
|
-
* @var string[] The class names in lowercase.
|
|
745
|
-
*/
|
|
746
|
-
private $avif_classes_lc = array();
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* List of all GetID3 classes in lowercase.
|
|
750
|
-
*
|
|
751
|
-
* This array is automatically generated in the class constructor based on the $phpmailer_classes property.
|
|
752
|
-
*
|
|
753
|
-
* @since 3.0.0
|
|
754
|
-
*
|
|
755
|
-
* @var string[] The class names in lowercase.
|
|
756
|
-
*/
|
|
757
|
-
private $getid3_classes_lc = array();
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* List of all PHPMailer classes in lowercase.
|
|
761
|
-
*
|
|
762
|
-
* This array is automatically generated in the class constructor based on the $phpmailer_classes property.
|
|
763
|
-
*
|
|
764
|
-
* @since 3.0.0
|
|
765
|
-
*
|
|
766
|
-
* @var string[] The class names in lowercase.
|
|
767
|
-
*/
|
|
768
|
-
private $phpmailer_classes_lc = array();
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* List of all Requests classes in lowercase.
|
|
772
|
-
*
|
|
773
|
-
* This array is automatically generated in the class constructor based on the $requests_classes property.
|
|
774
|
-
*
|
|
775
|
-
* @since 3.0.0
|
|
776
|
-
*
|
|
777
|
-
* @var string[] The class names in lowercase.
|
|
778
|
-
*/
|
|
779
|
-
private $requests_classes_lc = array();
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
* List of all SimplePie classes in lowercase.
|
|
783
|
-
*
|
|
784
|
-
* This array is automatically generated in the class constructor based on the $simplepie_classes property.
|
|
785
|
-
*
|
|
786
|
-
* @since 3.0.0
|
|
787
|
-
*
|
|
788
|
-
* @var string[] The class names in lowercase.
|
|
789
|
-
*/
|
|
790
|
-
private $simplepie_classes_lc = array();
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* Groups names.
|
|
794
|
-
*
|
|
795
|
-
* Used to dynamically fill in some of the above properties and to generate the getGroups() array.
|
|
796
|
-
*
|
|
797
|
-
* @since 3.0.0
|
|
798
|
-
*
|
|
799
|
-
* @var array
|
|
800
|
-
*/
|
|
801
|
-
private $class_groups = array(
|
|
802
|
-
'wp_classes',
|
|
803
|
-
'wp_themes_classes',
|
|
804
|
-
'avif_classes',
|
|
805
|
-
'getid3_classes',
|
|
806
|
-
'phpmailer_classes',
|
|
807
|
-
'requests_classes',
|
|
808
|
-
'simplepie_classes',
|
|
809
|
-
);
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* Constructor.
|
|
813
|
-
*
|
|
814
|
-
* @since 3.0.0
|
|
815
|
-
*/
|
|
816
|
-
public function __construct() {
|
|
817
|
-
// Adjust the class list properties to have the lowercased version of the value as a key.
|
|
818
|
-
foreach ( $this->class_groups as $name ) {
|
|
819
|
-
$name_lc = $name . '_lc';
|
|
820
|
-
$this->$name_lc = array_map( 'strtolower', $this->$name );
|
|
821
|
-
$this->$name = array_combine( $this->$name_lc, $this->$name );
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* Groups of classes to restrict.
|
|
827
|
-
*
|
|
828
|
-
* @since 3.0.0
|
|
829
|
-
*
|
|
830
|
-
* @return array
|
|
831
|
-
*/
|
|
832
|
-
public function getGroups() {
|
|
833
|
-
$groups = array();
|
|
834
|
-
foreach ( $this->class_groups as $name ) {
|
|
835
|
-
$name_lc = $name . '_lc';
|
|
836
|
-
$groups[ $name ] = array(
|
|
837
|
-
'classes' => $this->$name_lc,
|
|
838
|
-
);
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
return $groups;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* Process a matched token.
|
|
846
|
-
*
|
|
847
|
-
* @since 3.0.0
|
|
848
|
-
*
|
|
849
|
-
* @param int $stackPtr The position of the current token in the stack.
|
|
850
|
-
* @param string $group_name The name of the group which was matched. Will
|
|
851
|
-
* always be 'wp_classes'.
|
|
852
|
-
* @param string $matched_content The token content (class name) which was matched.
|
|
853
|
-
* in its original case.
|
|
854
|
-
*
|
|
855
|
-
* @return void
|
|
856
|
-
*/
|
|
857
|
-
public function process_matched_token( $stackPtr, $group_name, $matched_content ) {
|
|
858
|
-
|
|
859
|
-
$matched_unqualified = ltrim( $matched_content, '\\' );
|
|
860
|
-
$matched_lowercase = strtolower( $matched_unqualified );
|
|
861
|
-
$matched_proper_case = $this->get_proper_case( $matched_lowercase );
|
|
862
|
-
|
|
863
|
-
if ( $matched_unqualified === $matched_proper_case ) {
|
|
864
|
-
// Already using proper case, nothing to do.
|
|
865
|
-
return;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
$warning = 'It is strongly recommended to refer to classes by their properly cased name. Expected: %s Found: %s';
|
|
869
|
-
$data = array(
|
|
870
|
-
$matched_proper_case,
|
|
871
|
-
$matched_unqualified,
|
|
872
|
-
);
|
|
873
|
-
|
|
874
|
-
$this->phpcsFile->addWarning( $warning, $stackPtr, 'Incorrect', $data );
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
/**
|
|
878
|
-
* Match a lowercase class name to its proper cased name.
|
|
879
|
-
*
|
|
880
|
-
* @since 3.0.0
|
|
881
|
-
*
|
|
882
|
-
* @param string $matched_lc Lowercase class name.
|
|
883
|
-
*
|
|
884
|
-
* @return string
|
|
885
|
-
*/
|
|
886
|
-
private function get_proper_case( $matched_lc ) {
|
|
887
|
-
foreach ( $this->class_groups as $name ) {
|
|
888
|
-
$current = $this->$name; // Needed to prevent issues with PHP < 7.0.
|
|
889
|
-
if ( isset( $current[ $matched_lc ] ) ) {
|
|
890
|
-
return $current[ $matched_lc ];
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
// Shouldn't be possible.
|
|
895
|
-
return ''; // @codeCoverageIgnore
|
|
896
|
-
}
|
|
897
|
-
}
|