handling also draft posts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-03-25 16:44:11 +01:00
parent 1388bae620
commit 629635b3b6
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-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '55e31bae70626f5c48f7');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '2f43106b7f9de45096c7');

View File

@ -47,7 +47,7 @@ function OptionsSelectControl({
const optionPages = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_5__.useSelect)(select => {
if (!postType) return null;
let query = {
status: "publish",
status: ["publish", "draft"],
per_page: -1,
lang: lang
};

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@ export default function OptionsSelectControl({
(select) => {
if (!postType) return null;
let query = {
status: "publish",
status: ["publish", "draft"],
per_page: -1,
lang: lang,
};