-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherry Pick changes for WordPress 6.5 RC3 #59949
Commits on Mar 18, 2024
-
Prevent default on primary+k to prevent command center from opening (#…
…59845) The command center shortcut checks for defaultPrevented to see if it should open or not. To prevent the command center from opening, we need to add event.preventDefault when primary+k is used.
Configuration menu - View commit details
-
Copy full SHA for 31ac517 - Browse repository at this point
Copy the full SHA 31ac517View commit details -
Ensure consistent return type in `WP_Navigation_Block_Renderer::get_m…
Configuration menu - View commit details
-
Copy full SHA for ad56431 - Browse repository at this point
Copy the full SHA ad56431View commit details -
Do not focus new navigation block menu until loading is finished (#59801
) * Do not focus navigation block until loading is finished When a new navigation is created, we place focus on the navigation block. If we place focus while loading is still happening, focus will be lost when focus the loading is finished and the block gets replaced with the new content. * Nest loading state inside of navigation ref Instead of replacing the navigation block after loading, only replace the inside part of it so that focus is not lost * Add coverage for focus loss on menu creation * select the navigatiom after import in an effect similar to the method used when creating a menu, this way the select block call is later and the focus is maintained * remove extraneous dependency causing err on delete newly created menus * Update test to not determine link control behavior * No need to return await inside an async function as it will always return a Promise Co-authored-by: Dave Smith <[email protected]> --------- Co-authored-by: Andrei Draganescu <[email protected]> Co-authored-by: Dave Smith <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1d93d98 - Browse repository at this point
Copy the full SHA 1d93d98View commit details -
Interactivity: Ensure stores are initialized on client (#59842)
If a store call happens after interactivity has hydrated, subscriptions may not be made correctly which means that when a store is later added, the subscriptions do not exist and the client will not update. This is undesirable. We fix this by creating empty stores during directive resolution, ensuring subscriptions can be made so that subsequent store changes will update the client.
Configuration menu - View commit details
-
Copy full SHA for c0b82c4 - Browse repository at this point
Copy the full SHA c0b82c4View commit details -
Block Hooks: Return early from saving meta data for the navigation wi…
…thout a $post->ID (#59875) Co-authored-by: Bernie Reiter <[email protected]> Co-authored-by: Hugo Drelon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ce4250a - Browse repository at this point
Copy the full SHA ce4250aView commit details -
Interactivity API: Prevent non-object state from being added (#59886)
Ensure that `state` is an object when creating a store for a given namespace. `store.state` is expected to be an object. There is code that prevents state from being updated if it is not an object, but it's possible to set the state to a non-object initially, which breaks subsequent updates. Co-authored-by: sirreal <[email protected]> Co-authored-by: DAreRodz <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6421202 - Browse repository at this point
Copy the full SHA 6421202View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14fef7b - Browse repository at this point
Copy the full SHA 14fef7bView commit details -
Heading Block: Show default block name in list view when content is e…
…mpty (#59827) Co-authored-by: t-hamano <[email protected]> Co-authored-by: Mamaduka <[email protected]> Co-authored-by: andrewserong <[email protected]> Co-authored-by: getdave <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c20a56d - Browse repository at this point
Copy the full SHA c20a56dView commit details -
Font Library: fix JS errors when activating or deactivating system fo…
…nts (#59935) Co-authored-by: creativecoder <[email protected]> Co-authored-by: madhusudhand <[email protected]> Co-authored-by: mikachan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e4337f2 - Browse repository at this point
Copy the full SHA e4337f2View commit details