Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Term Object PHP Warnings #876

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zamanq
Copy link

@zamanq zamanq commented Sep 2, 2024

Context: Using this plugin in a sub-directory multisite network. Consistently getting "Attempt to read property on Array" PHP warning for $term->term_id, $term->name in the class-fieldmanager-datasource-term.php file, which in turn was causing 502 errors while editing any user in a sub-site.

Adding this check solves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant