Skip to content

Commit 64765f4

Browse files
Arttu ErkkiläArttu Erkkilä
authored andcommitted
Merge branch 'master' into components
2 parents 7a1f22a + 40f0083 commit 64765f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4468
-1419
lines changed

CHANGELOG.md

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,190 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1616
* `Geniem\ACF\Renderer\PHP`: Uses PHP files as templates.
1717
* `Geniem\ACF\Renderer\Dust`: Uses Dust.js template files.
1818

19+
## [1.38.2]
20+
### Fixed
21+
- Fixes "Automatic conversion of false to array is deprecated" on Dust.php
22+
23+
## [1.38.1]
24+
25+
### Fixed
26+
- Parameter order for PHP 8.1
27+
28+
## [1.38.0]
29+
30+
### Changed
31+
- Google Maps field to be queryable to RediPress.
32+
- All mainline versions from now on require RediPress 2.0 if the integration is used.
33+
34+
## [1.37.2] - 2022-11-04
35+
36+
### Added
37+
38+
- Show in rest option to Group.
39+
40+
## [1.37.1] - 2022-04-07
41+
42+
### Fixed
43+
- Fix Polylang incompatibility with multisite fields.
44+
45+
## [1.37.0] - 2021-11-30
46+
47+
### Changed
48+
- `Readonly` trait to `ReadonlyTrait` to avoid PHP 8.1 reserved word `readonly`.
49+
50+
## [1.36.1] - 2021-09-24
51+
52+
### Added
53+
- RediPress field type `Numeric` for the Number field.
54+
- Added min-max trait to Flexible Content Layout
55+
56+
## [1.36.0] - 2021-02-24
57+
58+
### Added
59+
- Added set_return_format and get_return_format methods to Checkbox.
60+
61+
### Fixed
62+
- A bug where RediPress queryable fields with array values may not have worked properly.
63+
64+
## [1.35.1] - 2021-01-27
65+
66+
### Changed
67+
- `redipress_get_fields()` has_blocks check to use $item->post_content for custom posts to work.
68+
69+
### Fixed
70+
- The `redipress_include_search_filter()` to pass integer values.
71+
- A typo in the code that prevented the plugin from working with PHP 8.0.
72+
73+
## [1.35.0] - 2020-11-16
74+
75+
### Added
76+
- The ability to use fields from ACF Blocks as queryable fields or search fields in RediPress.
77+
78+
### Fixed
79+
- A bug with RediPress queryable filter functionality.
80+
81+
## [1.34.0] - 2020-11-09
82+
83+
### Changed
84+
- RediPress search include to be suitable also for field types returning other types of values than string.
85+
86+
### Fixed
87+
- The use of `redipress_queryable_callback` changed the return value of a field in some cases.
88+
89+
## [1.33.0] - 2020-10-13
90+
91+
### Changed
92+
- `\Geniem\ACF\Field\GoogleMap` latitude and longitude types from `int` to `float`.
93+
94+
## [1.32.0] - 2020-07-09
95+
96+
### Fixed
97+
- Compatibility with WordPress 5.5 regarding the block rendering function.
98+
99+
### Changed
100+
- RediPress integration changed to match the one in version 1.7.0.
101+
102+
## [1.31.0] - 2020-06-15
103+
104+
### Added
105+
- Ability to define TinyMCE toolbars individually by Wysiwyg fields instance.
106+
- Extended Wysiwyg field with ability to set textarea heights individually by field instance.
107+
108+
## [1.30.2] - 2020-05-27
109+
110+
### Fixed
111+
- Groupable's get_field.
112+
113+
## [1.30.1] - 2020-05-25
114+
115+
### Fixed
116+
- A bug in the Advanced Forms compatibility fix preventing form submissions in certain situations.
117+
118+
## [1.30.0] - 2020-05-22
119+
120+
### Added
121+
- A compatibility fix for Advanced Forms plugin to be able to handle Codifier-registered fields in submissions.
122+
123+
## [1.29.2] - 2020-04-02
124+
125+
### Fixed
126+
- A bug where field content would appear in the search index duplicated.
127+
128+
## [1.29.1] - 2020-04-01
129+
130+
### Fixed
131+
- A bug where RediPress indexing wouldn't take all search index bound content into account.
132+
133+
## [1.29.0] - 2020-03-02
134+
135+
### Added
136+
- MultisitePostObject field for selecting post objects from other sites.
137+
138+
### Changed
139+
- Cleaned up code quite a bit and changed duplicate code to traits for DRY.
140+
141+
## [1.28.1] - 2020-02-17
142+
143+
### Fixed
144+
- Polylang incompatibility with MultisiteRelationship.
145+
146+
## [1.28.0] - 2020-02-07
147+
148+
### Added
149+
- MultisiteTaxonomy field for choosing taxonomy terms from other multisite blogs.
150+
- Ability to set Multitaxonomy and MultisiteTaxonomy fields as "disabled".
151+
152+
## [1.27.0] - 2020-01-31
153+
154+
### Added
155+
- RediPress support for `update_field()` function.
156+
157+
## [1.26.0] - 2020-01-31
158+
159+
### Added
160+
- Support for Gutenberg block styles.
161+
- A possibility to create Gutenberg blocks with ACF's register block feature using Codifier's object-oriented model.
162+
163+
## [1.25.1] - 2019-12-18
164+
165+
### Fixed
166+
- A bug regarding RediPress custom schema fields.
167+
168+
## [1.25.0] - 2019-12-11
169+
170+
### Added
171+
- User query filter.
172+
- Wysiwyg field delay attribute.
173+
174+
### Fixed
175+
- A bug in RediPress queryable field functionality.
176+
177+
## [1.24.0] - 2019-11-21
178+
179+
### Added
180+
181+
- A new custom field: Multitaxonomy. This field enables selecting terms from multiple taxonomies.
182+
183+
## [1.23.0] - 2019-11-19
184+
185+
### Added
186+
- Support for Select field's return format that was introduced in ACF version 5.4.0.
187+
188+
### Fixed
189+
- A bug in Flexible Content's export function.
190+
191+
## [1.22.0] - 2019-11-08
192+
193+
### Added
194+
- Support for RediPress user indexing and custom fields there.
195+
- Multisite Relationship field that allows the user to pick posts from other sites of a multisite.
196+
197+
## [1.21.0] - 2019-10-25
198+
199+
### Added
200+
- Added the ability to use Allow null setting with the Radio field.
201+
>>>>>>> master
202+
19203
## [1.20.0] - 2019-10-10
20204

