Skip to content

Commit

Permalink
Make post title contextual and translatable
Browse files Browse the repository at this point in the history
This just uses the stock WordPress objects.
  • Loading branch information
Joen Asmussen committed Dec 12, 2017
1 parent b5d73e5 commit e682f1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gutenberg.php
Expand Up @@ -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 );
?>
<div class="nvda-temp-fix screen-reader-text">&nbsp;</div>
<div class="gutenberg">
<h1 class="screen-reader-text">Edit Post</h1>
<h1 class="screen-reader-text"><?php echo esc_html( $post_type_object->labels->edit_item ); ?></h1>
<div id="editor" class="gutenberg__editor"></div>
<div id="metaboxes" style="display: none;">
<?php the_gutenberg_metaboxes(); ?>
Expand Down

0 comments on commit e682f1e

Please sign in to comment.