From e682f1ec2c74fc3201eb23744e848aef7f2126b9 Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Tue, 12 Dec 2017 10:49:28 +0100 Subject: [PATCH] Make post title contextual and translatable This just uses the stock WordPress objects. --- gutenberg.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gutenberg.php b/gutenberg.php index b1a9df1377b97..83b36a7bb571c 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -27,10 +27,12 @@ * @since 0.1.0 */ function the_gutenberg_project() { + global $post_type, $post_type_object; + $post_type_object = get_post_type_object( $post_type ); ?>
 
-

Edit Post

+

labels->edit_item ); ?>