Skip to content

Commit

Permalink
Making sure link attributes are ported over as overrides.
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldhuereca committed Aug 26, 2024
1 parent 7119e2a commit ef82112
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-url'), 'version' => '8a9dab8564935e2d88fa');
<?php return array('dependencies' => array('react', 'wp-a11y', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-plugins', 'wp-url'), 'version' => '9470ae8721cc410b116a');
4 changes: 4 additions & 0 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11049,6 +11049,10 @@ var returnBlockAttributes = function returnBlockAttributes(attributes, blockType
globalStyleAttributes.mediaLinkType = attributes.mediaLinkType;
globalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle;
globalStyleAttributes.mediaLinkUrl = attributes.mediaLinkUrl;
globalStyleAttributes.mediaLinkAnchorId = attributes.mediaLinkAnchorId;
globalStyleAttributes.mediaLinkClass = attributes.mediaLinkClass;
globalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle;
globalStyleAttributes.mediaLinkRel = attributes.mediaLinkRel;
globalStyleAttributes.mediaLinkNewTab = attributes.mediaLinkNewTab;
globalStyleAttributes.lightboxCaption = attributes.lightboxCaption;
globalStyleAttributes.lightboxEnabled = attributes.lightboxEnabled;
Expand Down
2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions includes/Blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,9 @@ public static function block_frontend( $attributes, $innerblocks_content, $block
$photo_attributes['mediaLinkTitle'] = $attributes['mediaLinkTitle'];
$photo_attributes['mediaLinkUrl'] = $attributes['mediaLinkUrl'];
$photo_attributes['mediaLinkNewTab'] = $attributes['mediaLinkNewTab'];
$photo_attributes['mediaLinkAnchorId'] = $attributes['mediaLinkAnchorId'];
$photo_attributes['mediaLinkClass'] = $attributes['mediaLinkClass'];
$photo_attributes['mediaLinkRel'] = $attributes['mediaLinkRel'];
$photo_attributes['lightboxCaption'] = $attributes['lightboxCaption'];
$photo_attributes['lightboxEnabled'] = $attributes['lightboxEnabled'];
$photo_attributes['lightboxShowCaption'] = $attributes['lightboxShowCaption'];
Expand Down
4 changes: 4 additions & 0 deletions src/plugins/GlobalStyles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ const returnBlockAttributes = ( attributes, blockType, innerBlocks ) => {
globalStyleAttributes.mediaLinkType = attributes.mediaLinkType;
globalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle;
globalStyleAttributes.mediaLinkUrl = attributes.mediaLinkUrl;
globalStyleAttributes.mediaLinkAnchorId = attributes.mediaLinkAnchorId;
globalStyleAttributes.mediaLinkClass = attributes.mediaLinkClass;
globalStyleAttributes.mediaLinkTitle = attributes.mediaLinkTitle;
globalStyleAttributes.mediaLinkRel = attributes.mediaLinkRel;
globalStyleAttributes.mediaLinkNewTab = attributes.mediaLinkNewTab;
globalStyleAttributes.lightboxCaption = attributes.lightboxCaption;
globalStyleAttributes.lightboxEnabled = attributes.lightboxEnabled;
Expand Down

0 comments on commit ef82112

Please sign in to comment.