| | |
| | | |
| | | $registrar = Registrar::getInstance($content); |
| | | if (!$registrar) continue; |
| | | if ($registrar->hasFeature('is_content')) { |
| | | foreach ($registrar->registrar->for as $c) { |
| | | $contentRegistrar = Registrar::getInstance($c); |
| | | if (!$contentRegistrar) continue; |
| | | $theTax = $contentRegistrar->registrar->taxonomies; |
| | | foreach ($theTax as $tax) { |
| | | if (!in_array($tax, $ignore) && !in_array($tax, $taxonomies)) { |
| | | $taxReg = Registrar::getInstance($tax); |
| | | if ($taxReg->hasFeature('show_feed')) { |
| | | $taxonomies[] = $tax; |
| | | } else { |
| | | $ignore[] = $tax; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } else { |
| | | $theTax = $registrar->registrar->taxonomies; |
| | | foreach ($theTax as $tax) { |
| | | if (!in_array($tax, $ignore) && !in_array($tax, $taxonomies)) { |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | $this->taxonomies = array_unique($taxonomies); |
| | | } |
| | | |