WordPress.WP.DeprecatedFunctions.current_user_can_for_blogFound
Deprecated function: current_user_can_for_blog
The plugin uses a WordPress API, parameter, class, or value that has been deprecated.
Why It Shows Up
Plugin Check found a deprecated WordPress function, parameter position, class, or parameter value.
Why It Matters
Deprecated APIs may keep working for now, but they can behave differently across WordPress versions and make maintenance harder.
How to Fix
- Look up the replacement API in the WordPress developer reference.
- Update the call signature and test on the plugin's supported WordPress versions.
- Keep compatibility wrappers only when the plugin intentionally supports older WordPress versions.
References
Affected Plugins
| Rank | Plugin | Score | Errors | Warnings | Installs | Added | Updated | Top Issue |
|---|---|---|---|---|---|---|---|---|
| #1 | Event Espresso – Event Registration & Ticketing Sales | 20 | 12,698 | 2,135 | 600 | Text Domain Mismatch | ||
| #2 | Events Manager – Calendar, Bookings, Tickets, and more! | 22 | 4,716 | 5,690 | 70k+ | Output is not escaped | ||
| #3 | BuddyPress | 23 | 584 | 9,012 | 90k+ | Non-prefixed function | ||
| #4 | Ocean Extra | 23 | 1,494 | 2,110 | 500k+ | Non-prefixed global variable | ||
| #5 | Youzify – BuddyPress Community, User Profile, Social Network & Membership Plugin for WordPress | 23 | 2,317 | 1,714 | 5k+ | Output is not escaped | ||
| #6 | Import and export users and customers | 24 | 1,046 | 357 | 70k+ | Unsafe printing function | ||
| #7 | Simply Static – The Static Site Generator | 25 | 190 | 534 | 30k+ | Non-prefixed hook name | ||
| #8 | UpdraftPlus: WP Backup & Migration Plugin | 59 | 110 | 293 | 3m+ | Non-prefixed global variable | ||
| #9 | WP Dashboard Messages | 87 | 9 | 11 | 400 | Text Domain Mismatch |