| @@ -221,8 +221,12 @@ | ||
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | $annotations = $this->get_annotations(); |
| 224 | 224 | |
| 225 | + // wp_register_ability() is a WP 6.9+ Abilities API function. It is only reached | |
| 226 | + // after the function_exists() guard above (and via the wp_abilities_api_init hook), | |
| 227 | + // so it is inert on WP 6.4-6.8. Plugin Check's static WP-version check cannot see the | |
| 228 | + // runtime guard, so it reports a false positive here. | |
| 225 | 229 | wp_register_ability( |
| 226 | 230 | $this->id, |
| 227 | 231 | [ |
| 228 | 232 | 'label' => $this->label, |