Skip to content

Commit

Permalink
Singular
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed May 29, 2024
1 parent 599d5f2 commit f9de198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wp-includes/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function register_block_type_from_metadata( $file_or_folder, $args = array() ) {
*
* @return string Returns the list of block variations.
*/
$metadata['variations_callback'] = static function () use ( $variations_path ) {
$metadata['variation_callback'] = static function () use ( $variations_path ) {
$variations = require $variations_path;
return $variations;
};
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/tests/blocks/register.php
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ public function test_block_registers_with_metadata_fixture() {
// @ticket 53148
$this->assertIsCallable( $result->render_callback );
// @ticket 61280
$this->assertIsCallable( $result->variations_callback );
$this->assertIsCallable( $result->variation_callback );
}

/**
Expand Down

0 comments on commit f9de198

Please sign in to comment.