Changeset 12575
- Timestamp:
- 05/08/2023 02:52:06 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-also-viewing/wporg-bbp-also-viewing.php
r12574 r12575 309 309 foreach ( $users as &$u ) { 310 310 $user_objects = get_user_object_slugs( $u['user_id'] ); 311 if ( ! array_intersect( $ user_objects, $current_user_objects ) ) {311 if ( ! array_intersect( $current_user_objects, $user_objects ) ) { 312 312 $u['who'] = ''; 313 313 $u['user_id'] = 0; … … 329 329 } 330 330 331 $plugin_slugs = \WordPressdotorg\Forums\Plugin::get_instance()->plugins->get_user_object_slugs( $user_id ); 332 $theme_slugs = \WordPressdotorg\Forums\Plugin::get_instance()->themes->get_user_object_slugs( $user_id ); 331 $forums = \WordPressdotorg\Forums\Plugin::get_instance(); 332 if ( ! $forums->plugins || ! $forums->themes ) { 333 return []; 334 } 335 336 $plugin_slugs = $forums->plugins->get_user_object_slugs( $user_id ); 337 $theme_slugs = $forums->themes->get_user_object_slugs( $user_id ); 333 338 334 339 $matrix = [];
Note: See TracChangeset
for help on using the changeset viewer.