From 96569b0075f7f88b12c0d19b7b5cc526fcbdbb97 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 14 Nov 2013 04:52:06 +0000 Subject: [PATCH] Twenty Fourteen: first pass at adding help text to to "Help" tab for `edit.php` and `themes.php` screens. Props obenland for starter patch, see #25837. git-svn-id: https://develop.svn.wordpress.org/trunk@26153 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/inc/customizer.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/wp-content/themes/twentyfourteen/inc/customizer.php b/src/wp-content/themes/twentyfourteen/inc/customizer.php index c4a486ef25..426d37c11f 100644 --- a/src/wp-content/themes/twentyfourteen/inc/customizer.php +++ b/src/wp-content/themes/twentyfourteen/inc/customizer.php @@ -321,3 +321,24 @@ function twentyfourteen_customizer_styles() { wp_add_inline_style( 'twentyfourteen-style', $css ); } add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' ); + +/** + * Adds contextual help to the Themes and Post edit screens. + * + * @since Twenty Fourteen 1.0 + * + * @return void + */ +function twentyfourteen_contextual_help() { + get_current_screen()->add_help_tab( array( + 'id' => 'twentyfourteen', + 'title' => __( 'Twenty Fourteen', 'twentyfourteen' ), + 'content' => + '', + ) ); +} +add_action( 'admin_head-themes.php', 'twentyfourteen_contextual_help' ); +add_action( 'admin_head-edit.php', 'twentyfourteen_contextual_help' );