-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default link to image_default_link_type for gallery (#25582)
- Loading branch information
Showing
22 changed files
with
347 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const LINK_DESTINATION_NONE = 'none'; | ||
export const LINK_DESTINATION_MEDIA = 'file'; | ||
export const LINK_DESTINATION_ATTACHMENT = 'post'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/e2e-tests/fixtures/blocks/core__gallery-with-caption.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:gallery {"ids":[null,null]} --> | ||
<!-- wp:gallery {"ids":[null,null],"linkTo":"none"} --> | ||
<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==" alt="title"/></figure></li><li class="blocks-gallery-item"><figure><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="title"/></figure></li></ul><figcaption class="blocks-gallery-caption">Gallery caption.</figcaption></figure> | ||
<!-- /wp:gallery --> |
2 changes: 1 addition & 1 deletion
2
packages/e2e-tests/fixtures/blocks/core__gallery.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:gallery {"ids":[null,null]} --> | ||
<!-- wp:gallery {"ids":[null,null],"linkTo":"none"} --> | ||
<figure class="wp-block-gallery columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==" alt="title"/></figure></li><li class="blocks-gallery-item"><figure><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="title"/></figure></li></ul></figure> | ||
<!-- /wp:gallery --> |
2 changes: 1 addition & 1 deletion
2
packages/e2e-tests/fixtures/blocks/core__gallery__columns.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:gallery {"ids":[null,null],"columns":1} --> | ||
<!-- wp:gallery {"ids":[null,null],"columns":1,"linkTo":"none"} --> | ||
<figure class="wp-block-gallery columns-1 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==" alt="title"/></figure></li><li class="blocks-gallery-item"><figure><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="title"/></figure></li></ul></figure> | ||
<!-- /wp:gallery --> |
2 changes: 1 addition & 1 deletion
2
packages/e2e-tests/fixtures/blocks/core__gallery__deprecated-1.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:gallery {"columns":2,"align":"wide"} --> | ||
<!-- wp:gallery {"columns":2,"linkTo":"none","align":"wide"} --> | ||
<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==" alt="title"/></figure></li><li class="blocks-gallery-item"><figure><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="title"/></figure></li></ul></figure> | ||
<!-- /wp:gallery --> |
2 changes: 1 addition & 1 deletion
2
packages/e2e-tests/fixtures/blocks/core__gallery__deprecated-2.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:gallery {"ids":[],"columns":2,"align":"wide"} --> | ||
<!-- wp:gallery {"ids":[],"columns":2,"linkTo":"none","align":"wide"} --> | ||
<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==" alt="title" data-id="1" class="wp-image-1"/></figure></li><li class="blocks-gallery-item"><figure><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="title" data-id="2" class="wp-image-2"/></figure></li></ul></figure> | ||
<!-- /wp:gallery --> |
2 changes: 1 addition & 1 deletion
2
packages/e2e-tests/fixtures/blocks/core__gallery__deprecated-3.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:gallery {"ids":[null,null],"align":"wide"} --> | ||
<!-- wp:gallery {"ids":[null,null],"linkTo":"none","align":"wide"} --> | ||
<figure class="wp-block-gallery alignwide columns-2 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==" alt="title"/></figure></li><li class="blocks-gallery-item"><figure><img src="data:image/jpeg;base64,/9j/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/yQALCAABAAEBAREA/8wABgAQEAX/2gAIAQEAAD8A0s8g/9k=" alt="title"/></figure></li></ul></figure> | ||
<!-- /wp:gallery --> |
2 changes: 1 addition & 1 deletion
2
packages/e2e-tests/fixtures/blocks/core__gallery__deprecated-4.serialized.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<!-- wp:gallery {"ids":[1421,1440,1362],"align":"wide"} --> | ||
<!-- wp:gallery {"ids":[1421,1440,1362],"linkTo":"none","align":"wide"} --> | ||
<figure class="wp-block-gallery alignwide columns-3 is-cropped"><ul class="blocks-gallery-grid"><li class="blocks-gallery-item"><figure><img src="https://sergioestevaofolio.files.wordpress.com/2016/09/cropped-img_9054-1.jpg?w=190" alt="" data-id="1421" class="wp-image-1421"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://sergioestevaofolio.files.wordpress.com/2017/09/cropped-l1001498-1.jpg?w=580" alt="" data-id="1440" class="wp-image-1440"/></figure></li><li class="blocks-gallery-item"><figure><img src="https://sergioestevaofolio.files.wordpress.com/2017/05/cropped-l1005945-2-2.jpg?w=580" alt="" data-id="1362" class="wp-image-1362"/></figure></li></ul></figure> | ||
<!-- /wp:gallery --> |
48 changes: 48 additions & 0 deletions
48
packages/e2e-tests/fixtures/blocks/core__gallery__deprecated-5.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!-- wp:gallery {"ids":[705,704,703],"linkTo":"media"} --> | ||
<figure class="wp-block-gallery columns-3 is-cropped"> | ||
<ul class="blocks-gallery-grid"> | ||
<li class="blocks-gallery-item"> | ||
<figure> | ||
<a href="http://wptest.local/wp-content/uploads/2020/09/test-image-edited-1-scaled.jpg" > | ||
<img | ||
src="http://wptest.local/wp-content/uploads/2020/09/test-image-edited-1-682x1024.jpg" | ||
alt="" | ||
data-id="705" | ||
data-full-url="http://wptest.local/wp-content/uploads/2020/09/test-image-edited-1-scaled.jpg" | ||
data-link="http://wptest.local/classic/test-image-3/" | ||
class="wp-image-705" | ||
/> | ||
</a> | ||
</figure> | ||
</li> | ||
<li class="blocks-gallery-item"> | ||
<figure> | ||
<a href="http://wptest.local/wp-content/uploads/2020/09/test-image-edited-scaled.jpg" > | ||
<img | ||
src="http://wptest.local/wp-content/uploads/2020/09/test-image-edited-1024x682.jpg" | ||
alt="" | ||
data-id="704" | ||
data-full-url="http://wptest.local/wp-content/uploads/2020/09/test-image-edited-scaled.jpg" | ||
data-link="http://wptest.local/test-image-2/" | ||
class="wp-image-704" | ||
/> | ||
</a> | ||
</figure> | ||
</li> | ||
<li class="blocks-gallery-item"> | ||
<figure> | ||
<a href="http://wptest.local/wp-content/uploads/2020/04/test-image-scaled.jpg" > | ||
<img | ||
src="http://wptest.local/wp-content/uploads/2020/04/test-image-1024x683.jpg" | ||
alt="" | ||
data-id="703" | ||
data-full-url="http://wptest.local/wp-content/uploads/2020/04/test-image-scaled.jpg" | ||
data-link="http://wptest.local/test-image/" | ||
class="wp-image-703" | ||
/> | ||
</a> | ||
</figure> | ||
</li> | ||
</ul> | ||
</figure> | ||
<!-- /wp:gallery --> |
Oops, something went wrong.