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:
Tony Volpe
2024-01-25 04:11:47 +00:00
parent 6b67473553
commit 68dbe860e9
540 changed files with 3445 additions and 2131 deletions

View File

@@ -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 );

View File

@@ -61,6 +61,8 @@ class WPSEO_Capability_Manager_Integration implements WPSEO_WordPress_Integratio
* Add capabilities to its own group in the Members plugin.
*
* @see members_register_cap_group()
*
* @return void
*/
public function action_members_register_cap_group() {
if ( ! function_exists( 'members_register_cap_group' ) ) {