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. Built from https://develop.svn.wordpress.org/trunk@60957 git-svn-id: http://core.svn.wordpress.org/trunk@60293 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -72,7 +72,7 @@ function _block_bindings_post_data_get_value( array $source_args, $block_instanc
|
||||
}
|
||||
}
|
||||
|
||||
if ( 'link' === $source_args['key'] ) {
|
||||
if ( 'link' === $field ) {
|
||||
$permalink = get_permalink( $post_id );
|
||||
return false === $permalink ? null : esc_url( $permalink );
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.9-alpha-60956';
|
||||
$wp_version = '6.9-alpha-60957';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user