handling also draft posts
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
1388bae620
commit
629635b3b6
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user