Skip to content
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

Image: Fix design of close button for the lightbox #51205

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
fa1998f
Revise CSS to contain images within overlay properly
artemiomorales Jun 1, 2023
cbaa3cb
Set horizontal images to occupy space of container
artemiomorales Jun 1, 2023
e243b32
Make square images fit by height rather than expand to full width
artemiomorales Jun 1, 2023
2b977c2
Revise so lightbox loads original image; remove padding and hide caption
artemiomorales Jun 2, 2023
0eb4712
Fix PHP spacing for linter
artemiomorales Jun 2, 2023
da2e35f
Fix test; image src is now only set after lightbox opens
artemiomorales Jun 2, 2023
3834625
Fix headings in the View component readme. (#51157)
afercia Jun 1, 2023
1ea4cd4
[Fonts API] Make local font asset file URL absolute (#51178)
hellofromtonya Jun 1, 2023
e0cd239
Add inert attribute to disabled blocks that have only disabled descen…
noisysocks Jun 2, 2023
5430ec3
Improvements to how blocks with a 'disabled' editing mode behave (#51…
noisysocks Jun 2, 2023
69b9be1
Make getBlockEditingMode() return 'default' when parent is 'contentOn…
noisysocks Jun 2, 2023
3c5e91a
Add block spacing and layout to Post Template (#49050)
tellthemachines Jun 2, 2023
c509c67
Add check for PushChangesToGlobalStylesConrtol (#50912)
scruffian Jun 2, 2023
ddc8dd6
Site Editor: Add ability to focus on editing a page's content vs the …
noisysocks Jun 2, 2023
c4681a2
Disable Lightbox UI if link has an image (#51180)
cbravobernal Jun 2, 2023
0fb8dca
Mobile Release v1.96.1 (#51139)
Jun 2, 2023
1bf0a97
Use getBlockType selector in `BlockDraggable` component (#51174)
ntsekouras Jun 2, 2023
8ebc02a
Add margin styles for term description block (#51137)
mikachan Jun 2, 2023
aba63d6
Hide the save draft button for published posts (#51193)
youknowriad Jun 2, 2023
259c58f
Marks the selectors and actions of the commands store as a public API…
youknowriad Jun 2, 2023
5cff690
Bump plugin version to 15.9.1
gutenbergplugin Jun 2, 2023
f018a01
Post editor: iframe if all blocks are v3 (#48286)
ellatrix Jun 2, 2023
3e516be
Update Changelog for 15.9.1
gutenbergplugin Jun 2, 2023
74d70a0
Scripts: Optimize updating render paths when developing blocks (#51162)
gziolo Jun 2, 2023
674b3a1
Improve styles for lightbox close button
artemiomorales Jun 2, 2023
bd1af68
Fix PHP spacing for linter
artemiomorales Jun 2, 2023
bfd71c4
Darken the scrim
artemiomorales Jun 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
== Changelog ==

= 15.9.1 =



## Changelog

### Bug Fixes

#### Fonts API
- [Fonts API] Make local font asset file URL absolute. ([51178](https://github.com/WordPress/gutenberg/pull/51178))

#### Block Library
- Social Icons: Add color classes so icon colors correctly reflect changes in Global Styles. ([51020](https://github.com/WordPress/gutenberg/pull/51020))


## Contributors

The following contributors merged PRs in this release:

@hellofromtonya @ndiego


= 15.9.0 =

## Changelog
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/create-block/block-anatomy.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Most of the properties are set in the `src/block.json` file.
```json
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "create-block/gutenpride",
"version": "0.1.0",
"title": "Gutenpride",
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/create-block/wp-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The `register_block_type` function registers the block we are going to create an
```json
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "create-block/gutenpride",
"version": "0.1.0",
"title": "Gutenpride",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ For example:

```json
{
"apiVersion": 2,
"apiVersion": 3,
"name": "gutenberg-examples/example-02-stylesheets",
"title": "Example: Stylesheets",
"icon": "universal-access-alt",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
} from '@wordpress/block-editor';

registerBlockType( 'gutenberg-examples/example-04-controls-esnext', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: Controls (esnext)',
icon: 'universal-access-alt',
category: 'design',
Expand Down Expand Up @@ -208,7 +208,7 @@ import {
} from '@wordpress/block-editor';

registerBlockType( 'create-block/gutenpride', {
apiVersion: 2,
apiVersion: 3,
attributes: {
message: {
type: 'string',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from '@wordpress/block-editor';

registerBlockType( 'gutenberg-examples/example-dynamic', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: last post title',
icon: 'megaphone',
category: 'widgets',
Expand Down Expand Up @@ -119,7 +119,7 @@ function gutenberg_examples_dynamic() {
register_block_type(
'gutenberg-examples/example-dynamic',
array(
'api_version' => 2,
'api_version' => 3,
'category' => 'widgets',
'attributes' => array(
'bgColor' => array( 'type' => 'string' ),
Expand All @@ -144,7 +144,7 @@ import { useSelect } from '@wordpress/data';
import { useBlockProps } from '@wordpress/block-editor';

registerBlockType( 'gutenberg-examples/example-dynamic-block-supports', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: last post title(block supports)',
icon: 'megaphone',
category: 'widgets',
Expand Down Expand Up @@ -195,7 +195,7 @@ function gutenberg_examples_dynamic_block_supports() {
register_block_type(
'gutenberg-examples/example-dynamic-block-supports',
array(
'api_version' => 2,
'api_version' => 3,
'category' => 'widgets',
'supports' => array( 'color' => true ),
'render_callback' => 'gutenberg_examples_dynamic_block_supports_render_callback',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { registerBlockType } from '@wordpress/blocks';
import { useBlockProps, RichText } from '@wordpress/block-editor';

registerBlockType( 'gutenberg-examples/example-03-editable-esnext', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: Basic with block supports',
icon: 'universal-access-alt',
category: 'design',
Expand Down Expand Up @@ -73,7 +73,7 @@ registerBlockType( 'gutenberg-examples/example-03-editable-esnext', {
var useBlockProps = blockEditor.useBlockProps;

blocks.registerBlockType( 'gutenberg-examples/example-03-editable', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: Basic with block supports',
icon: 'universal-access-alt',
category: 'design',
Expand Down Expand Up @@ -127,7 +127,7 @@ Now, let's alter the block.json file for that block, and add the supports key. (

```json
{
"apiVersion": 2,
"apiVersion": 3,
"name": "gutenberg-examples/example-03-editable-esnext",
"title": "Example: Basic with block supports",
"icon": "universal-access-alt",
Expand Down
10 changes: 5 additions & 5 deletions docs/how-to-guides/block-tutorial/creating-dynamic-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { useSelect } from '@wordpress/data';
import { useBlockProps } from '@wordpress/block-editor';

registerBlockType( 'gutenberg-examples/example-dynamic', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: last post',
icon: 'megaphone',
category: 'widgets',
Expand Down Expand Up @@ -62,7 +62,7 @@ registerBlockType( 'gutenberg-examples/example-dynamic', {
useBlockProps = blockEditor.useBlockProps;

registerBlockType( 'gutenberg-examples/example-dynamic', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: last post',
icon: 'megaphone',
category: 'widgets',
Expand Down Expand Up @@ -132,7 +132,7 @@ function gutenberg_examples_dynamic() {
);

register_block_type( 'gutenberg-examples/example-dynamic', array(
'api_version' => 2,
'api_version' => 3,
'editor_script' => 'gutenberg-examples-dynamic',
'render_callback' => 'gutenberg_examples_dynamic_render_callback'
) );
Expand Down Expand Up @@ -165,7 +165,7 @@ import ServerSideRender from '@wordpress/server-side-render';
import { useBlockProps } from '@wordpress/block-editor';

registerBlockType( 'gutenberg-examples/example-dynamic', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: last post',
icon: 'megaphone',
category: 'widgets',
Expand Down Expand Up @@ -194,7 +194,7 @@ registerBlockType( 'gutenberg-examples/example-dynamic', {
useBlockProps = blockEditor.useBlockProps;

registerBlockType( 'gutenberg-examples/example-dynamic', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: last post',
icon: 'megaphone',
category: 'widgets',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import { registerBlockType } from '@wordpress/blocks';
import { useBlockProps, RichText } from '@wordpress/block-editor';

registerBlockType( 'gutenberg-examples/example-03-editable-esnext', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: Editable (esnext)',
icon: 'universal-access-alt',
category: 'design',
Expand Down Expand Up @@ -117,7 +117,7 @@ registerBlockType( 'gutenberg-examples/example-03-editable-esnext', {
var useBlockProps = blockEditor.useBlockProps;

blocks.registerBlockType( 'gutenberg-examples/example-03-editable', {
apiVersion: 2,
apiVersion: 3,
title: 'Example: Editable',
icon: 'universal-access-alt',
category: 'design',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Create a basic `block.json` file there:

```json
{
"apiVersion": 2,
"apiVersion": 3,
"title": "Example: Basic (ESNext)",
"name": "gutenberg-examples/example-01-basic-esnext",
"category": "layout",
Expand All @@ -56,7 +56,7 @@ Create a basic `block.json` file there:

```json
{
"apiVersion": 2,
"apiVersion": 3,
"title": "Example: Basic",
"name": "gutenberg-examples/example-01-basic",
"category": "layout",
Expand Down
4 changes: 2 additions & 2 deletions docs/how-to-guides/internationalization.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function myguten_block_init() {
);

register_block_type( 'myguten/simple', array(
'api_version' => 2,
'api_version' => 3,
'editor_script' => 'myguten-script',
) );
}
Expand All @@ -46,7 +46,7 @@ import { registerBlockType } from '@wordpress/blocks';
import { useBlockProps } from '@wordpress/block-editor';

registerBlockType( 'myguten/simple', {
apiVersion: 2,
apiVersion: 3,
title: __( 'Simple Block', 'myguten' ),
category: 'widgets',

Expand Down
2 changes: 1 addition & 1 deletion docs/how-to-guides/metabox.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function myguten_render_paragraph( $block_attributes, $content ) {
}

register_block_type( 'core/paragraph', array(
'api_version' => 2,
'api_version' => 3,
'render_callback' => 'myguten_render_paragraph',
) );
```
Expand Down
8 changes: 4 additions & 4 deletions docs/reference-guides/block-api/block-edit-save.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { useBlockProps } from '@wordpress/block-editor';

// ...
const blockSettings = {
apiVersion: 2,
apiVersion: 3,

// ...

Expand All @@ -30,7 +30,7 @@ const blockSettings = {

```js
var blockSettings = {
apiVersion: 2,
apiVersion: 3,

// ...

Expand Down Expand Up @@ -58,7 +58,7 @@ import { useBlockProps } from '@wordpress/block-editor';

// ...
const blockSettings = {
apiVersion: 2,
apiVersion: 3,

// ...

Expand All @@ -76,7 +76,7 @@ const blockSettings = {

```js
var blockSettings = {
apiVersion: 2,
apiVersion: 3,

// ...

Expand Down
6 changes: 3 additions & 3 deletions docs/reference-guides/block-api/block-metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Starting in WordPress 5.8 release, we recommend using the `block.json` metadata
```json
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"apiVersion": 3,
"name": "my-plugin/notice",
"title": "Notice",
"category": "text",
Expand Down Expand Up @@ -150,10 +150,10 @@ This section describes all the properties that can be added to the `block.json`
- Default: `1`

```json
{ "apiVersion": 2 }
{ "apiVersion": 3 }
```

The version of the Block API used by the block. The most recent version is `2` and it was introduced in WordPress 5.6.
The version of the Block API used by the block. The most recent version is `3` and it was introduced in WordPress 6.3.

See the [the API versions documentation](/docs/reference-guides/block-api/block-api-versions.md) for more details.

Expand Down
4 changes: 2 additions & 2 deletions docs/reference-guides/core-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ Contains the block elements used to render a post, like the title, date, feature
- **Name:** core/post-template
- **Category:** theme
- **Parent:** core/query
- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Supports:** align (full, wide), anchor, color (background, gradients, link, text), spacing (blockGap), typography (fontSize, lineHeight), ~~html~~, ~~reusable~~
- **Attributes:**

## Post Terms
Expand Down Expand Up @@ -656,7 +656,7 @@ An advanced block that allows displaying post types based on different query par
- **Name:** core/query
- **Category:** theme
- **Supports:** align (full, wide), anchor, ~~html~~
- **Attributes:** displayLayout, namespace, query, queryId, tagName
- **Attributes:** namespace, query, queryId, tagName

## No results

Expand Down
36 changes: 36 additions & 0 deletions docs/reference-guides/data/data-core-edit-site.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,18 @@ _Returns_

- `Object`: Settings.

### hasPageContentLock

Whether or not the editor is locked so that only page content can be edited.

_Parameters_

- _state_ `Object`: Global application state.

_Returns_

- `boolean`: Whether or not the editor is locked.

### isFeatureActive

> **Deprecated**
Expand Down Expand Up @@ -174,6 +186,22 @@ _Returns_

> **Deprecated**

### isPage

Whether or not the editor has a page loaded into it.

_Related_

- setPage

_Parameters_

- _state_ `Object`: Global application state.

_Returns_

- `boolean`: Whether or not the editor has a page loaded into it.

### isSaveViewOpened

Returns the current opened/closed state of the save panel.
Expand Down Expand Up @@ -252,6 +280,14 @@ _Returns_

- `number`: The resolved template ID for the page route.

### setHasPageContentLock

Sets whether or not the editor is locked so that only page content can be edited.

_Parameters_

- _hasPageContentLock_ `boolean`: True to enable lock, false to disable.

### setHomeTemplateId

> **Deprecated**
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.1
* Requires PHP: 5.6
* Version: 15.9.0
* Version: 15.9.1
* Author: Gutenberg Team
* Text Domain: gutenberg
*
Expand Down
Loading