diff --git a/extending/modifying/index.md b/extending/modifying/index.md index b9160d3..269f1a0 100644 --- a/extending/modifying/index.md +++ b/extending/modifying/index.md @@ -128,7 +128,7 @@ function slug_get_spaceship( $object, $field_name, $request ) { * @return bool|int */ function slug_update_spaceship( $value, $object, $field_name ) { - if ( ! $value || ! is_string( $value ) ) { + if ( ! isset( $value ) || ! is_string( $value ) || strlen( $value ) < 1 ) { return; }