Automattic / vip-support

Manages the VIP Support Users on your site
GNU General Public License v2.0
12 stars 4 forks source link

Hook the custom user_has_cap callback as late as possible #59

Closed david-binda closed 6 years ago

david-binda commented 6 years ago

Hooking the the user_has_cap filter from a mu-plugin on default priority means that any theme's or plugin's hook may override ours, as they are being processed in chronological order in terms of a single priority.

This commit moves our callback to PHP_INT_MAX priority, which means it should run really late.