"Missing argument 2 for current_user_can_for_blog()" error on non-multisite.
-
Here’s the full error:
Warning: Missing argument 2 for current_user_can_for_blog(), called in /wp-content/plugins/collaboration/togetherjs.php on line 34 and defined in /wp-includes/capabilities.php on line 1362
As it’s shown at the top of the admin & public pages whenever the plugin is active on a standard (not networked) WordPress site running 3.8.1.
The Fix:
A quick change ofcurrent_user_can_for_blog()
tocurrent_user_can()
on line 34 oftogetherjs.php
fixed this issue. Should continue to work for networked sites as this function assumes the currently viewed site (which is what we want).
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘"Missing argument 2 for current_user_can_for_blog()" error on non-multisite.’ is closed to new replies.