/** * WPML_Term_Element constructor. * * @param int $id * @param SitePress $sitepress * @param string $taxonomy * @param WPML_WP_Cache $wpml_cache */ public function __construct($id, SitePress $sitepress, $taxonomy = '', WPML_WP_Cache $wpml_cache = null) { $this->taxonomy = $taxonomy; parent::__construct($id, $sitepress, $wpml_cache); }
/** * @param WPML_Translation_Element $element */ private function init_cache_for_element(WPML_Translation_Element $element) { if (!array_key_exists($element->get_id(), $this->duplicated_by)) { $this->duplicated_by[$element->get_id()] = array(); } }