mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Editor: Update packages for 6.6 RC 4.
This package update includes only one revert PR: https://github.com/WordPress/gutenberg/pull/63412 You can confirm the changes in this package update here: https://github.com/WordPress/gutenberg/commits/wp/6.6/ Fixes #61654. Props santosguillamot. Built from https://develop.svn.wordpress.org/trunk@58719 git-svn-id: http://core.svn.wordpress.org/trunk@58121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5d4375f46f
commit
2f9ff5ebe6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
18
wp-includes/js/dist/editor.js
vendored
18
wp-includes/js/dist/editor.js
vendored
@ -13920,7 +13920,6 @@ function PublishButtonLabel() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const post_publish_button_noop = () => {};
|
const post_publish_button_noop = () => {};
|
||||||
class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
@ -13949,18 +13948,14 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
|||||||
return (...args) => {
|
return (...args) => {
|
||||||
const {
|
const {
|
||||||
hasNonPostEntityChanges,
|
hasNonPostEntityChanges,
|
||||||
hasPostMetaChanges,
|
setEntitiesSavedStatesCallback
|
||||||
setEntitiesSavedStatesCallback,
|
|
||||||
isPublished
|
|
||||||
} = this.props;
|
} = this.props;
|
||||||
// If a post with non-post entities is published, but the user
|
// If a post with non-post entities is published, but the user
|
||||||
// elects to not save changes to the non-post entities, those
|
// elects to not save changes to the non-post entities, those
|
||||||
// entities will still be dirty when the Publish button is clicked.
|
// entities will still be dirty when the Publish button is clicked.
|
||||||
// We also need to check that the `setEntitiesSavedStatesCallback`
|
// We also need to check that the `setEntitiesSavedStatesCallback`
|
||||||
// prop was passed. See https://github.com/WordPress/gutenberg/pull/37383
|
// prop was passed. See https://github.com/WordPress/gutenberg/pull/37383
|
||||||
//
|
if (hasNonPostEntityChanges && setEntitiesSavedStatesCallback) {
|
||||||
// TODO: Explore how to manage `hasPostMetaChanges` and pre-publish workflow properly.
|
|
||||||
if ((hasNonPostEntityChanges || hasPostMetaChanges && isPublished) && setEntitiesSavedStatesCallback) {
|
|
||||||
// The modal for multiple entity saving will open,
|
// The modal for multiple entity saving will open,
|
||||||
// hold the callback for saving/publishing the post
|
// hold the callback for saving/publishing the post
|
||||||
// so that we can call it if the post entity is checked.
|
// so that we can call it if the post entity is checked.
|
||||||
@ -14094,9 +14089,8 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
|||||||
hasNonPostEntityChanges,
|
hasNonPostEntityChanges,
|
||||||
isSavingNonPostEntityChanges,
|
isSavingNonPostEntityChanges,
|
||||||
getEditedPostAttribute,
|
getEditedPostAttribute,
|
||||||
getPostEdits,
|
getPostEdits
|
||||||
hasPostMetaChanges
|
} = select(store_store);
|
||||||
} = unlock(select(store_store));
|
|
||||||
return {
|
return {
|
||||||
isSaving: isSavingPost(),
|
isSaving: isSavingPost(),
|
||||||
isAutoSaving: isAutosavingPost(),
|
isAutoSaving: isAutosavingPost(),
|
||||||
@ -14112,7 +14106,6 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
|||||||
postStatus: getEditedPostAttribute('status'),
|
postStatus: getEditedPostAttribute('status'),
|
||||||
postStatusHasChanged: getPostEdits()?.status,
|
postStatusHasChanged: getPostEdits()?.status,
|
||||||
hasNonPostEntityChanges: hasNonPostEntityChanges(),
|
hasNonPostEntityChanges: hasNonPostEntityChanges(),
|
||||||
hasPostMetaChanges: hasPostMetaChanges(),
|
|
||||||
isSavingNonPostEntityChanges: isSavingNonPostEntityChanges()
|
isSavingNonPostEntityChanges: isSavingNonPostEntityChanges()
|
||||||
};
|
};
|
||||||
}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
|
}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
|
||||||
@ -24093,7 +24086,6 @@ function ListViewSidebar() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
Fill: save_publish_panels_Fill,
|
Fill: save_publish_panels_Fill,
|
||||||
Slot: save_publish_panels_Slot
|
Slot: save_publish_panels_Slot
|
||||||
@ -24122,7 +24114,7 @@ function SavePublishPanels({
|
|||||||
isEditedPostDirty,
|
isEditedPostDirty,
|
||||||
hasNonPostEntityChanges
|
hasNonPostEntityChanges
|
||||||
} = select(store_store);
|
} = select(store_store);
|
||||||
const _hasOtherEntitiesChanges = hasNonPostEntityChanges() || unlock(select(store_store)).hasPostMetaChanges();
|
const _hasOtherEntitiesChanges = hasNonPostEntityChanges();
|
||||||
return {
|
return {
|
||||||
publishSidebarOpened: isPublishSidebarOpened(),
|
publishSidebarOpened: isPublishSidebarOpened(),
|
||||||
isPublishable: !isCurrentPostPublished() && isEditedPostPublishable(),
|
isPublishable: !isCurrentPostPublished() && isEditedPostPublishable(),
|
||||||
|
4
wp-includes/js/dist/editor.min.js
vendored
4
wp-includes/js/dist/editor.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.7-alpha-58718';
|
$wp_version = '6.7-alpha-58719';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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