From 796d8e8c7ea209292f8cb294fa2ef168c89eb8de Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Sun, 30 Mar 2014 12:15:29 -0700 Subject: [PATCH] _s: Update function return values. Adds missing documentation for `_s_categorized_blog()` and removes void statements, in accordance with WordPress documentation guidelines. See http://make.wordpress.org/core/handbook/inline-documentation-standards/p hp-documentation-standards/#phpdoc-tags --- inc/template-tags.php | 6 ++---- inc/wpcom.php | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/inc/template-tags.php b/inc/template-tags.php index 6ca1f8f..951449b 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -10,8 +10,6 @@ if ( ! function_exists( '_s_paging_nav' ) ) : /** * Display navigation to next/previous set of posts when applicable. - * - * @return void */ function _s_paging_nav() { // Don't print empty markup if there's only one page. @@ -40,8 +38,6 @@ endif; if ( ! function_exists( '_s_post_nav' ) ) : /** * Display navigation to next/previous post when applicable. - * - * @return void */ function _s_post_nav() { // Don't print empty markup if there's nowhere to navigate. @@ -97,6 +93,8 @@ endif; /** * Returns true if a blog has more than 1 category. + * + * @return bool */ function _s_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( '_s_categories' ) ) ) { diff --git a/inc/wpcom.php b/inc/wpcom.php index 9ed9e5a..2d423ab 100644 --- a/inc/wpcom.php +++ b/inc/wpcom.php @@ -11,7 +11,6 @@ * Adds support for wp.com-specific theme functions. * * @global array $themecolors - * @return void */ function _s_wpcom_setup() { global $themecolors;