PTS 1.4:

Fix non-public post type handling.
Strict comparisons.
Brackets.
Avoid possible accidental variable assignment.