We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce0bf1 commit b5c961cCopy full SHA for b5c961c
CleanBuild/functions/wordpress/wordpress-custom.php
@@ -74,11 +74,7 @@ function yoasttobottom() {
74
function has_children() {
75
global $post;
76
$children = get_pages( array( 'child_of' => $post->ID ) );
77
- if( count( $children ) == 0 ) {
78
- return false;
79
- } else {
80
- return true;
81
- }
+ return $children ? true : false;
82
}
83
84
?>
0 commit comments