mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-24 17:21:34 +01:00
Editor: Backport bug fixes from Gutenberg into Core for WP 6.0.2 RC
This brings a new version of the Gutenberg code from the [https://github.com/WordPress/gutenberg/tree/wp/6.0 wp/6.0 branch] into core. - @wordpress/block-directory@3.4.14 - @wordpress/block-editor@8.5.10 - @wordpress/block-library@7.3.14 - @wordpress/customize-widgets@3.3.14 - @wordpress/edit-post@6.3.14 - @wordpress/edit-site@4.3.14 - @wordpress/edit-widgets@4.3.14 - @wordpress/editor@12.5.10 - @wordpress/format-library@3.4.10 - @wordpress/reusable-blocks@3.4.10 - @wordpress/widgets@2.4.10 Props SergeyBiryukov. Fixes #56414. Built from https://develop.svn.wordpress.org/trunk@53929 git-svn-id: http://core.svn.wordpress.org/trunk@53488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
08f5675e1c
commit
972e7f2a95
File diff suppressed because one or more lines are too long
@ -44,23 +44,15 @@ function render_block_core_post_template( $attributes, $content, $block ) {
|
|||||||
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
|
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
|
||||||
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
|
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
|
||||||
|
|
||||||
$query_args = build_query_vars_from_query_block( $block, $page );
|
// Use global query if needed.
|
||||||
// Override the custom query with the global query if needed.
|
|
||||||
$use_global_query = ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] );
|
$use_global_query = ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] );
|
||||||
if ( $use_global_query ) {
|
if ( $use_global_query ) {
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
if ( $wp_query && isset( $wp_query->query_vars ) && is_array( $wp_query->query_vars ) ) {
|
$query = clone $wp_query;
|
||||||
// Unset `offset` because if is set, $wp_query overrides/ignores the paged parameter and breaks pagination.
|
} else {
|
||||||
unset( $query_args['offset'] );
|
$query_args = build_query_vars_from_query_block( $block, $page );
|
||||||
$query_args = wp_parse_args( $wp_query->query_vars, $query_args );
|
|
||||||
|
|
||||||
if ( empty( $query_args['post_type'] ) && is_singular() ) {
|
|
||||||
$query_args['post_type'] = get_post_type( get_the_ID() );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$query = new WP_Query( $query_args );
|
$query = new WP_Query( $query_args );
|
||||||
|
}
|
||||||
|
|
||||||
if ( ! $query->have_posts() ) {
|
if ( ! $query->have_posts() ) {
|
||||||
return '';
|
return '';
|
||||||
@ -107,6 +99,11 @@ function render_block_core_post_template( $attributes, $content, $block ) {
|
|||||||
$content .= '<li class="' . esc_attr( $post_classes ) . '">' . $block_content . '</li>';
|
$content .= '<li class="' . esc_attr( $post_classes ) . '">' . $block_content . '</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Use this function to restore the context of the template tags
|
||||||
|
* from a secondary query loop back to the main query loop.
|
||||||
|
* Since we use two custom loops, it's safest to always restore.
|
||||||
|
*/
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
|
|
||||||
return sprintf(
|
return sprintf(
|
||||||
|
@ -21,22 +21,24 @@ function render_block_core_query_no_results( $attributes, $content, $block ) {
|
|||||||
|
|
||||||
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
|
$page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page';
|
||||||
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
|
$page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ];
|
||||||
$query_args = build_query_vars_from_query_block( $block, $page );
|
|
||||||
// Override the custom query with the global query if needed.
|
// Override the custom query with the global query if needed.
|
||||||
$use_global_query = ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] );
|
$use_global_query = ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] );
|
||||||
if ( $use_global_query ) {
|
if ( $use_global_query ) {
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
if ( $wp_query && isset( $wp_query->query_vars ) && is_array( $wp_query->query_vars ) ) {
|
$query = $wp_query;
|
||||||
$query_args = wp_parse_args( $wp_query->query_vars, $query_args );
|
} else {
|
||||||
}
|
$query_args = build_query_vars_from_query_block( $block, $page );
|
||||||
}
|
|
||||||
$query = new WP_Query( $query_args );
|
$query = new WP_Query( $query_args );
|
||||||
|
}
|
||||||
|
|
||||||
if ( $query->have_posts() ) {
|
if ( $query->have_posts() ) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( ! $use_global_query ) {
|
||||||
wp_reset_postdata();
|
wp_reset_postdata();
|
||||||
|
}
|
||||||
|
|
||||||
return sprintf(
|
return sprintf(
|
||||||
'<div %1$s>%2$s</div>',
|
'<div %1$s>%2$s</div>',
|
||||||
|
@ -1375,6 +1375,12 @@
|
|||||||
.block-editor-block-styles__variants .block-editor-block-styles__item.is-active:focus {
|
.block-editor-block-styles__variants .block-editor-block-styles__item.is-active:focus {
|
||||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px var(--wp-admin-theme-color);
|
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px var(--wp-admin-theme-color);
|
||||||
}
|
}
|
||||||
|
.block-editor-block-styles__variants .block-editor-block-styles__item-text {
|
||||||
|
word-break: break-all;
|
||||||
|
white-space: normal;
|
||||||
|
text-align: start;
|
||||||
|
text-align-last: center;
|
||||||
|
}
|
||||||
|
|
||||||
.block-editor-block-styles__block-preview-container,
|
.block-editor-block-styles__block-preview-container,
|
||||||
.block-editor-block-styles__block-preview-container * {
|
.block-editor-block-styles__block-preview-container * {
|
||||||
|
File diff suppressed because one or more lines are too long
6
wp-includes/css/dist/block-editor/style.css
vendored
6
wp-includes/css/dist/block-editor/style.css
vendored
@ -1375,6 +1375,12 @@
|
|||||||
.block-editor-block-styles__variants .block-editor-block-styles__item.is-active:focus {
|
.block-editor-block-styles__variants .block-editor-block-styles__item.is-active:focus {
|
||||||
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px var(--wp-admin-theme-color);
|
box-shadow: inset 0 0 0 1px #fff, 0 0 0 2px var(--wp-admin-theme-color);
|
||||||
}
|
}
|
||||||
|
.block-editor-block-styles__variants .block-editor-block-styles__item-text {
|
||||||
|
word-break: break-all;
|
||||||
|
white-space: normal;
|
||||||
|
text-align: start;
|
||||||
|
text-align-last: center;
|
||||||
|
}
|
||||||
|
|
||||||
.block-editor-block-styles__block-preview-container,
|
.block-editor-block-styles__block-preview-container,
|
||||||
.block-editor-block-styles__block-preview-container * {
|
.block-editor-block-styles__block-preview-container * {
|
||||||
|
File diff suppressed because one or more lines are too long
76
wp-includes/js/dist/block-editor.js
vendored
76
wp-includes/js/dist/block-editor.js
vendored
@ -13469,9 +13469,9 @@ let findTimeout = time => ~(~timeouts.findIndex(t => t.time > time) || ~timeouts
|
|||||||
raf.cancel = fn => {
|
raf.cancel = fn => {
|
||||||
onStartQueue.delete(fn);
|
onStartQueue.delete(fn);
|
||||||
onFrameQueue.delete(fn);
|
onFrameQueue.delete(fn);
|
||||||
|
onFinishQueue.delete(fn);
|
||||||
updateQueue.delete(fn);
|
updateQueue.delete(fn);
|
||||||
writeQueue.delete(fn);
|
writeQueue.delete(fn);
|
||||||
onFinishQueue.delete(fn);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
raf.sync = fn => {
|
raf.sync = fn => {
|
||||||
@ -13570,15 +13570,16 @@ function update() {
|
|||||||
pendingCount -= count;
|
pendingCount -= count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!pendingCount) {
|
||||||
|
stop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
onStartQueue.flush();
|
onStartQueue.flush();
|
||||||
updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
|
updateQueue.flush(prevTs ? Math.min(64, ts - prevTs) : 16.667);
|
||||||
onFrameQueue.flush();
|
onFrameQueue.flush();
|
||||||
writeQueue.flush();
|
writeQueue.flush();
|
||||||
onFinishQueue.flush();
|
onFinishQueue.flush();
|
||||||
|
|
||||||
if (!pendingCount) {
|
|
||||||
stop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeQueue() {
|
function makeQueue() {
|
||||||
@ -13650,7 +13651,6 @@ var external_React_default = /*#__PURE__*/__webpack_require__.n(external_React_)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function noop() {}
|
function noop() {}
|
||||||
const defineHidden = (obj, key, value) => Object.defineProperty(obj, key, {
|
const defineHidden = (obj, key, value) => Object.defineProperty(obj, key, {
|
||||||
value,
|
value,
|
||||||
@ -14344,11 +14344,11 @@ function isAnimatedString(value) {
|
|||||||
return react_spring_shared_esm_is.str(value) && (value[0] == '#' || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
return react_spring_shared_esm_is.str(value) && (value[0] == '#' || /\d/.test(value) || !isSSR() && cssVariableRegex.test(value) || value in (colors$1 || {}));
|
||||||
}
|
}
|
||||||
|
|
||||||
const react_spring_shared_esm_useLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? external_React_.useLayoutEffect : external_React_.useEffect;
|
const react_spring_shared_esm_useIsomorphicLayoutEffect = isSSR() ? external_React_.useEffect : external_React_.useLayoutEffect;
|
||||||
|
|
||||||
const useIsMounted = () => {
|
const useIsMounted = () => {
|
||||||
const isMounted = (0,external_React_.useRef)(false);
|
const isMounted = (0,external_React_.useRef)(false);
|
||||||
react_spring_shared_esm_useLayoutEffect(() => {
|
react_spring_shared_esm_useIsomorphicLayoutEffect(() => {
|
||||||
isMounted.current = true;
|
isMounted.current = true;
|
||||||
return () => {
|
return () => {
|
||||||
isMounted.current = false;
|
isMounted.current = false;
|
||||||
@ -14424,6 +14424,27 @@ function react_spring_shared_esm_usePrev(value) {
|
|||||||
return prevRef.current;
|
return prevRef.current;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const useReducedMotion = () => {
|
||||||
|
const [reducedMotion, setReducedMotion] = useState(null);
|
||||||
|
react_spring_shared_esm_useIsomorphicLayoutEffect(() => {
|
||||||
|
const mql = window.matchMedia('(prefers-reduced-motion)');
|
||||||
|
|
||||||
|
const handleMediaChange = e => {
|
||||||
|
setReducedMotion(e.matches);
|
||||||
|
react_spring_shared_esm_assign({
|
||||||
|
skipAnimation: e.matches
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
|
handleMediaChange(mql);
|
||||||
|
mql.addEventListener('change', handleMediaChange);
|
||||||
|
return () => {
|
||||||
|
mql.removeEventListener('change', handleMediaChange);
|
||||||
|
};
|
||||||
|
}, []);
|
||||||
|
return reducedMotion;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@react-spring/animated/dist/react-spring-animated.esm.js
|
;// CONCATENATED MODULE: ./node_modules/@react-spring/animated/dist/react-spring-animated.esm.js
|
||||||
@ -14701,7 +14722,7 @@ const withAnimated = (Component, host) => {
|
|||||||
|
|
||||||
const observer = new PropsObserver(callback, deps);
|
const observer = new PropsObserver(callback, deps);
|
||||||
const observerRef = (0,external_React_.useRef)();
|
const observerRef = (0,external_React_.useRef)();
|
||||||
react_spring_shared_esm_useLayoutEffect(() => {
|
react_spring_shared_esm_useIsomorphicLayoutEffect(() => {
|
||||||
observerRef.current = observer;
|
observerRef.current = observer;
|
||||||
react_spring_shared_esm_each(deps, dep => addFluidObserver(dep, observer));
|
react_spring_shared_esm_each(deps, dep => addFluidObserver(dep, observer));
|
||||||
return () => {
|
return () => {
|
||||||
@ -14949,7 +14970,7 @@ function replaceRef(ctrl, ref) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function useChain(refs, timeSteps, timeFrame = 1000) {
|
function useChain(refs, timeSteps, timeFrame = 1000) {
|
||||||
useLayoutEffect(() => {
|
useIsomorphicLayoutEffect(() => {
|
||||||
if (timeSteps) {
|
if (timeSteps) {
|
||||||
let prevDelay = 0;
|
let prevDelay = 0;
|
||||||
each(refs, (ref, i) => {
|
each(refs, (ref, i) => {
|
||||||
@ -16795,7 +16816,7 @@ function useSprings(length, props, deps) {
|
|||||||
const context = (0,external_React_.useContext)(SpringContext);
|
const context = (0,external_React_.useContext)(SpringContext);
|
||||||
const prevContext = react_spring_shared_esm_usePrev(context);
|
const prevContext = react_spring_shared_esm_usePrev(context);
|
||||||
const hasContext = context !== prevContext && hasProps(context);
|
const hasContext = context !== prevContext && hasProps(context);
|
||||||
react_spring_shared_esm_useLayoutEffect(() => {
|
react_spring_shared_esm_useIsomorphicLayoutEffect(() => {
|
||||||
layoutId.current++;
|
layoutId.current++;
|
||||||
state.ctrls = ctrls.current;
|
state.ctrls = ctrls.current;
|
||||||
const {
|
const {
|
||||||
@ -16860,7 +16881,7 @@ function useTrail(length, propsArg, deps) {
|
|||||||
return props;
|
return props;
|
||||||
}, deps || [{}]);
|
}, deps || [{}]);
|
||||||
const ref = (_passedRef = passedRef) != null ? _passedRef : result[1];
|
const ref = (_passedRef = passedRef) != null ? _passedRef : result[1];
|
||||||
useLayoutEffect(() => {
|
useIsomorphicLayoutEffect(() => {
|
||||||
each(ref.current, (ctrl, i) => {
|
each(ref.current, (ctrl, i) => {
|
||||||
const parent = ref.current[i + (reverse ? 1 : -1)];
|
const parent = ref.current[i + (reverse ? 1 : -1)];
|
||||||
|
|
||||||
@ -16934,19 +16955,13 @@ function useTransition(data, props, deps) {
|
|||||||
const transitions = [];
|
const transitions = [];
|
||||||
const usedTransitions = useRef(null);
|
const usedTransitions = useRef(null);
|
||||||
const prevTransitions = reset ? null : usedTransitions.current;
|
const prevTransitions = reset ? null : usedTransitions.current;
|
||||||
useLayoutEffect(() => {
|
useIsomorphicLayoutEffect(() => {
|
||||||
usedTransitions.current = transitions;
|
usedTransitions.current = transitions;
|
||||||
});
|
});
|
||||||
useOnce(() => {
|
useOnce(() => {
|
||||||
each(usedTransitions.current, t => {
|
each(transitions, t => {
|
||||||
var _t$ctrl$ref;
|
ref == null ? void 0 : ref.add(t.ctrl);
|
||||||
|
t.ctrl.ref = ref;
|
||||||
(_t$ctrl$ref = t.ctrl.ref) == null ? void 0 : _t$ctrl$ref.add(t.ctrl);
|
|
||||||
const change = changes.get(t);
|
|
||||||
|
|
||||||
if (change) {
|
|
||||||
t.ctrl.start(change.payload);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
return () => {
|
return () => {
|
||||||
each(usedTransitions.current, t => {
|
each(usedTransitions.current, t => {
|
||||||
@ -16961,7 +16976,7 @@ function useTransition(data, props, deps) {
|
|||||||
});
|
});
|
||||||
const keys = getKeys(items, propsFn ? propsFn() : props, prevTransitions);
|
const keys = getKeys(items, propsFn ? propsFn() : props, prevTransitions);
|
||||||
const expired = reset && usedTransitions.current || [];
|
const expired = reset && usedTransitions.current || [];
|
||||||
useLayoutEffect(() => each(expired, ({
|
useIsomorphicLayoutEffect(() => each(expired, ({
|
||||||
ctrl,
|
ctrl,
|
||||||
item,
|
item,
|
||||||
key
|
key
|
||||||
@ -17135,7 +17150,7 @@ function useTransition(data, props, deps) {
|
|||||||
const context = useContext(SpringContext);
|
const context = useContext(SpringContext);
|
||||||
const prevContext = usePrev(context);
|
const prevContext = usePrev(context);
|
||||||
const hasContext = context !== prevContext && hasProps(context);
|
const hasContext = context !== prevContext && hasProps(context);
|
||||||
useLayoutEffect(() => {
|
useIsomorphicLayoutEffect(() => {
|
||||||
if (hasContext) {
|
if (hasContext) {
|
||||||
each(transitions, t => {
|
each(transitions, t => {
|
||||||
t.ctrl.start({
|
t.ctrl.start({
|
||||||
@ -17150,7 +17165,7 @@ function useTransition(data, props, deps) {
|
|||||||
transitions.splice(ind, 1);
|
transitions.splice(ind, 1);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
useLayoutEffect(() => {
|
useIsomorphicLayoutEffect(() => {
|
||||||
each(exitingTransitions.current.size ? exitingTransitions.current : changes, ({
|
each(exitingTransitions.current.size ? exitingTransitions.current : changes, ({
|
||||||
phase,
|
phase,
|
||||||
payload
|
payload
|
||||||
@ -17170,7 +17185,7 @@ function useTransition(data, props, deps) {
|
|||||||
if (payload) {
|
if (payload) {
|
||||||
replaceRef(ctrl, payload.ref);
|
replaceRef(ctrl, payload.ref);
|
||||||
|
|
||||||
if (ctrl.ref && !forceChange.current) {
|
if ((ctrl.ref || ref) && !forceChange.current) {
|
||||||
ctrl.update(payload);
|
ctrl.update(payload);
|
||||||
} else {
|
} else {
|
||||||
ctrl.start(payload);
|
ctrl.start(payload);
|
||||||
@ -40225,12 +40240,9 @@ function BlockStyles(_ref3) {
|
|||||||
onClick: () => onSelectStylePreview(style),
|
onClick: () => onSelectStylePreview(style),
|
||||||
role: "button",
|
role: "button",
|
||||||
tabIndex: "0"
|
tabIndex: "0"
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalText, {
|
}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalTruncate, {
|
||||||
as: "span",
|
numberOfLines: 1,
|
||||||
limit: 12,
|
className: "block-editor-block-styles__item-text"
|
||||||
ellipsizeMode: "tail",
|
|
||||||
className: "block-editor-block-styles__item-text",
|
|
||||||
truncate: true
|
|
||||||
}, buttonText));
|
}, buttonText));
|
||||||
})), hoveredStyle && !isMobileViewport && (0,external_wp_element_namespaceObject.createElement)(BlockStylesPreviewPanelFill, {
|
})), hoveredStyle && !isMobileViewport && (0,external_wp_element_namespaceObject.createElement)(BlockStylesPreviewPanelFill, {
|
||||||
scope: scope,
|
scope: scope,
|
||||||
|
2
wp-includes/js/dist/block-editor.min.js
vendored
2
wp-includes/js/dist/block-editor.min.js
vendored
File diff suppressed because one or more lines are too long
50
wp-includes/js/dist/block-library.js
vendored
50
wp-includes/js/dist/block-library.js
vendored
@ -35329,6 +35329,38 @@ function TaxonomyControls(_ref) {
|
|||||||
|
|
||||||
/* harmony default export */ var taxonomy_controls = (TaxonomyControls);
|
/* harmony default export */ var taxonomy_controls = (TaxonomyControls);
|
||||||
|
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/sticky-control.js
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WordPress dependencies
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
const stickyOptions = [{
|
||||||
|
label: (0,external_wp_i18n_namespaceObject.__)('Include'),
|
||||||
|
value: ''
|
||||||
|
}, {
|
||||||
|
label: (0,external_wp_i18n_namespaceObject.__)('Exclude'),
|
||||||
|
value: 'exclude'
|
||||||
|
}, {
|
||||||
|
label: (0,external_wp_i18n_namespaceObject.__)('Only'),
|
||||||
|
value: 'only'
|
||||||
|
}];
|
||||||
|
function StickyControl(_ref) {
|
||||||
|
let {
|
||||||
|
value,
|
||||||
|
onChange
|
||||||
|
} = _ref;
|
||||||
|
return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
|
||||||
|
label: (0,external_wp_i18n_namespaceObject.__)('Sticky posts'),
|
||||||
|
options: stickyOptions,
|
||||||
|
value: value,
|
||||||
|
onChange: onChange,
|
||||||
|
help: (0,external_wp_i18n_namespaceObject.__)('Blog posts can be "stickied", a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/index.js
|
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/query/edit/inspector-controls/index.js
|
||||||
|
|
||||||
|
|
||||||
@ -35352,16 +35384,7 @@ function TaxonomyControls(_ref) {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
const stickyOptions = [{
|
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Include'),
|
|
||||||
value: ''
|
|
||||||
}, {
|
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Exclude'),
|
|
||||||
value: 'exclude'
|
|
||||||
}, {
|
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Only'),
|
|
||||||
value: 'only'
|
|
||||||
}];
|
|
||||||
function QueryInspectorControls(_ref) {
|
function QueryInspectorControls(_ref) {
|
||||||
let {
|
let {
|
||||||
attributes: {
|
attributes: {
|
||||||
@ -35456,14 +35479,11 @@ function QueryInspectorControls(_ref) {
|
|||||||
order,
|
order,
|
||||||
orderBy,
|
orderBy,
|
||||||
onChange: setQuery
|
onChange: setQuery
|
||||||
}), showSticky && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, {
|
}), !inherit && showSticky && (0,external_wp_element_namespaceObject.createElement)(StickyControl, {
|
||||||
label: (0,external_wp_i18n_namespaceObject.__)('Sticky posts'),
|
|
||||||
options: stickyOptions,
|
|
||||||
value: sticky,
|
value: sticky,
|
||||||
onChange: value => setQuery({
|
onChange: value => setQuery({
|
||||||
sticky: value
|
sticky: value
|
||||||
}),
|
})
|
||||||
help: (0,external_wp_i18n_namespaceObject.__)('Blog posts can be "stickied", a feature that places them at the top of the front page of posts, keeping it there until new sticky posts are published.')
|
|
||||||
})), !inherit && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
|
})), !inherit && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, {
|
||||||
title: (0,external_wp_i18n_namespaceObject.__)('Filters')
|
title: (0,external_wp_i18n_namespaceObject.__)('Filters')
|
||||||
}, (0,external_wp_element_namespaceObject.createElement)(taxonomy_controls, {
|
}, (0,external_wp_element_namespaceObject.createElement)(taxonomy_controls, {
|
||||||
|
2
wp-includes/js/dist/block-library.min.js
vendored
2
wp-includes/js/dist/block-library.min.js
vendored
File diff suppressed because one or more lines are too long
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-53927';
|
$wp_version = '6.1-alpha-53929';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user