Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions php/context/class-fieldmanager-context-storable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/php/test-fieldmanager-context-storable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
}
}