Skip to content

Commit 0948260

Browse files
committed
Block Bindings: Migrate Add link field link source key to field.
[60955] moved post-data key args to a better fit field one. Adds a forgotten in that changeset `link` to that field check. Props bernhard-reiter. Fixes #64112. git-svn-id: https://develop.svn.wordpress.org/trunk@60957 602fd350-edb4-49c9-b593-d223f7449a82
1 parent fe1719b commit 0948260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/block-bindings/post-data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function _block_bindings_post_data_get_value( array $source_args, $block_instanc
7272
}
7373
}
7474

75-
if ( 'link' === $source_args['key'] ) {
75+
if ( 'link' === $field ) {
7676
$permalink = get_permalink( $post_id );
7777
return false === $permalink ? null : esc_url( $permalink );
7878
}

0 commit comments

Comments
 (0)