Public Themes G, H, I: PHP Rector fixes (#7387)
This commit is contained in:
parent
a41a8f8265
commit
88570611f1
5 changed files with 6 additions and 5 deletions
|
@ -149,6 +149,7 @@ if ( ! function_exists( 'the_archive_title' ) ) :
|
||||||
* @param string $after Optional. Content to append to the title. Default empty.
|
* @param string $after Optional. Content to append to the title. Default empty.
|
||||||
*/
|
*/
|
||||||
function the_archive_title( $before = '', $after = '' ) {
|
function the_archive_title( $before = '', $after = '' ) {
|
||||||
|
$title = '';
|
||||||
if ( is_category() ) {
|
if ( is_category() ) {
|
||||||
$title = sprintf( __( 'Category: %s', 'gazette' ), single_cat_title( '', false ) );
|
$title = sprintf( __( 'Category: %s', 'gazette' ), single_cat_title( '', false ) );
|
||||||
} elseif ( is_tag() ) {
|
} elseif ( is_tag() ) {
|
||||||
|
@ -248,7 +249,7 @@ function gazette_categorized_blog() {
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Count the number of categories that are attached to the posts.
|
// Count the number of categories that are attached to the posts.
|
||||||
$all_the_cool_cats = count( $all_the_cool_cats );
|
$all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0;
|
||||||
|
|
||||||
set_transient( 'gazette_categories', $all_the_cool_cats );
|
set_transient( 'gazette_categories', $all_the_cool_cats );
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,7 @@ function illustratr_categorized_blog() {
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Count the number of categories that are attached to the posts.
|
// Count the number of categories that are attached to the posts.
|
||||||
$all_the_cool_cats = count( $all_the_cool_cats );
|
$all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0;
|
||||||
|
|
||||||
set_transient( 'all_the_cool_cats', $all_the_cool_cats );
|
set_transient( 'all_the_cool_cats', $all_the_cool_cats );
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,7 +173,7 @@ function independent_publisher_2_categorized_blog() {
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Count the number of categories that are attached to the posts.
|
// Count the number of categories that are attached to the posts.
|
||||||
$all_the_cool_cats = count( $all_the_cool_cats );
|
$all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0;
|
||||||
|
|
||||||
set_transient( 'independent_publisher_2_categories', $all_the_cool_cats );
|
set_transient( 'independent_publisher_2_categories', $all_the_cool_cats );
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ function intergalactic_2_categorized_blog() {
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Count the number of categories that are attached to the posts.
|
// Count the number of categories that are attached to the posts.
|
||||||
$all_the_cool_cats = count( $all_the_cool_cats );
|
$all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0;
|
||||||
|
|
||||||
set_transient( 'intergalactic_2_categories', $all_the_cool_cats );
|
set_transient( 'intergalactic_2_categories', $all_the_cool_cats );
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,7 +77,7 @@ function ixion_categorized_blog() {
|
||||||
) );
|
) );
|
||||||
|
|
||||||
// Count the number of categories that are attached to the posts.
|
// Count the number of categories that are attached to the posts.
|
||||||
$all_the_cool_cats = count( $all_the_cool_cats );
|
$all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0;
|
||||||
|
|
||||||
set_transient( 'ixion_categories', $all_the_cool_cats );
|
set_transient( 'ixion_categories', $all_the_cool_cats );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue