Skip to content

Commit b39c8b5

Browse files
Maintenance: Update trunk with the latest 6.5.7 release. (#214)
* update readme * Build assets, documentation, and translations * Update version to 6.5.5 * Revert "Build assets, documentation, and translations" This reverts commit 8f79f54. * Update stable tag to 6.5.5 * REST API: Add `source` parameter for types endpoint (#128) Co-authored-by: Carlos Bravo <[email protected]> * Backport: Update SCF to include all 6.4.3 fixes. (#207) * Land the PHP stuff * Backport field-group and input * Added dompurify * Update acf.min.js * Update pro js * Fix more PHP backports * Fix indent * Use a better composer approach * Remove not needed utf function * Backport: Update 6.5.0 (#208) * First batch of changes * Backport acf-input.min.js * Finish main min file * Update 90% of flexible content * Finish all JS * Update all PHP files and acf min * Update latest version * Rename issue * Update readme with changelog * Build assets, documentation, and translations * Update version to 6.5.6 * Add zip creation script (#202) * Fix folder moved (#204) * Update readme * Update version to 6.5.7 * Update readme stable tag to last version * Maintenance: Update branch 6.5 with backports. (#215) * Add zip creation script (#202) * Update trunk with 6.5.5 releae. (#203) * update readme * Build assets, documentation, and translations * Update version to 6.5.5 * Revert "Build assets, documentation, and translations" This reverts commit 8f79f54. * Fix folder moved (#204) * Update trunk branch with 6.5 (#205) * update readme * Build assets, documentation, and translations * Update version to 6.5.5 * Revert "Build assets, documentation, and translations" This reverts commit 8f79f54. * Update stable tag to 6.5.5 * REST API: Add `source` parameter for types endpoint (#128) Co-authored-by: Carlos Bravo <[email protected]> * Backport: Update SCF to include all 6.4.3 fixes. (#207) * Land the PHP stuff * Backport field-group and input * Added dompurify * Update acf.min.js * Update pro js * Fix more PHP backports * Fix indent * Use a better composer approach * Remove not needed utf function * First batch of changes * Backport acf-input.min.js * Finish main min file * Update 90% of flexible content * Finish all JS * Update all PHP files and acf min * Update latest version * Rename issue --------- Co-authored-by: Héctor <[email protected]> --------- Co-authored-by: Héctor <[email protected]>
1 parent 22df7c6 commit b39c8b5

8 files changed

+117
-7660
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"autoload": {
3030
"psr-4": {
3131
"ACF\\Blocks\\": "includes/Blocks/",
32+
"SCF\\Fields\\FlexibleContent\\": "includes/fields/FlexibleContent/",
3233
"SCF\\Forms\\": "includes/forms/",
3334
"SCF\\Meta\\": "includes/Meta/",
3435
"SCF\\Fields\\FlexibleContent\\": "includes/fields/FlexibleContent/"
@@ -41,6 +42,8 @@
4142
"phpstan/extension-installer": true,
4243
"roots/wordpress-core-installer": true
4344
},
45+
"classmap-authoritative": true,
46+
"optimize-autoloader": true,
4447
"platform": {
4548
"php": "7.4"
4649
},

docs/code-reference/META.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,14 +398,24 @@ This file tracks code elements that need documentation.
398398
- `acf/get_field_types`
399399
- `acf/localized_field_categories`
400400

401-
## fields/class-acf-field-flexible-content.php
401+
## fields/FlexibleContent/Layout.php
402402

403403
### Hooks
404404

405-
- `acf/fields/flexible_content/layout_default_expanded`
406405
- `acf/fields/flexible_content/layout_title`
406+
407+
## fields/FlexibleContent/Render.php
408+
409+
### Hooks
410+
407411
- `acf/fields/flexible_content/no_value_message`
408412

413+
## fields/class-acf-field-flexible-content.php
414+
415+
### Hooks
416+
417+
- `acf/fields/flexible_content/layout_default_expanded`
418+
409419
## fields/class-acf-field-gallery.php
410420

411421
### Hooks

docs/code-reference/rest-api/class-acf-rest-types-endpoint-file.md

Lines changed: 69 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Class SCF_Rest_Types_Endpoint
44

5-
* Extends the /wp/v2/types endpoint to include SCF fields.
5+
* Extends the /wp/v2/types endpoint to include SCF fields and source filtering.
66
* @since SCF 6.5.0
77

88
## Methods
@@ -13,6 +13,35 @@ Initialize the class.
1313

1414
* @since SCF 6.5.0
1515

16+
### `filter_types_request`
17+
18+
Filter post types requests, fires for both collection and individual requests.
19+
We only want to handle individual requets to ensure the post type requested matches the source.
20+
21+
* @since SCF 6.5.0
22+
* @param mixed $response The current response, either response or null.
23+
* @param array $handler The handler for the route.
24+
* @param WP_REST_Request $request The request object.
25+
* @return mixed The response or null.
26+
27+
### `filter_post_type`
28+
29+
Filter individual post type in the response.
30+
31+
* @since SCF 6.5.0
32+
* @param WP_REST_Response $response The response object.
33+
* @param WP_Post_Type $post_type The post type object.
34+
* @param WP_REST_Request $request The request object.
35+
* @return WP_REST_Response|null The filtered response or null to filter it out.
36+
37+
### `get_source_post_types`
38+
39+
Get an array of post types for each source.
40+
41+
* @since SCF 6.5.0
42+
* @param string $source The source to get post types for.
43+
* @return array An array of post type names for the specified source.
44+
1645
### `register_extra_fields`
1746

1847
Register extra SCF fields for the post types endpoint.
@@ -34,3 +63,42 @@ Get the schema for the SCF fields.
3463

3564
* @since SCF 6.5.0
3665
* @return array The schema for the SCF fields.
66+
67+
### `register_parameters`
68+
69+
Register the source parameter for the post types endpoint.
70+
71+
* @since SCF 6.5.0
72+
73+
### `get_source_param_definition`
74+
75+
Get the source parameter definition
76+
77+
* @since SCF 6.5.0
78+
* @return array Parameter definition
79+
80+
### `add_parameter_to_endpoints`
81+
82+
Add source parameter directly to the endpoints for proper documentation
83+
84+
* @since SCF 6.5.0
85+
* @param array $endpoints The REST API endpoints.
86+
* @return array Modified endpoints
87+
88+
### `add_collection_params`
89+
90+
Add source parameter to the collection parameters for the types endpoint.
91+
92+
* @since SCF 6.5.0
93+
* @param array $query_params JSON Schema-formatted collection parameters.
94+
* @return array Modified collection parameters.
95+
96+
### `clean_types_response`
97+
98+
Clean up null entries from the response
99+
100+
* @since SCF 6.5.0
101+
* @param array $response The response data.
102+
* @param WP_REST_Server $server The REST server instance.
103+
* @param WP_REST_Request $request The original request.
104+
* @return array The filtered response data.

lang/secure-custom-fields-nl_NL_formal.l10n.php

Lines changed: 0 additions & 2 deletions
This file was deleted.
-109 KB
Binary file not shown.

0 commit comments

Comments
 (0)