From 62d746f98d73b3c1a6ccbcc39ee9388d5a4d8829 Mon Sep 17 00:00:00 2001 From: Vishal Kakadiya Date: Thu, 26 Apr 2018 16:00:13 +0530 Subject: [PATCH] Fix typo in php doc block for gutenberg_can_edit_post() (#6439) * Define variable as global * Revert change * Fix small typo in php doc * Revert unwanted change --- lib/register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/register.php b/lib/register.php index 0103fd9ff9e0cb..c2dd9ec53db8cd 100644 --- a/lib/register.php +++ b/lib/register.php @@ -282,7 +282,7 @@ function gutenberg_can_edit_post( $post ) { * @since 1.5.2 * * @param string $post_type The post type. - * @return bool Wehther the post type can be edited with Gutenberg. + * @return bool Whether the post type can be edited with Gutenberg. */ function gutenberg_can_edit_post_type( $post_type ) { $can_edit = true;