Skip to content

Commit

Permalink
Editor: Update packages for 6.6 RC 4.
Browse files Browse the repository at this point in the history
This package update includes only one revert PR:

WordPress/gutenberg#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: https://core.svn.wordpress.org/trunk@58121 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ellatrix committed Jul 15, 2024
1 parent 08837a6 commit 9e913a7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion wp-includes/assets/script-loader-packages.min.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/assets/script-loader-packages.php

Large diffs are not rendered by default.

18 changes: 5 additions & 13 deletions wp-includes/js/dist/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -13920,7 +13920,6 @@ function PublishButtonLabel() {




const post_publish_button_noop = () => {};
class PostPublishButton extends external_wp_element_namespaceObject.Component {
constructor(props) {
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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(),
Expand All @@ -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 => {
Expand Down Expand Up @@ -24093,7 +24086,6 @@ function ListViewSidebar() {




const {
Fill: save_publish_panels_Fill,
Slot: save_publish_panels_Slot
Expand Down Expand Up @@ -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(),
Expand Down
4 changes: 2 additions & 2 deletions wp-includes/js/dist/editor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-includes/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @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.
Expand Down

0 comments on commit 9e913a7

Please sign in to comment.