- * @package WordPress
- * @since 2.7
- * @param int $max_depth = 0 means display all levels; $max_depth > 0 specifies the number of display levels.
- * @param int $page_num the specific page number, beginning with 1.
- * @return XHTML of the specified page of elements
- */
- function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
-
- /* sanity check */
- if ( empty($elements) || $max_depth < -1 )
+ * $max_depth = 0 means display all levels.
+ * $max_depth > 0 specifies the number of display levels.
+ *
+ * @since 2.7.0
+ *
+ * @param array $elements
+ * @param int $max_depth The maximum hierarchical depth.
+ * @param int $page_num The specific page number, beginning with 1.
+ * @param int $per_page
+ * @return string XHTML of the specified page of elements
+ */
+ public function paged_walk( $elements, $max_depth, $page_num, $per_page ) {
+ if ( empty( $elements ) || $max_depth < -1 ) {