PluginProbe
Code Snippets / 4.0.0-beta.2
Code Snippets v4.0.0-beta.2
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
← All changes | php/Core/load.php +3 -10 3.10.24.0.0-beta.2 View file →
@@ -1,7 +1,7 @@
1 1 <?php
2 2 /**
3 - * Initialise and load the plugin under the proper namespace.
3 + * Initialize and load the plugin under the proper namespace.
4 4 *
5 5 * @package Code_Snippets
6 6 */
7 7
@@ -40,15 +40,9 @@
40 40
41 41 /**
42 42 * Name of the group used for caching data.
43 43 *
44 - * Scoped to the plugin version, so data cached by one version is never read by
45 - * another. Snippet objects are cached here, and the Snippet class moved
46 - * namespace in 3.10. A version that cannot resolve the stored class fatals on
47 - * unserialize, which broke the admin for anyone downgrading on a site with a
48 - * persistent object cache. Keeping the group distinct per version means the
49 - * two never see each other's data, in either direction, without relying on the
50 - * other version to clean up after itself.
44 + * Scoped to the plugin version, so data cached by one version is never read by another.
51 45 *
52 46 * @var string
53 47 */
54 48 const CACHE_GROUP = CACHE_GROUP_BASE . '_' . PLUGIN_VERSION;
@@ -63,10 +57,9 @@
63 57 /**
64 58 * Load the Composer autoloader.
65 59 *
66 60 * After loading, remove any PSR-4 namespace mappings that do not start with our vendor prefix but have a corresponding
67 - * prefixed version, as these are not removed by Imposter and would cause collisions with other plugins that use the same
68 - * libraries.
61 + * prefixed version. These are not removed by Imposter and would cause collisions with other plugins that use the same libraries.
69 62 *
70 63 * @var ClassLoader $autoloader Composer autoloader instance.
71 64 */
72 65 $autoloader = require dirname( __DIR__, 2 ) . '/vendor/autoload.php';