예제 #1
0
 static function setUp($sPluginFilePath = null)
 {
     self::$sFilePath = $sPluginFilePath ? $sPluginFilePath : __FILE__;
     // 2.0.6+
     self::$sDirPath = dirname(self::$sFilePath);
     // 2.0.6+
     // These static properties are for backward compatibility.
     self::$sPluginPath = self::$sFilePath;
     // backward compat
     self::$sPluginDirPath = self::$sDirPath;
     // backward compat
     self::$sPluginName = self::Name;
     self::$sPluginVersion = self::Version;
     self::$sPluginDescription = self::Description;
     self::$sPluginAuthor = self::Author;
     self::$sPluginAuthorURI = self::AuthorURI;
     self::$sPluginStoreURI = 'http://michaeluno.jp';
     self::$sPluginTextDomain = self::TextDomain;
     self::$sPluginDomainPath = self::TextDomainPath;
     // Backward compatibility - will be deprecated
     self::$strPluginFilePath = self::$sFilePath;
     self::$strPluginDirPath = self::$sDirPath;
     // self::$strPluginURI         = plugins_url( '', self::$strPluginFilePath );   // @deprecated
     self::$strPluginName = self::Name;
     self::$strPluginVersion = self::Version;
     self::$strPluginDescription = self::Description;
     self::$strPluginAuthor = self::Author;
     self::$strPluginAuthorURI = self::AuthorURI;
     self::$strPluginTextDomain = self::TextDomain;
     self::$strPluginDomainPath = self::TextDomainPath;
     self::$strPluginNetwork = '';
     self::$strPluginSiteWide = 'Site Wide Only';
     self::$strPluginStoreURI = 'http://michaeluno.jp';
 }