Closed benlk closed 1 year ago
This looks like it could be fixed by replacing get_user_attributes( $user_id, $meta_key )
with get_user_meta( $user_id, $meta_key, true )
to ensure a single return object.
Or by removing the entire VIP check: https://github.com/xwp/stream/blob/305583d70e8a7667d1f99df85196024a7334ed50/classes/class-admin.php#L1079-L1094
Thanks, @benlk!
Bug Report
Expected Behavior
The expected behavior is that this plugin operates without excessive error logging.
Actual Behavior
On every admin page load, my error log fills up with messages like this:
https://github.com/xwp/stream/blob/305583d70e8a7667d1f99df85196024a7334ed50/classes/class-admin.php#L1090
https://github.com/Automattic/vip-go-mu-plugins-built/blob/3b3927f64df1741db90f701c7d89b926ac11d7bd/vip-helpers/vip-deprecated.php#L458-L484
Steps to Reproduce the Problem
With the following:
WP_DEBUG
andWP_DEBUG_LOG
set totrue
mu-plugins
directoryDo the following
System Information