Skip to content

Fix phpdoc for nestedpages_sorting_capability filter #367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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