Closed herrvigg closed 2 years ago
Reverted the empty string checks. It should never be false
with qtranxf
but that's for the post title / term name. For the input slugs there might be special cases with false
that I don't see well yet. This can probably be rewritten but it's a different topic, it would be for another patch.
The QTS filters come from the legacy plugin:
qts_validate_post_slug
qts_validate_term_slug
qts_permastruct
qts_url_args
For easier maintenance and readability, remove those filters and replace them with direct calls instead. New
qtranslate
filters will be added on request if the need is justified.Rename the two
validate
slugs functions tosanitize
(post/term). Minor cleanup to improve phpdoc and code readability.