Skip to content

Commit

Permalink
Fix PHPDOC block. Now description better explains the purpose of this…
Browse files Browse the repository at this point in the history
… callback function.
  • Loading branch information
anton-vlasenko committed Nov 4, 2021
1 parent 38dbd8e commit 3bee078
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,10 @@ function gutenberg_disable_block_editor_for_navigation_post_type( $value, $post_
add_filter( 'use_block_editor_for_post_type', 'gutenberg_disable_block_editor_for_navigation_post_type', 10, 2 );

/**
* This callback disables content editor for wp_navigation type posts.
* This callback disables the content editor for wp_navigation type posts.
* Content editor cannot handle wp_navigation type posts correctly.
* We cannot disable the "editor" feature in the wp_navigation's CPT definition
* because it disables the ability to save navigation blocks via REST API.
*
* @param WP_Post $post An instance of WP_Post class.
*/
Expand Down

0 comments on commit 3bee078

Please sign in to comment.