There is an issue with categories being reset in WordPress 6.4.
-
I have been enjoying using your plugin — thank you for the great work.
Issue:
However, since updating to WordPress 6.4, it seems there has been a conflict. When I go to edit a post, there’s an issue that the categories get reset.
Code Analysis:
As shown in the photo I’ve linked, the conflict occurs on line 788 of
class-wp-term-query.php
in WordPress 6.4.2. The relevant code involves the$args
call where the fields are ‘ids
‘, and it passes all the items through theintval
function usingarray_map
.if ( 'ids' === $_fields ) { $cache = array_map( 'intval', $cache ); }
The error occurs because the actual value is not an integer but a
WP_Term
Object.When the plugin is deactivated, the
$_fields
is set to ‘all
‘, not ‘ids
‘. When the plugin is activated, the$_fields
value changes to ‘ids
‘.I would love to continue using your plugin, so I would greatly appreciate it if you could fix this issue.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.