Skip to content

Commit

Permalink
rename $source_args to $source_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski authored and artemiomorales committed Jan 24, 2024
1 parent 1527b81 commit 3fda653
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/compat/wordpress-6.5/block-bindings/block-bindings.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function wp_block_bindings() {
* Registers a new source for block bindings.
*
* @param string $source_name The name of the source.
* @param array $source_args The array of arguments that are used to register a source. The array has two elements:
* @param array $source_properties The array of arguments that are used to register a source. The array has two elements:
* 1. string $label The label of the source.
* 2. callback $apply A callback
* executed when the source is processed during
Expand All @@ -43,8 +43,8 @@ function wp_block_bindings() {
* @return void
*/
if ( ! function_exists( 'wp_block_bindings_register_source' ) ) {
function wp_block_bindings_register_source( $source_name, array $source_args ) {
wp_block_bindings()->register_source( $source_name, $source_args );
function wp_block_bindings_register_source( $source_name, array $source_properties ) {
wp_block_bindings()->register_source( $source_name, $source_properties );
}
}

Expand Down

0 comments on commit 3fda653

Please sign in to comment.