allowing all questions (languages mixed) in option select control

This commit is contained in:
Antoine M 2024-12-17 11:15:06 +01:00
parent 3511f7e4b1
commit 37bc3946c3
4 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '3425af252c990d073a9e');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '4bc6322a2964838c7d14');

View File

@ -101,7 +101,7 @@ function OptionsSelectControl({
let query = {
status: "publish",
per_page: -1,
lang: lang,
// lang: lang,
thematiques: postMainTaxonomy ? postMainTaxonomy.id : null
};
return select("core").getEntityRecords("postType", "questions", query);

File diff suppressed because one or more lines are too long

View File

@ -89,7 +89,7 @@ export default function OptionsSelectControl({ setAttributes, relatedPostId }) {
let query = {
status: "publish",
per_page: -1,
lang: lang,
// lang: lang,
thematiques: postMainTaxonomy ? postMainTaxonomy.id : null,
};
return select("core").getEntityRecords("postType", "questions", query);