diff --git a/app/Entities/User/UserCapabilities.php b/app/Entities/User/UserCapabilities.php index cf42740..974f30e 100644 --- a/app/Entities/User/UserCapabilities.php +++ b/app/Entities/User/UserCapabilities.php @@ -40,9 +40,9 @@ public function addSortingCapabilities() * * @since 3.1.9 * - * @param bool $grant_role Whether role may sort post type. - * @param string $type The post type name. - * @param string $role_name The Role Name. + * @param bool $grant_capability Whether role may sort post type. + * @param string $type The post type name. + * @param \WP_Role $role The role object. */ $grant_capability = apply_filters("nestedpages_sorting_capability", $grant_capability, $type, $role); if ( $grant_capability ) $role->add_cap("nestedpages_sorting_$type", true);