Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/Entities/User/UserCapabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down