44 *
55 * @package WordPress
66 * @subpackage Abilities API
7- * @since 7.1 .0
7+ * @since 7.2 .0
88 */
99
1010declare ( strict_types = 1 );
3434 * not part of the public API. It may be changed or removed at any time without notice.
3535 * Do not use it directly or rely on its existence.
3636 *
37- * @since 7.1 .0
37+ * @since 7.2 .0
3838 *
3939 * @access private
4040 */
@@ -43,7 +43,7 @@ final class WP_Settings_Abilities {
4343 /**
4444 * The ability category used for settings abilities.
4545 *
46- * @since 7.1 .0
46+ * @since 7.2 .0
4747 * @var string
4848 */
4949 private const CATEGORY = 'site ' ;
@@ -54,7 +54,7 @@ final class WP_Settings_Abilities {
5454 * Cached so the input/output schema and the executed result derive from the exact same
5555 * structure, and {@see get_registered_settings()} is only walked once per request.
5656 *
57- * @since 7.1 .0
57+ * @since 7.2 .0
5858 * @var array<string, array{option: string, group: string, default: mixed, schema: array<string, mixed>}>|null
5959 */
6060 private $ exposed_settings = null ;
@@ -64,7 +64,7 @@ final class WP_Settings_Abilities {
6464 *
6565 * Must run on the `wp_abilities_api_init` hook.
6666 *
67- * @since 7.1 .0
67+ * @since 7.2 .0
6868 */
6969 public function register (): void {
7070 /*
@@ -97,7 +97,7 @@ public function register(): void {
9797 /**
9898 * Registers the read-only `core/settings-get` ability.
9999 *
100- * @since 7.1 .0
100+ * @since 7.2 .0
101101 */
102102 private function register_get_settings (): void {
103103 // Compute once; execute_get_settings() reuses this exact structure.
@@ -145,7 +145,7 @@ private function register_get_settings(): void {
145145 /**
146146 * Executes the `core/settings-get` ability.
147147 *
148- * @since 7.1 .0
148+ * @since 7.2 .0
149149 *
150150 * @param mixed $input Optional. The ability input. Default empty array.
151151 * @return array<string, mixed> Map of exposed setting name to current value.
@@ -184,7 +184,7 @@ public function execute_get_settings( $input = array() ): array {
184184 /**
185185 * Checks whether the current user may use the settings abilities.
186186 *
187- * @since 7.1 .0
187+ * @since 7.2 .0
188188 *
189189 * @return bool True if the current user can manage options.
190190 */
@@ -198,7 +198,7 @@ public function has_permission(): bool {
198198 * Both `group` and `fields` are optional; supplying both narrows the response to their
199199 * intersection, and supplying neither returns every exposed setting.
200200 *
201- * @since 7.1 .0
201+ * @since 7.2 .0
202202 *
203203 * @param list<string> $groups Available settings groups.
204204 * @param list<string> $field_names Available exposed setting names.
@@ -236,7 +236,7 @@ private function get_settings_input_schema( array $groups, array $field_names ):
236236 * underlying option name, the settings group, the registration default, and a JSON Schema
237237 * describing the value.
238238 *
239- * @since 7.1 .0
239+ * @since 7.2 .0
240240 *
241241 * @return array<string, array{option: string, group: string, default: mixed, schema: array<string, mixed>}> Settings keyed by exposed name.
242242 */
@@ -266,7 +266,7 @@ private function get_exposed_settings(): array {
266266 /**
267267 * Builds the JSON Schema describing a single setting's value.
268268 *
269- * @since 7.1 .0
269+ * @since 7.2 .0
270270 *
271271 * @param array<string, mixed> $args The setting registration arguments.
272272 * @param bool|array<string, mixed> $show The setting's `show_in_abilities` value.
@@ -294,7 +294,7 @@ private function value_schema( array $args, $show ): array {
294294 /**
295295 * Casts a stored option value to the type declared in its settings registration.
296296 *
297- * @since 7.1 .0
297+ * @since 7.2 .0
298298 *
299299 * @param mixed $value The raw option value.
300300 * @param string $type The registered setting type.
0 commit comments