Making WordPress.org


Ignore:
Timestamp:
09/11/2016 02:50:40 PM (9 years ago)
Author:
ocean90
Message:

Rosetta: Add domain and path properties to Site objects.

See #2003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/rosetta/inc/site/class-locale-team.php

    r4027 r4028  
    55
    66class 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/';
    721
    822    /**
     
    1428     */
    1529    public static function test( WP_Site $site ) {
    16         if ( '/team/' === $site->path ) {
     30        if ( self::$path === $site->path ) {
    1731            return true;
    1832        }
Note: See TracChangeset for help on using the changeset viewer.