accepting drafts in related post combobox control
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ebcc7a6f08
commit
403ddcdbec
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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) ?>
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user