Skip to content

Commit

Permalink
fix wrong function names
Browse files Browse the repository at this point in the history
  • Loading branch information
gaambo committed Feb 9, 2024
1 parent 573ec7a commit d1e9bc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/compat/wordpress-6.5/navigation-block-variations.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function gutenberg_block_core_navigation_link_register_post_type_variation( $pos
_deprecated_function( __FUNCTION__, '6.5.0', 'WP_Block_Type::get_variations' );
if ( $post_type_object->show_in_nav_menus ) {
$variation = build_variation_for_navigation_link( $post_type_object, 'post-type' );
block_core_navigation_link_register_variation( $variation );
gutenberg_block_core_navigation_link_register_variation( $variation );
}
}

Expand All @@ -52,7 +52,7 @@ function gutenberg_block_core_navigation_link_register_taxonomy_variation( $taxo
_deprecated_function( __FUNCTION__, '6.5.0', 'WP_Block_Type::get_variations' );
if ( isset( $args['show_in_nav_menus'] ) && $args['show_in_nav_menus'] ) {
$variation = build_variation_for_navigation_link( (object) $args, 'post-type' );
block_core_navigation_link_register_variation( $variation );
gutenberg_block_core_navigation_link_register_variation( $variation );
}
}

Expand All @@ -66,7 +66,7 @@ function gutenberg_block_core_navigation_link_register_taxonomy_variation( $taxo
*/
function gutenberg_block_core_navigation_link_unregister_post_type_variation( $post_type ) {
_deprecated_function( __FUNCTION__, '6.5.0', 'WP_Block_Type::get_variations' );
block_core_navigation_link_unregister_variation( $post_type );
gutenberg_block_core_navigation_link_unregister_variation( $post_type );
}

/**
Expand All @@ -79,7 +79,7 @@ function gutenberg_block_core_navigation_link_unregister_post_type_variation( $p
*/
function gutenberg_block_core_navigation_link_unregister_taxonomy_variation( $taxonomy ) {
_deprecated_function( __FUNCTION__, '6.5.0', 'WP_Block_Type::get_variations' );
block_core_navigation_link_unregister_variation( $taxonomy );
gutenberg_block_core_navigation_link_unregister_variation( $taxonomy );
}

/**
Expand Down

0 comments on commit d1e9bc4

Please sign in to comment.