21205
### Changed

assets/scripts/extended-wysiwyg.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(function( $, undefined ){
2+
var Field = acf.models.WysiwygField.extend({
3+
type: 'extended_wysiwyg',
4+
});
5+
6+
acf.registerFieldType( Field );
7+
8+
})(jQuery);
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(function( $, undefined ){
2+
var Field = acf.models.TaxonomyField.extend({
3+
type: 'multisite_post_object',
4+
});
5+
6+
acf.registerFieldType( Field );
7+
8+
})(jQuery);
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
(function( $, undefined ){
2+
var Field = acf.models.RelationshipField.extend({
3+
type: 'multisite_relationship',
4+
5+
getAjaxData: function() {
6+
// load data based on element attributes
7+
var ajaxData = this.$control().data();
8+
for( var name in ajaxData ) {
9+
ajaxData[ name ] = this.get( name );
10+
}
11+
12+
// extra
13+
ajaxData.action = 'acf/fields/multisite_relationship/query';
14+
ajaxData.field_key = this.get('key');
15+
16+
// Filter.
17+
ajaxData = acf.applyFilters( 'relationship_ajax_data', ajaxData, this );
18+
19+
// return
20+
return ajaxData;
21+
}
22+
});
23+
24+
acf.registerFieldType( Field );
25+
26+
})(jQuery);

0 commit comments

Comments
 (0)