Taxonomy
-
term_link filter expects url string.
But after some refactoring it might contain the WP_Error.Some plugins (e.g. WPML) expect the string, and generate PHP Warning, trying to apply string functions to the WP_Error object.
Maybe the filter should not be called if it is WP_Error, and return WP_Error without calling filter?
Alternatively, the documentation could be updated to say it could pass the WP_Error to a filter.
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Taxonomy’ is closed to new replies.