mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +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/ Reviewed by ellatrix, audrasjb. Merges [58719] to the 6.6 branch. Fixes #61654. Props santosguillamot. Built from https://develop.svn.wordpress.org/branches/6.6@58720 git-svn-id: http://core.svn.wordpress.org/branches/6.6@58122 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
74381dbbc2
commit
83e01e562b
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 = () => {};
|
||||
class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
||||
constructor(props) {
|
||||
@ -13949,18 +13948,14 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
||||
return (...args) => {
|
||||
const {
|
||||
hasNonPostEntityChanges,
|
||||
hasPostMetaChanges,
|
||||
setEntitiesSavedStatesCallback,
|
||||
isPublished
|
||||
setEntitiesSavedStatesCallback
|
||||
} = this.props;
|
||||
// If a post with non-post entities is published, but the user
|
||||
// elects to not save changes to the non-post entities, those
|
||||
// entities will still be dirty when the Publish button is clicked.
|
||||
// We also need to check that the `setEntitiesSavedStatesCallback`
|
||||
// prop was passed. See https://github.com/WordPress/gutenberg/pull/37383
|
||||
//
|
||||
// TODO: Explore how to manage `hasPostMetaChanges` and pre-publish workflow properly.
|
||||
if ((hasNonPostEntityChanges || hasPostMetaChanges && isPublished) && setEntitiesSavedStatesCallback) {
|
||||
if (hasNonPostEntityChanges && setEntitiesSavedStatesCallback) {
|
||||
// The modal for multiple entity saving will open,
|
||||
// hold the callback for saving/publishing the post
|
||||
// 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,
|
||||
isSavingNonPostEntityChanges,
|
||||
getEditedPostAttribute,
|
||||
getPostEdits,
|
||||
hasPostMetaChanges
|
||||
} = unlock(select(store_store));
|
||||
getPostEdits
|
||||
} = select(store_store);
|
||||
return {
|
||||
isSaving: isSavingPost(),
|
||||
isAutoSaving: isAutosavingPost(),
|
||||
@ -14112,7 +14106,6 @@ class PostPublishButton extends external_wp_element_namespaceObject.Component {
|
||||
postStatus: getEditedPostAttribute('status'),
|
||||
postStatusHasChanged: getPostEdits()?.status,
|
||||
hasNonPostEntityChanges: hasNonPostEntityChanges(),
|
||||
hasPostMetaChanges: hasPostMetaChanges(),
|
||||
isSavingNonPostEntityChanges: isSavingNonPostEntityChanges()
|
||||
};
|
||||
}), (0,external_wp_data_namespaceObject.withDispatch)(dispatch => {
|
||||
@ -24093,7 +24086,6 @@ function ListViewSidebar() {
|
||||
|
||||
|
||||
|
||||
|
||||
const {
|
||||
Fill: save_publish_panels_Fill,
|
||||
Slot: save_publish_panels_Slot
|
||||
@ -24122,7 +24114,7 @@ function SavePublishPanels({
|
||||
isEditedPostDirty,
|
||||
hasNonPostEntityChanges
|
||||
} = select(store_store);
|
||||
const _hasOtherEntitiesChanges = hasNonPostEntityChanges() || unlock(select(store_store)).hasPostMetaChanges();
|
||||
const _hasOtherEntitiesChanges = hasNonPostEntityChanges();
|
||||
return {
|
||||
publishSidebarOpened: isPublishSidebarOpened(),
|
||||
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
|
||||
*/
|
||||
$wp_version = '6.6-RC3-58711';
|
||||
$wp_version = '6.6-RC3-58720';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user