You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Address review feedback: route abilities through existing classes
Keep abilities thin and delegate to the existing data-flow
classes so the admin UI and the Abilities API stay on one code
path.
- Alerts: add STATUS_ENABLED / STATUS_DISABLED constants and a
get_alerts() listing method; consume both from get-alerts ability.
- Alert: add delete() method; consume from delete-alert ability.
- create-alert ability now delegates the insert + meta save to
Alert::save() instead of duplicating wp_insert_post / update_post_meta.
- Connectors: add get_all() and get_slugs() helpers; consume from
get-connectors and create-exclusion-rule abilities.
- Record: add static get_by_id($id, $blog_id) for single-row + meta
fetch; consume from get-record ability (multisite scoping kept in the
ability layer, where the REST/network-admin distinction belongs).
- Settings: add get_setting_value() that transparently reads the network
option on network-activated multisite; Abilities loader uses it
instead of its own multisite branching.
0 commit comments