$grant ) { if ( $grant ) { $enabled_capabilities[] = $capability; } if ( ! $grant ) { $disabled_capabilities[] = $capability; } } wpcom_vip_add_role( $role, $display_name, $enabled_capabilities ); if ( $disabled_capabilities !== [] ) { wpcom_vip_remove_role_caps( $role, $disabled_capabilities ); } } /** * Removes a role from the system. * * @deprecated 19.9 * @codeCoverageIgnore * * @param string $role Role to remove. * * @return void */ protected function remove_role( $role ) { _deprecated_function( __METHOD__, 'Yoast SEO 19.9' ); remove_role( $role ); } }