forked from mirror/_s
_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
This commit is contained in:
parent
74e9b10a7a
commit
796d8e8c7e
|
@ -10,8 +10,6 @@
|
||||||
if ( ! function_exists( '_s_paging_nav' ) ) :
|
if ( ! function_exists( '_s_paging_nav' ) ) :
|
||||||
/**
|
/**
|
||||||
* Display navigation to next/previous set of posts when applicable.
|
* Display navigation to next/previous set of posts when applicable.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function _s_paging_nav() {
|
function _s_paging_nav() {
|
||||||
// Don't print empty markup if there's only one page.
|
// Don't print empty markup if there's only one page.
|
||||||
|
@ -40,8 +38,6 @@ endif;
|
||||||
if ( ! function_exists( '_s_post_nav' ) ) :
|
if ( ! function_exists( '_s_post_nav' ) ) :
|
||||||
/**
|
/**
|
||||||
* Display navigation to next/previous post when applicable.
|
* Display navigation to next/previous post when applicable.
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function _s_post_nav() {
|
function _s_post_nav() {
|
||||||
// Don't print empty markup if there's nowhere to navigate.
|
// 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.
|
* Returns true if a blog has more than 1 category.
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
*/
|
*/
|
||||||
function _s_categorized_blog() {
|
function _s_categorized_blog() {
|
||||||
if ( false === ( $all_the_cool_cats = get_transient( '_s_categories' ) ) ) {
|
if ( false === ( $all_the_cool_cats = get_transient( '_s_categories' ) ) ) {
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
* Adds support for wp.com-specific theme functions.
|
* Adds support for wp.com-specific theme functions.
|
||||||
*
|
*
|
||||||
* @global array $themecolors
|
* @global array $themecolors
|
||||||
* @return void
|
|
||||||
*/
|
*/
|
||||||
function _s_wpcom_setup() {
|
function _s_wpcom_setup() {
|
||||||
global $themecolors;
|
global $themecolors;
|
||||||
|
|
Reference in New Issue