コード例 #1
0
 /**
  * Constructor
  *
  * @since 1.8
  *
  * @param object $model PLL_Model instance
  */
 public function __construct(&$model)
 {
     parent::__construct($model);
     $this->hosts = $this->get_hosts();
     // Filrer the site url ( mainly to get the correct login form )
     add_filter('site_url', array($this, 'site_url'));
 }
コード例 #2
0
 /**
  * Constructor
  *
  * @since 1.7.4
  *
  * @param object $model PLL_Model instance
  */
 public function __construct(&$model)
 {
     parent::__construct($model);
     $this->www = false === strpos($this->home, '://www.') ? '://' : '://www.';
 }