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
The documentation describes master linking with the following specifications:
i18n(object) (Optional) Custom localization information is stored in the property. It must contain an object with the following properties:
locale(string) (Required) The language code string, for example fi.
master(string|object) (Required) A gi_id value to be used to fetch a default language post or an array containing a query_key value. This is used to link the post as a translation.
The documentation describes master linking with the following specifications:
i18n
(object) (Optional) Custom localization information is stored in the property. It must contain an object with the following properties:locale
(string) (Required) The language code string, for examplefi
.master
(string|object) (Required) Agi_id
value to be used to fetch a default language post or an array containing aquery_key
value. This is used to link the post as a translation.It seems that the current version only supports the array type as the "master" property. The validation does not allow passing a value other than an array with a "query_key" key. See:
https://github.com/devgeniem/wp-geniem-importer/blob/master/src/Post.php#L593
Fix this by allowing a direct id value to be set as the value of "master".
The text was updated successfully, but these errors were encountered: