Skip to content

Commit

Permalink
Merge branch 'WordPress:trunk' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
miminari authored Oct 31, 2023
2 parents 08af3a4 + cb6227a commit 1521df5
Show file tree
Hide file tree
Showing 57 changed files with 3,185 additions and 373 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rnmobile-ios-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
xcode: ['14.2']
device: ['iPhone 13']
device: ['iPhone 14']
native-test-name: [gutenberg-editor-rendering]

steps:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/upload-release-to-plugin-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ jobs:
svn st | grep '^?' | awk '{print $2}' | xargs -r svn add
svn st | grep '^!' | awk '{print $2}' | xargs -r svn rm
svn commit -m "Committing version $VERSION" \
--no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
--no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" \
--config-option=servers:global:http-timeout=300
- name: Create the SVN tag
working-directory: ./trunk
Expand Down Expand Up @@ -254,4 +255,5 @@ jobs:
- name: Add the new version directory and commit changes to the SVN repository
run: |
svn import "$VERSION" "$PLUGIN_REPO_URL/tags/$VERSION" -m "Committing version $VERSION" \
--no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD"
--no-auth-cache --non-interactive --username "$SVN_USERNAME" --password "$SVN_PASSWORD" \
--config-option=servers:global:http-timeout=300
42 changes: 21 additions & 21 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
== Changelog ==

= 16.9.0-rc.1 =
= 16.9.0 =

## Changelog

### Features

#### Create Block
- [Create Block] Introduce the transformer property. ([55423](https://github.com/WordPress/gutenberg/pull/55423))
- Introduce the transformer property. ([55423](https://github.com/WordPress/gutenberg/pull/55423))

#### Data Views
- Enable users to sort by `date`. ([55388](https://github.com/WordPress/gutenberg/pull/55388))
Expand Down Expand Up @@ -53,7 +53,7 @@
- Remove 16:10 from 10:16 options from AspectRatioDropdown. ([55053](https://github.com/WordPress/gutenberg/pull/55053))

#### Data Views
- [Data Views]: Add drop down with action in headers. ([55293](https://github.com/WordPress/gutenberg/pull/55293))
- Add drop down with action in headers. ([55293](https://github.com/WordPress/gutenberg/pull/55293))

#### Icons
- Update fullscreen icon. ([55021](https://github.com/WordPress/gutenberg/pull/55021))
Expand All @@ -74,7 +74,7 @@
### Bug Fixes

#### Block Library
- Bug: PHP notice when an image with lightbox is deleted. ([55370](https://github.com/WordPress/gutenberg/pull/55370))
- PHP notice when an image with lightbox is deleted. ([55370](https://github.com/WordPress/gutenberg/pull/55370))
- Cover Block: Check for previously uploaded media before setting the dimRatio. ([55422](https://github.com/WordPress/gutenberg/pull/55422))
- Cover: Fix media type check in the onSelectMedia hook. ([55168](https://github.com/WordPress/gutenberg/pull/55168))
- Fix Block Rename UI perf regression. ([55250](https://github.com/WordPress/gutenberg/pull/55250))
Expand All @@ -95,7 +95,6 @@
- Remove duplicate template areas from the site view sidebar. ([54942](https://github.com/WordPress/gutenberg/pull/54942))
- Site Editor Styles Screen: Fix dancing styles previews. ([55183](https://github.com/WordPress/gutenberg/pull/55183))
- Use `accessorFn` instead of `cell` to render `status`. ([55196](https://github.com/WordPress/gutenberg/pull/55196))
- [Data views]: Make `date` header translatable. ([55445](https://github.com/WordPress/gutenberg/pull/55445))

#### Interactivity API
- Add `aria-label` attribute to navigation block only when it is open. ([54816](https://github.com/WordPress/gutenberg/pull/54816))
Expand Down Expand Up @@ -128,7 +127,8 @@
#### Data Views
- Add linked title fallback. ([55248](https://github.com/WordPress/gutenberg/pull/55248))
- PagePages: Fix unintended object mutation inside component. ([55314](https://github.com/WordPress/gutenberg/pull/55314))
- [Data views]: Fix pagination. ([55387](https://github.com/WordPress/gutenberg/pull/55387))
- Fix pagination. ([55387](https://github.com/WordPress/gutenberg/pull/55387))
- Make `date` header translatable. ([55445](https://github.com/WordPress/gutenberg/pull/55445))

#### Patterns
- Add category selector to pattern creation modal. ([55024](https://github.com/WordPress/gutenberg/pull/55024))
Expand All @@ -141,7 +141,7 @@
- Only suppress admin notices when JavaScript is enabled. ([55403](https://github.com/WordPress/gutenberg/pull/55403))

#### Data Layer
- Data: Fix `combineReducers()` types. ([55321](https://github.com/WordPress/gutenberg/pull/55321))
- Fix `combineReducers()` types. ([55321](https://github.com/WordPress/gutenberg/pull/55321))
- Get the page count as derived data. ([55316](https://github.com/WordPress/gutenberg/pull/55316))

#### Layout
Expand Down Expand Up @@ -169,7 +169,7 @@
- Paste: Only link selection if URL protocol is http(s). ([53000](https://github.com/WordPress/gutenberg/pull/53000))

#### Patterns
- Patterns: Remove the version enforcement for npm in `engines` field. ([55245](https://github.com/WordPress/gutenberg/pull/55245))
- Remove the version enforcement for npm in `engines` field. ([55245](https://github.com/WordPress/gutenberg/pull/55245))

#### Code Quality
- Fix: Use y-webrtc room name terminology instead of docName. ([55260](https://github.com/WordPress/gutenberg/pull/55260))
Expand All @@ -193,7 +193,7 @@

#### Block Editor
- Rich Text: Cleanup excess `focusin`/`focusout` listeners. ([55382](https://github.com/WordPress/gutenberg/pull/55382))
- Block Editor: Optimize 'customClassName' controls. ([55345](https://github.com/WordPress/gutenberg/pull/55345))
- Optimize 'customClassName' controls. ([55345](https://github.com/WordPress/gutenberg/pull/55345))
- useBlockControlsFill: Avoid unneeded store subscriptions. ([55340](https://github.com/WordPress/gutenberg/pull/55340))

#### Parsing
Expand All @@ -207,10 +207,10 @@

#### Data Views
- Add `status` entity and use it in "admin views" experiment. ([55050](https://github.com/WordPress/gutenberg/pull/55050))
- DataViews: Add Grid Layout. ([55353](https://github.com/WordPress/gutenberg/pull/55353))
- DataViews: Add featured image field to the page list. ([55246](https://github.com/WordPress/gutenberg/pull/55246))
- DataViews: Adds a control to the views actions to switch layouts. ([55311](https://github.com/WordPress/gutenberg/pull/55311))
- DataViews: Fix the actions menu in the list view. ([55426](https://github.com/WordPress/gutenberg/pull/55426))
- Add Grid Layout. ([55353](https://github.com/WordPress/gutenberg/pull/55353))
- Add featured image field to the page list. ([55246](https://github.com/WordPress/gutenberg/pull/55246))
- Adds a control to the views actions to switch layouts. ([55311](https://github.com/WordPress/gutenberg/pull/55311))
- Fix the actions menu in the list view. ([55426](https://github.com/WordPress/gutenberg/pull/55426))

#### Block Library
- Introduce experimental form & inputs blocks to allow building basic forms. ([44214](https://github.com/WordPress/gutenberg/pull/44214))
Expand Down Expand Up @@ -247,19 +247,19 @@
- Update LinkControl documentation with advice to memoize value prop. ([54659](https://github.com/WordPress/gutenberg/pull/54659))
- Update nested-blocks-inner-blocks.md for WP 6.4 release. ([55375](https://github.com/WordPress/gutenberg/pull/55375))
- docs/get-started-with-wp-env: Diagram and links added. ([55381](https://github.com/WordPress/gutenberg/pull/55381))
- docs: Update broken anchor link. ([55233](https://github.com/WordPress/gutenberg/pull/55233))
- Update broken anchor link. ([55233](https://github.com/WordPress/gutenberg/pull/55233))


### Code Quality

#### Data Views
- DataViews: Allow actions to be provided declaratively as a prop. ([55192](https://github.com/WordPress/gutenberg/pull/55192))
- DataViews: In list view, automatically insert header menu separators. ([55412](https://github.com/WordPress/gutenberg/pull/55412))
- DataViews: Update the data views component to pass an view object. ([55154](https://github.com/WordPress/gutenberg/pull/55154))
- DataViews: Update the view actions menu to be independent from current view APIs. ([55294](https://github.com/WordPress/gutenberg/pull/55294))
- [Data views]: Normalize `render` fields function. ([55411](https://github.com/WordPress/gutenberg/pull/55411))
- [Data views]: Rename accessorFn to getValue. ([55434](https://github.com/WordPress/gutenberg/pull/55434))
- [DataViews]: Update the view configuration to include fields visibility. ([55247](https://github.com/WordPress/gutenberg/pull/55247))
- Allow actions to be provided declaratively as a prop. ([55192](https://github.com/WordPress/gutenberg/pull/55192))
- In list view, automatically insert header menu separators. ([55412](https://github.com/WordPress/gutenberg/pull/55412))
- Update the data views component to pass an view object. ([55154](https://github.com/WordPress/gutenberg/pull/55154))
- Update the view actions menu to be independent from current view APIs. ([55294](https://github.com/WordPress/gutenberg/pull/55294))
- Normalize `render` fields function. ([55411](https://github.com/WordPress/gutenberg/pull/55411))
- Rename accessorFn to getValue. ([55434](https://github.com/WordPress/gutenberg/pull/55434))
- Update the view configuration to include fields visibility. ([55247](https://github.com/WordPress/gutenberg/pull/55247))

#### Block Library
- Query block: Remove unnecessary class. ([55438](https://github.com/WordPress/gutenberg/pull/55438))
Expand Down
6 changes: 6 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,12 @@
"markdown_source": "../packages/components/src/drop-zone/README.md",
"parent": "components"
},
{
"title": "DropdownMenuV2Ariakit",
"slug": "dropdown-menu-v2-ariakit",
"markdown_source": "../packages/components/src/dropdown-menu-v2-ariakit/README.md",
"parent": "components"
},
{
"title": "DropdownMenu",
"slug": "dropdown-menu",
Expand Down
8 changes: 4 additions & 4 deletions docs/reference-guides/block-api/block-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ example: {
},
```

If `example` is not defined, the preview will not be shown. So even if no-attributes are defined, setting a empty example object `example: {}` will trigger the preview to show.
If `example` is not defined, the preview will not be shown. So even if no attributes are defined, setting an empty example object `example: {}` will trigger the preview to show.

It's also possible to extend the block preview with inner blocks via `innerBlocks`. For example:

Expand Down Expand Up @@ -242,13 +242,13 @@ Similarly to how the block's styles can be declared, a block type can define blo

- **_Type:_** `Object`

Supports contains as set of options to control features used in the editor. See the [the supports documentation](/docs/reference-guides/block-api/block-supports.md) for more details.
Supports contains a set of options to control features used in the editor. See [the `supports` documentation](/docs/reference-guides/block-api/block-supports.md) for more details.

#### transforms (optional)

- **Type:** `Object`

Transforms provide rules for what a block can be transformed from and what it can be transformed to. A block can be transformed from another block, a shortcode, a regular expression, a file or a raw DOM node. Take a look at the [Block Transforms API](/docs/reference-guides/block-api/block-transforms.md) for more info about each available transformation.
Transforms provide rules for what a block can be transformed from and what it can be transformed to. A block can be transformed from another block, a shortcode, a regular expression, a file, or a raw DOM node. Take a look at the [Block Transforms API](/docs/reference-guides/block-api/block-transforms.md) for more info about each available transformation.

#### parent (optional)

Expand All @@ -268,7 +268,7 @@ parent: [ 'core/columns' ],
- **Type:** `Array`
- **Since**: `WordPress 6.0.0`

The `ancestor` property makes a block available inside the specified block types at any position of the ancestor block subtree. That allows, for example, to place a 'Comment Content' block inside a 'Column' block, as long as 'Column' is somewhere within a 'Comment Template' block. In comparison to the `parent` property blocks that specify their `ancestor` can be placed anywhere in the subtree whilst blocks with a specified `parent` need to be direct children.
The `ancestor` property makes a block available inside the specified block types at any position of the ancestor block subtree. That allows, for example, to place a 'Comment Content' block inside a 'Column' block, as long as 'Column' is somewhere within a 'Comment Template' block. In comparison to the `parent` property, blocks that specify their `ancestor` can be placed anywhere in the subtree whilst blocks with a specified `parent` need to be direct children.

```js
// Only allow this block when it is nested at any level in a Columns block.
Expand Down
1 change: 0 additions & 1 deletion docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,6 @@ Edit the different global regions of your site, like the header, footer, sidebar
Display the description of categories, tags and custom taxonomies when viewing an archive. ([Source](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/term-description))

- **Name:** core/term-description
- **Experimental:** fse
- **Category:** theme
- **Supports:** align (full, wide), color (background, link, text), spacing (margin, padding), typography (fontSize, lineHeight), ~~html~~
- **Attributes:** textAlign
Expand Down
2 changes: 1 addition & 1 deletion gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Printing since 1440. This is the development plugin for the block editor, site editor, and other future WordPress core functionality.
* Requires at least: 6.2
* Requires PHP: 7.0
* Version: 16.9.0-rc.1
* Version: 16.9.0
* Author: Gutenberg Team
* Text Domain: gutenberg
*
Expand Down
2 changes: 1 addition & 1 deletion lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ When to use which prefix is a judgement call, but the general rule is that if yo

The above recommendations in relation to plugin-specific prefixes/suffixes are relevant only to files in the `lib` directory and only in the Gutenberg plugin.

`Gutenberg` prefixes/suffixes _should not_ be used in Core PHP code. When synching `/lib` files to Core, plugin-specific prefixes/suffixes are generally replaced with their `WP_` or `wp_` equivalents manually.
`Gutenberg` prefixes/suffixes _should not_ be used in Core PHP code. When syncing `/lib` files to Core, plugin-specific prefixes/suffixes are generally replaced with their `WP_` or `wp_` equivalents manually.

Accordingly, unless required to run plugin-only code, you should avoid using plugin-specific prefixes/suffixes in any block PHP code. Core blocks in the plugin are [published as NPM packages](https://github.com/WordPress/gutenberg/blob/trunk/docs/contributors/code/release.md#packages-releases-to-npm-and-wordpress-core-updates), which Core consumes as NPM dependencies.

Expand Down
2 changes: 1 addition & 1 deletion lib/experimental/disable-tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function gutenberg_test_tinymce_access() {
/**
* Whether the current editor contains a classic block instance.
*
* @return bool True if the editor contains a classic block, false otherwse.
* @return bool True if the editor contains a classic block, false otherwise.
*/
function gutenberg_post_being_edited_requires_classic_block() {
if ( ! is_admin() ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private function download_or_move_font_faces( $files ) {

$new_font_faces = array();
foreach ( $this->data['fontFace'] as $font_face ) {
// If the fonts are not meant to be dowloaded or uploaded
// If the fonts are not meant to be downloaded or uploaded
// (for example to install fonts that use a remote url).
$new_font_face = $font_face;

Expand Down
2 changes: 1 addition & 1 deletion lib/experimental/synchronization.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Bootstraps synchrnoization (collborative editing).
* Bootstraps synchronization (collaborative editing).
*
* @package gutenberg
*/
Expand Down
Loading

0 comments on commit 1521df5

Please sign in to comment.