Skip to content

Commit

Permalink
Merge pull request #93 from szepeviktor/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu authored May 4, 2022
2 parents 9767066 + 4e5ce14 commit c0541f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simple-page-ordering.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Simple_Page_Ordering {
/**
* Handles initializing this class and returning the singleton instance after it's been cached.
*
* @return null|Simple_page_Ordering
* @return null|Simple_Page_Ordering
*/
public static function get_instance() {
// Store the instance locally to avoid private static replication
Expand Down Expand Up @@ -186,7 +186,7 @@ public static function ajax_simple_page_ordering() {
* @param int $start The start index.
* @param array $excluded Array of post IDs.
*
* @return obj|WP_Error
* @return object|WP_Error|"children"
*/
public static function page_ordering( $post_id, $previd, $nextid, $start, $excluded ) {
// real post?
Expand Down Expand Up @@ -366,7 +366,7 @@ public static function page_ordering( $post_id, $previd, $nextid, $start, $exclu
);

if ( $children->have_posts() ) {
return( 'children' );
return 'children';
}
}

Expand Down

0 comments on commit c0541f3

Please sign in to comment.