Make WordPress Core

Ticket #3642: walk_array_check.diff

File walk_array_check.diff, 502 bytes (added by charleshooper, 20 years ago)
  • wp-includes/classes.php

     
    396396        function walk($elements, $to_depth) {
    397397                $args = array_slice(func_get_args(), 2); $parents = array(); $depth = 1; $previous_element = ''; $output = '';
    398398
     399                if( !is_array($elements) )
     400                        return false;
     401
    399402                //padding at the end
    400403                $last_element->post_parent = 0;
    401404                $last_element->post_id = 0;