Changeset 4028
- Timestamp:
- 09/11/2016 02:50:40 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-global-wordpress-org.php
r4027 r4028 5 5 6 6 class Global_WordPress_Org implements Site { 7 8 /** 9 * Domain of this site. 10 * 11 * @var string 12 */ 13 public static $domain = 'global.wordpress.org'; 14 15 /** 16 * Path of this site. 17 * 18 * @var string 19 */ 20 public static $path = '/'; 7 21 8 22 /** … … 14 28 */ 15 29 public static function test( WP_Site $site ) { 16 if ( 'global.wordpress.org'=== $site->domain ) {30 if ( self::$domain === $site->domain ) { 17 31 return true; 18 32 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-main.php
r4027 r4028 5 5 6 6 class Locale_Main implements Site { 7 8 /** 9 * Domain of this site. 10 * 11 * @var string 12 */ 13 public static $domain = '#[a-z-]{2,5}\.wordpress\.org#'; 14 15 /** 16 * Path of this site. 17 * 18 * @var string 19 */ 20 public static $path = '/'; 7 21 8 22 /** … … 14 28 */ 15 29 public static function test( WP_Site $site ) { 16 if ( '/'=== $site->path ) {30 if ( self::$path === $site->path ) { 17 31 return true; 18 32 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-support.php
r4027 r4028 5 5 6 6 class Locale_Support implements Site { 7 8 /** 9 * Domain of this site. 10 * 11 * @var string 12 */ 13 public static $domain = '#[a-z-]{2,5}\.wordpress\.org#'; 14 15 /** 16 * Path of this site. 17 * 18 * @var string 19 */ 20 public static $path = '/support/'; 7 21 8 22 /** … … 14 28 */ 15 29 public static function test( WP_Site $site ) { 16 if ( '/support/'=== $site->path ) {30 if ( self::$path === $site->path ) { 17 31 return true; 18 32 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-team.php
r4027 r4028 5 5 6 6 class Locale_Team implements Site { 7 8 /** 9 * Domain of this site. 10 * 11 * @var string 12 */ 13 public static $domain = '#[a-z-]{2,5}\.wordpress\.org#'; 14 15 /** 16 * Path of this site. 17 * 18 * @var string 19 */ 20 public static $path = '/team/'; 7 21 8 22 /** … … 14 28 */ 15 29 public static function test( WP_Site $site ) { 16 if ( '/team/'=== $site->path ) {30 if ( self::$path === $site->path ) { 17 31 return true; 18 32 } -
sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-translate-wordpress-org.php
r4027 r4028 5 5 6 6 class Translate_WordPress_Org implements Site { 7 8 /** 9 * Domain of this site. 10 * 11 * @var string 12 */ 13 public static $domain = 'translate.wordpress.org'; 14 15 /** 16 * Path of this site. 17 * 18 * @var string 19 */ 20 public static $path = '/'; 7 21 8 22 /** … … 14 28 */ 15 29 public static function test( WP_Site $site ) { 16 if ( 'translate.wordpress.org'=== $site->domain ) {30 if ( self::$domain === $site->domain ) { 17 31 return true; 18 32 }
Note: See TracChangeset
for help on using the changeset viewer.