diff --git a/tests/issue-18/hooks.md b/tests/issue-18/hooks.md index 270c081..a72a3c2 100644 --- a/tests/issue-18/hooks.md +++ b/tests/issue-18/hooks.md @@ -11,16 +11,14 @@ ### `some_condition_filter` -*Test issue 18.* - **Arguments** Argument | Type | Description -------- | ---- | ----------- -`$some_condition` | `bool` | Condition. -`$some_other_parameter` | `mixed` | Other parameter. +`$some_condition` | | +`$some_other_parameter` | | -Source: [tests/issue-18/test-issue-18.php](test-issue-18.php), [line 11](test-issue-18.php#L11-L19) +Source: [tests/issue-18/test-issue-18.php](test-issue-18.php), [line 19](test-issue-18.php#L19-L19)

Pronamic WordPress Documentor
Generated by Pronamic WordPress Documentor 1.2.0

diff --git a/tests/issue-18/test-issue-18.php b/tests/issue-18/test-issue-18.php index fbb8de5..bf76b58 100644 --- a/tests/issue-18/test-issue-18.php +++ b/tests/issue-18/test-issue-18.php @@ -16,6 +16,6 @@ * @param mixed $some_other_parameter Other parameter. * @return bool */ -if ( apply_filters( 'some_condition_filter', $some_condition, $some_other_parameter ) ) { +if ( (bool) apply_filters( 'some_condition_filter', $some_condition, $some_other_parameter ) ) { do_something(); }