diff --git a/php/context/class-fieldmanager-context-storable.php b/php/context/class-fieldmanager-context-storable.php index a37dca24f7..b25a3114ec 100644 --- a/php/context/class-fieldmanager-context-storable.php +++ b/php/context/class-fieldmanager-context-storable.php @@ -169,6 +169,8 @@ protected function load_walk_children( $field ) { * and `update_option()` are able to correctly compare the current value * against the previous value. * + * @since 1.2.0 + * * @param mixed $value Value being stored. * @return string|array If $value is scalar, a string is returned. Otherwise, * $value returns untouched. diff --git a/tests/php/test-fieldmanager-context-storable.php b/tests/php/test-fieldmanager-context-storable.php index e7997079ed..6a9a84a4e4 100644 --- a/tests/php/test-fieldmanager-context-storable.php +++ b/tests/php/test-fieldmanager-context-storable.php @@ -27,6 +27,6 @@ public function scalar_sanitize_data() { * @param mixed $expected Expected values. */ public function test_sanitize_scalar_values( $test, $expected ) { - $this->assertSame( $expected, \Fieldmanager_Context_Post::sanitize_scalar_value( $test ) ); + $this->assertSame( $expected, \Fieldmanager_Context_Storable::sanitize_scalar_value( $test ) ); } } \ No newline at end of file