PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/capabilities/class-abstract-capability-manager.php +3 -1 18.4 → 28.5 View file →
@@ -22,8 +22,10 @@
22 22 *
23 23 * @param string $capability Capability to register.
24 24 * @param array $roles Roles to add the capability to.
25 25 * @param bool $overwrite Optional. Use add or overwrite as registration method.
26 + *
27 + * @return void
26 28 */
27 29 public function register( $capability, array $roles, $overwrite = false ) {
28 30 if ( $overwrite || ! isset( $this->capabilities[ $capability ] ) ) {
29 31 $this->capabilities[ $capability ] = $roles;
@@ -74,9 +76,9 @@
74 76 protected function filter_roles( $capability, array $roles ) {
75 77 /**
76 78 * Filter: Allow changing roles that a capability is added to.
77 79 *
78 - * @api array $roles The default roles to be filtered.
80 + * @param array $roles The default roles to be filtered.
79 81 */
80 82 $filtered = apply_filters( $capability . '_roles', $roles );
81 83
82 84 // Make sure we have the expected type.