Type Comparison fix
-
Hello
I’ve a compatibility issues with third party plugins and I found the issue in your plugin. There is a problem with type comparison === in term_permalink() method – https://plugins.trac.ww.wp.xz.cn/browser/custom-permalinks/trunk/includes/class-custom-permalinks-frontend.php#L1102. I fixed this issue on my site, please include below fix in your next update.
Current code:
if ( $info['id'] === $term_id ) {Fixed version:
if ( $info['id'] === (int) $term_id ) {
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Type Comparison fix’ is closed to new replies.