← All changes
|
modules/atomic-widgets/props-resolver/transformers/settings/link-transformer.php
+1
-2
4.2.0-beta2
→
3.32.3
View file →
| @@ -15,9 +15,8 @@ | ||
| 15 | 15 | |
| 16 | 16 | $link_attrs = [ |
| 17 | 17 | 'href' => $url, |
| 18 | 18 | 'target' => $value['isTargetBlank'] ? '_blank' : '_self', |
| 19 | - 'tag' => $url && 'button' === $value['tag'] ? 'button' : 'a', | |
| 20 | 19 | ]; |
| 21 | 20 | |
| 22 | 21 | return array_filter( $link_attrs ); |
| 23 | 22 | } |
| @@ -25,7 +24,7 @@ | ||
| 25 | 24 | private function extract_url( $value ): ?string { |
| 26 | 25 | $destination = $value['destination']; |
| 27 | 26 | $post = is_numeric( $destination ) ? get_post( $destination ) : null; |
| 28 | 27 | |
| 29 | - return $post ? get_permalink( $post ) : $destination; | |
| 28 | + return $post ? $post->guid : $destination; | |
| 30 | 29 | } |
| 31 | 30 | } |