Merged in feature/314-dev-dev01 (pull request #24)
auto-patch 314-dev-dev01-2024-01-25T04_09_02 * auto-patch 314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
@@ -23,6 +23,8 @@ abstract class WPSEO_Abstract_Capability_Manager implements WPSEO_Capability_Man
|
||||
* @param string $capability Capability to register.
|
||||
* @param array $roles Roles to add the capability to.
|
||||
* @param bool $overwrite Optional. Use add or overwrite as registration method.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register( $capability, array $roles, $overwrite = false ) {
|
||||
if ( $overwrite || ! isset( $this->capabilities[ $capability ] ) ) {
|
||||
@@ -75,7 +77,7 @@ abstract class WPSEO_Abstract_Capability_Manager implements WPSEO_Capability_Man
|
||||
/**
|
||||
* Filter: Allow changing roles that a capability is added to.
|
||||
*
|
||||
* @api array $roles The default roles to be filtered.
|
||||
* @param array $roles The default roles to be filtered.
|
||||
*/
|
||||
$filtered = apply_filters( $capability . '_roles', $roles );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user