| @@ -3,19 +3,23 @@ | ||
| 3 | 3 | // scoper-autoload.php @generated by PhpScoper |
| 4 | 4 | |
| 5 | 5 | $loader = (static function () { |
| 6 | 6 | // Backup the autoloaded Composer files |
| 7 | - $existingComposerAutoloadFiles = $GLOBALS['__composer_autoload_files'] ?? []; | |
| 7 | + $existingComposerAutoloadFiles = isset($GLOBALS['__composer_autoload_files']) ? $GLOBALS['__composer_autoload_files'] : []; | |
| 8 | 8 | |
| 9 | + $GLOBALS['__composer_autoload_files'] = $GLOBALS['__composer_autoload_files_windpress_deps'] ?? []; | |
| 10 | + | |
| 9 | 11 | $loader = require_once __DIR__.'/autoload.php'; |
| 10 | 12 | // Ensure InstalledVersions is available |
| 11 | 13 | $installedVersionsPath = __DIR__.'/composer/InstalledVersions.php'; |
| 12 | 14 | if (file_exists($installedVersionsPath)) require_once $installedVersionsPath; |
| 13 | 15 | |
| 16 | + $GLOBALS['__composer_autoload_files_windpress_deps'] = $GLOBALS['__composer_autoload_files']; | |
| 17 | + | |
| 14 | 18 | // Restore the backup and ensure the excluded files are properly marked as loaded |
| 15 | 19 | $GLOBALS['__composer_autoload_files'] = \array_merge( |
| 16 | 20 | $existingComposerAutoloadFiles, |
| 17 | - \array_fill_keys(['9eaa6b0f3f04e58e17ae5ecb754ea313', '320cde22f66dd4f5d3fd621d3e88b98f', 'acbe0d033c55cd0a032b415e08d14f4c', '8825ede83f2f289127722d4e842cf7e8', '36dfd6ed9dd74e8062aa61f09caf8554', 'e69f7f6ee287b969198c3c9d6777bd38', '5928a00fa978807cf85d90ec3f4b0147', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a', 'a4a119a56e50fbb293281d9a48007e0e', '54b9ab13bc86d8251a04a939888e357e', '7edcabe1b67fbb38f4972a722bbbb429', '7bdb062931f6e7102434c3ad28423eb6', 'f49032536fdd06afd9df7191c3f21453', '51421aa3e5e8003b70a289762d146a2a', '18e965175c6bcd96deba6bc791a44373'], true) | |
| 21 | + \array_fill_keys(['320cde22f66dd4f5d3fd621d3e88b98f', '9eaa6b0f3f04e58e17ae5ecb754ea313', '80dfc307f8b4b13bcd033cef5c977d19', '8825ede83f2f289127722d4e842cf7e8', 'acbe0d033c55cd0a032b415e08d14f4c', 'e69f7f6ee287b969198c3c9d6777bd38', '36dfd6ed9dd74e8062aa61f09caf8554', 'e4e9c4430b5a6c815e77a26074c8155a', '0e6d7bf4a5811bfa5cf40c5ccd6fae6a', '5928a00fa978807cf85d90ec3f4b0147', 'a4a119a56e50fbb293281d9a48007e0e', '54b9ab13bc86d8251a04a939888e357e', 'f49032536fdd06afd9df7191c3f21453', '7edcabe1b67fbb38f4972a722bbbb429', '7bdb062931f6e7102434c3ad28423eb6', '51421aa3e5e8003b70a289762d146a2a', '18e965175c6bcd96deba6bc791a44373', '6a099327d1f9694737526ccd00bfd944', 'a1780cd2edf30a1f045434cd1550cff0', '2d223b650b5c56928c1affa16ee5cfe2', '86aa1691af0be2057ff4b6c453db6c6c', 'f62335a8f6f7f7f4414fa96074bda702', '63fa8de9655d8331bf07592719bbba1c', 'cf0bcfe0f5602da2103bbe327f19225c', '7acea9128a4ae5dba9006cde886d4577', 'ac36427f0a3d6d978fd7d5779ceac594', '8e794e4061c17331d204e4e8ae4f90c7', '620bccfea918a59f88a707c890434313', '36b60e4543e3a2fa5ff85be4f4b96cf6', '2acf50802a54a9a126e656b486aeab54', '08959129a5682ab79a4f5f65bddb9566'], true) | |
| 18 | 22 | ); |
| 19 | 23 | |
| 20 | 24 | return $loader; |
| 21 | 25 | })(); |
| @@ -29,14 +33,21 @@ | ||
| 29 | 33 | } |
| 30 | 34 | } |
| 31 | 35 | } |
| 32 | 36 | humbug_phpscoper_expose_class('WIND_PRESS', 'WindPressDeps\WIND_PRESS'); |
| 37 | +humbug_phpscoper_expose_class('ValueError', 'WindPressDeps\ValueError'); | |
| 33 | 38 | humbug_phpscoper_expose_class('Normalizer', 'WindPressDeps\Normalizer'); |
| 34 | 39 | humbug_phpscoper_expose_class('Attribute', 'WindPressDeps\Attribute'); |
| 35 | 40 | humbug_phpscoper_expose_class('PhpToken', 'WindPressDeps\PhpToken'); |
| 36 | 41 | humbug_phpscoper_expose_class('Stringable', 'WindPressDeps\Stringable'); |
| 37 | 42 | humbug_phpscoper_expose_class('UnhandledMatchError', 'WindPressDeps\UnhandledMatchError'); |
| 38 | -humbug_phpscoper_expose_class('ValueError', 'WindPressDeps\ValueError'); | |
| 43 | +humbug_phpscoper_expose_class('WP_Abilities_Registry', 'WindPressDeps\WP_Abilities_Registry'); | |
| 44 | +humbug_phpscoper_expose_class('WP_Ability_Categories_Registry', 'WindPressDeps\WP_Ability_Categories_Registry'); | |
| 45 | +humbug_phpscoper_expose_class('WP_Ability_Category', 'WindPressDeps\WP_Ability_Category'); | |
| 46 | +humbug_phpscoper_expose_class('WP_Ability', 'WindPressDeps\WP_Ability'); | |
| 47 | +humbug_phpscoper_expose_class('WP_REST_Abilities_V1_Categories_Controller', 'WindPressDeps\WP_REST_Abilities_V1_Categories_Controller'); | |
| 48 | +humbug_phpscoper_expose_class('WP_REST_Abilities_V1_List_Controller', 'WindPressDeps\WP_REST_Abilities_V1_List_Controller'); | |
| 49 | +humbug_phpscoper_expose_class('WP_REST_Abilities_V1_Run_Controller', 'WindPressDeps\WP_REST_Abilities_V1_Run_Controller'); | |
| 39 | 50 | |
| 40 | 51 | // Function aliases. For more information see: |
| 41 | 52 | // https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#function-aliases |
| 42 | 53 | if (!function_exists('ctype_alnum')) { function ctype_alnum() { return \WindPressDeps\ctype_alnum(...func_get_args()); } } |
| @@ -53,8 +64,10 @@ | ||
| 53 | 64 | if (!function_exists('fdiv')) { function fdiv() { return \WindPressDeps\fdiv(...func_get_args()); } } |
| 54 | 65 | if (!function_exists('get_debug_type')) { function get_debug_type() { return \WindPressDeps\get_debug_type(...func_get_args()); } } |
| 55 | 66 | if (!function_exists('get_resource_id')) { function get_resource_id() { return \WindPressDeps\get_resource_id(...func_get_args()); } } |
| 56 | 67 | if (!function_exists('grapheme_extract')) { function grapheme_extract() { return \WindPressDeps\grapheme_extract(...func_get_args()); } } |
| 68 | +if (!function_exists('grapheme_levenshtein')) { function grapheme_levenshtein() { return \WindPressDeps\grapheme_levenshtein(...func_get_args()); } } | |
| 69 | +if (!function_exists('grapheme_str_split')) { function grapheme_str_split() { return \WindPressDeps\grapheme_str_split(...func_get_args()); } } | |
| 57 | 70 | if (!function_exists('grapheme_stripos')) { function grapheme_stripos() { return \WindPressDeps\grapheme_stripos(...func_get_args()); } } |
| 58 | 71 | if (!function_exists('grapheme_stristr')) { function grapheme_stristr() { return \WindPressDeps\grapheme_stristr(...func_get_args()); } } |
| 59 | 72 | if (!function_exists('grapheme_strlen')) { function grapheme_strlen() { return \WindPressDeps\grapheme_strlen(...func_get_args()); } } |
| 60 | 73 | if (!function_exists('grapheme_strpos')) { function grapheme_strpos() { return \WindPressDeps\grapheme_strpos(...func_get_args()); } } |
| @@ -61,9 +74,8 @@ | ||
| 61 | 74 | if (!function_exists('grapheme_strripos')) { function grapheme_strripos() { return \WindPressDeps\grapheme_strripos(...func_get_args()); } } |
| 62 | 75 | if (!function_exists('grapheme_strrpos')) { function grapheme_strrpos() { return \WindPressDeps\grapheme_strrpos(...func_get_args()); } } |
| 63 | 76 | if (!function_exists('grapheme_strstr')) { function grapheme_strstr() { return \WindPressDeps\grapheme_strstr(...func_get_args()); } } |
| 64 | 77 | if (!function_exists('grapheme_substr')) { function grapheme_substr() { return \WindPressDeps\grapheme_substr(...func_get_args()); } } |
| 65 | -if (!function_exists('leak')) { function leak() { return \WindPressDeps\leak(...func_get_args()); } } | |
| 66 | 78 | if (!function_exists('mb_check_encoding')) { function mb_check_encoding() { return \WindPressDeps\mb_check_encoding(...func_get_args()); } } |
| 67 | 79 | if (!function_exists('mb_chr')) { function mb_chr() { return \WindPressDeps\mb_chr(...func_get_args()); } } |
| 68 | 80 | if (!function_exists('mb_convert_case')) { function mb_convert_case() { return \WindPressDeps\mb_convert_case(...func_get_args()); } } |
| 69 | 81 | if (!function_exists('mb_convert_encoding')) { function mb_convert_encoding() { return \WindPressDeps\mb_convert_encoding(...func_get_args()); } } |
| @@ -79,13 +91,17 @@ | ||
| 79 | 91 | if (!function_exists('mb_http_input')) { function mb_http_input() { return \WindPressDeps\mb_http_input(...func_get_args()); } } |
| 80 | 92 | if (!function_exists('mb_http_output')) { function mb_http_output() { return \WindPressDeps\mb_http_output(...func_get_args()); } } |
| 81 | 93 | if (!function_exists('mb_internal_encoding')) { function mb_internal_encoding() { return \WindPressDeps\mb_internal_encoding(...func_get_args()); } } |
| 82 | 94 | if (!function_exists('mb_language')) { function mb_language() { return \WindPressDeps\mb_language(...func_get_args()); } } |
| 95 | +if (!function_exists('mb_lcfirst')) { function mb_lcfirst() { return \WindPressDeps\mb_lcfirst(...func_get_args()); } } | |
| 83 | 96 | if (!function_exists('mb_list_encodings')) { function mb_list_encodings() { return \WindPressDeps\mb_list_encodings(...func_get_args()); } } |
| 97 | +if (!function_exists('mb_ltrim')) { function mb_ltrim() { return \WindPressDeps\mb_ltrim(...func_get_args()); } } | |
| 84 | 98 | if (!function_exists('mb_ord')) { function mb_ord() { return \WindPressDeps\mb_ord(...func_get_args()); } } |
| 85 | 99 | if (!function_exists('mb_output_handler')) { function mb_output_handler() { return \WindPressDeps\mb_output_handler(...func_get_args()); } } |
| 86 | 100 | if (!function_exists('mb_parse_str')) { function mb_parse_str() { return \WindPressDeps\mb_parse_str(...func_get_args()); } } |
| 101 | +if (!function_exists('mb_rtrim')) { function mb_rtrim() { return \WindPressDeps\mb_rtrim(...func_get_args()); } } | |
| 87 | 102 | if (!function_exists('mb_scrub')) { function mb_scrub() { return \WindPressDeps\mb_scrub(...func_get_args()); } } |
| 103 | +if (!function_exists('mb_str_pad')) { function mb_str_pad() { return \WindPressDeps\mb_str_pad(...func_get_args()); } } | |
| 88 | 104 | if (!function_exists('mb_str_split')) { function mb_str_split() { return \WindPressDeps\mb_str_split(...func_get_args()); } } |
| 89 | 105 | if (!function_exists('mb_stripos')) { function mb_stripos() { return \WindPressDeps\mb_stripos(...func_get_args()); } } |
| 90 | 106 | if (!function_exists('mb_stristr')) { function mb_stristr() { return \WindPressDeps\mb_stristr(...func_get_args()); } } |
| 91 | 107 | if (!function_exists('mb_strlen')) { function mb_strlen() { return \WindPressDeps\mb_strlen(...func_get_args()); } } |
| @@ -100,8 +116,11 @@ | ||
| 100 | 116 | if (!function_exists('mb_strwidth')) { function mb_strwidth() { return \WindPressDeps\mb_strwidth(...func_get_args()); } } |
| 101 | 117 | if (!function_exists('mb_substitute_character')) { function mb_substitute_character() { return \WindPressDeps\mb_substitute_character(...func_get_args()); } } |
| 102 | 118 | if (!function_exists('mb_substr')) { function mb_substr() { return \WindPressDeps\mb_substr(...func_get_args()); } } |
| 103 | 119 | if (!function_exists('mb_substr_count')) { function mb_substr_count() { return \WindPressDeps\mb_substr_count(...func_get_args()); } } |
| 120 | +if (!function_exists('mb_trim')) { function mb_trim() { return \WindPressDeps\mb_trim(...func_get_args()); } } | |
| 121 | +if (!function_exists('mb_ucfirst')) { function mb_ucfirst() { return \WindPressDeps\mb_ucfirst(...func_get_args()); } } | |
| 122 | +if (!function_exists('normalizer_get_raw_decomposition')) { function normalizer_get_raw_decomposition() { return \WindPressDeps\normalizer_get_raw_decomposition(...func_get_args()); } } | |
| 104 | 123 | if (!function_exists('normalizer_is_normalized')) { function normalizer_is_normalized() { return \WindPressDeps\normalizer_is_normalized(...func_get_args()); } } |
| 105 | 124 | if (!function_exists('normalizer_normalize')) { function normalizer_normalize() { return \WindPressDeps\normalizer_normalize(...func_get_args()); } } |
| 106 | 125 | if (!function_exists('preg_last_error_msg')) { function preg_last_error_msg() { return \WindPressDeps\preg_last_error_msg(...func_get_args()); } } |
| 107 | 126 | if (!function_exists('str_contains')) { function str_contains() { return \WindPressDeps\str_contains(...func_get_args()); } } |
| @@ -106,6 +125,18 @@ | ||
| 106 | 125 | if (!function_exists('preg_last_error_msg')) { function preg_last_error_msg() { return \WindPressDeps\preg_last_error_msg(...func_get_args()); } } |
| 107 | 126 | if (!function_exists('str_contains')) { function str_contains() { return \WindPressDeps\str_contains(...func_get_args()); } } |
| 108 | 127 | if (!function_exists('str_ends_with')) { function str_ends_with() { return \WindPressDeps\str_ends_with(...func_get_args()); } } |
| 109 | 128 | if (!function_exists('str_starts_with')) { function str_starts_with() { return \WindPressDeps\str_starts_with(...func_get_args()); } } |
| 129 | +if (!function_exists('wp_get_abilities')) { function wp_get_abilities() { return \WindPressDeps\wp_get_abilities(...func_get_args()); } } | |
| 130 | +if (!function_exists('wp_get_ability')) { function wp_get_ability() { return \WindPressDeps\wp_get_ability(...func_get_args()); } } | |
| 131 | +if (!function_exists('wp_get_ability_categories')) { function wp_get_ability_categories() { return \WindPressDeps\wp_get_ability_categories(...func_get_args()); } } | |
| 132 | +if (!function_exists('wp_get_ability_category')) { function wp_get_ability_category() { return \WindPressDeps\wp_get_ability_category(...func_get_args()); } } | |
| 133 | +if (!function_exists('wp_has_ability')) { function wp_has_ability() { return \WindPressDeps\wp_has_ability(...func_get_args()); } } | |
| 134 | +if (!function_exists('wp_has_ability_category')) { function wp_has_ability_category() { return \WindPressDeps\wp_has_ability_category(...func_get_args()); } } | |
| 135 | +if (!function_exists('wp_register_ability')) { function wp_register_ability() { return \WindPressDeps\wp_register_ability(...func_get_args()); } } | |
| 136 | +if (!function_exists('wp_register_ability_category')) { function wp_register_ability_category() { return \WindPressDeps\wp_register_ability_category(...func_get_args()); } } | |
| 137 | +if (!function_exists('wp_register_core_abilities')) { function wp_register_core_abilities() { return \WindPressDeps\wp_register_core_abilities(...func_get_args()); } } | |
| 138 | +if (!function_exists('wp_register_core_ability_categories')) { function wp_register_core_ability_categories() { return \WindPressDeps\wp_register_core_ability_categories(...func_get_args()); } } | |
| 139 | +if (!function_exists('wp_unregister_ability')) { function wp_unregister_ability() { return \WindPressDeps\wp_unregister_ability(...func_get_args()); } } | |
| 140 | +if (!function_exists('wp_unregister_ability_category')) { function wp_unregister_ability_category() { return \WindPressDeps\wp_unregister_ability_category(...func_get_args()); } } | |
| 110 | 141 | |
| 111 | 142 | return $loader; |