+h fi8r@,h u xr@`hhhhVh@X3L@((Ph@ >@((Ph@hh(@ >@((Ph@^h(@h(@E@(@XGh(4h(hhQhRh0Rh@(G@((Qh@pK@((Rh(Qh QhQh(@Rh(PhPh`Rh(Ph[h=h@X3L@))Sh) Sh)Rh0Sh)Rh`Sh@X3L@++Sh@F@++Sh+ThUh2hhh,@xZh,@F@,,hTh,Th,8ThPThTh,(ThTh@wh-@Шr@--Uh-0hh5hhUh-Th8Uh+ShShSh@@jh0@X3L@00Uh0Vh0UhVh@pK@00XVh8h `hP8h!c1Bh09hCwUPz>?@Pd>@e>@8r@6h ߢ>b7@7h v 7@:h .<N?@hHh Lߔ{gr@Hh _d(hr@=h sIr@>h 12wr@?h w ' ڐr@@h ṾEHr@Ah `%8sr@Bh =LEyr@Hh 2xY`v8@Hh F |X)6@(Ih W*&pluginAbsolutePath, false, false); } public function removeHooks() { remove_filter('upgrader_post_install', array($this, 'clearCachedVersion')); remove_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion')); } /** * Check if the plugin file is inside the mu-plugins directory. * * @return bool */ public function isMuPlugin() { static $cachedResult = null; if ( $cachedResult === null ) { if ( !defined('WPMU_PLUGIN_DIR') || !is_string(WPMU_PLUGIN_DIR) ) { $cachedResult = false; return $cachedResult; } //Convert both paths to the canonical form before comparison. $muPluginDir = realpath(WPMU_PLUGIN_DIR); $pluginPath = realpath($this->pluginAbsolutePath); //If realpath() fails, just normalize the syntax instead. if (($muPluginDir === false) || ($pluginPath === false)) { $muPluginDir = Puc_v4p9_Factory::normalizePath(WPMU_PLUGIN_DIR); $pluginPath = Puc_v4p9_Factory::normalizePath($this->pluginAbsolutePath); } $cachedResult = (strpos($pluginPath, $muPluginDir) === 0); } return $cachedResult; } } endif;