accepting drafts in related post combobox control
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-03-13 11:26:07 +01:00
parent ebcc7a6f08
commit 403ddcdbec
5 changed files with 4 additions and 5 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', 'wp-notices'), 'version' => 'bda8b3f54e1d213d5635');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-notices'), 'version' => '58510d1cc04ede606ecf');

View File

@ -99,7 +99,7 @@ function OptionsSelectControl({
const relatedPossiblePages = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(select => {
if (postMainTaxonomy) {
let query = {
status: "publish",
status: ["publish", "draft"],
per_page: -1,
thematiques: postMainTaxonomy ? postMainTaxonomy.id : null
// lang: lang,

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,6 @@ $relatedPost = get_post($relatedPostId);
?>
<section id="questions-container-<?php echo $relatedPostId ?>" class="questions-container-block">
<h2 class="questions-container-block__title"><?php echo $relatedPost->post_title ?></h2>
<?php echo do_blocks($relatedPost->post_content) ?>

View File

@ -87,7 +87,7 @@ export default function OptionsSelectControl({ setAttributes, relatedPostId }) {
const relatedPossiblePages = useSelect((select) => {
if (postMainTaxonomy) {
let query = {
status: "publish",
status: ["publish", "draft"],
per_page: -1,
thematiques: postMainTaxonomy ? postMainTaxonomy.id : null,
// lang: lang,