mirror of
https://github.com/10h30/trestle.git
synced 2026-06-05 15:09:35 +09:00
Convert spaces to tabs.
This commit is contained in:
@@ -470,16 +470,16 @@ function trestle_image_has_size( $image_id, $image_size = null ) {
|
||||
*/
|
||||
function trestle_is_current_or_descendant_post( $post_id = '', $target_id = '' ) {
|
||||
|
||||
// If the current post is the target post, return true.
|
||||
if ( $post_id == $target_id ) {
|
||||
return true;
|
||||
}
|
||||
// If the current post is the target post, return true.
|
||||
if ( $post_id == $target_id ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// If the current post is a descendant of the target post.
|
||||
if ( in_array( $target_id, get_post_ancestors( $post_id ) ) ) {
|
||||
return true;
|
||||
}
|
||||
// If the current post is a descendant of the target post.
|
||||
if ( in_array( $target_id, get_post_ancestors( $post_id ) ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user