编辑:class-walker-page.php
<?php /** * Post API: Walker_Page class * * @package WordPress * @subpackage Template * @since 4.4.0 */ /** * Core walker class used to create an HTML list of pages. * * @since 2.1.0 * * @see Walker */ class Walker_Page extends Walker { /** * What the class handles. * * @since 2.1.0 * @var string * * @see Walker::$tree_type */ public $tree_type = 'page'; /** * Database fields to use. * * @since 2.1.0 * @var string[] * * @see Walker::$db_fields * @todo Decouple this. */ public $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID', ); /** * Outputs the beginning of the current level in the tree before elements are output. * * @since 2.1.0 * * @see Walker::start_lvl() * * @param string $output Used to append additional content (passed by reference). * @param int $depth Optional. Depth of page. Used for padding. Default 0. * @param array $args Optional. Arguments for outputting the next level. * Default empty array. */ public function start_lvl( &$output, $depth = 0, $args = array() ) { if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { $t = "\t"; $n = "\n"; } else { $t = ''; $n = ''; } $indent = str_repeat( $t, $depth ); $output .= "{$n}{$indent}<ul class='children'>{$n}"; } /** * Outputs the end of the current level in the tree after elements are output. * * @since 2.1.0 * * @see Walker::end_lvl() * * @param string $output Used to append additional content (passed by reference). * @param int $depth Optional. Depth of page. Used for padding. Default 0. * @param array $args Optional. Arguments for outputting the end of the current level. * Default empty array. */ public function end_lvl( &$output, $depth = 0, $args = array() ) { if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { $t = "\t"; $n = "\n"; } else { $t = ''; $n = ''; } $indent = str_repeat( $t, $depth ); $output .= "{$indent}</ul>{$n}"; } /** * Outputs the beginning of the current element in the tree. * * @see Walker::start_el() * @since 2.1.0 * @since 5.9.0 Renamed `$page` to `$data_object` and `$current_page` to `$current_object_id` * to match parent class for PHP 8 named parameter support. * * @param string $output Used to append additional content. Passed by reference. * @param WP_Post $data_object Page data object. * @param int $depth Optional. Depth of page. Used for padding. Default 0. * @param array $args Optional. Array of arguments. Default empty array. * @param int $current_object_id Optional. ID of the current page. Default 0. */ public function start_el( &$output, $data_object, $depth = 0, $args = array(), $current_object_id = 0 ) { // Restores the more descriptive, specific name for use within this method. $page = $data_object; $current_page_id = $current_object_id; if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { $t = "\t"; $n = "\n"; } else { $t = ''; $n = ''; } if ( $depth ) { $indent = str_repeat( $t, $depth ); } else { $indent = ''; } $css_class = array( 'page_item', 'page-item-' . $page->ID ); if ( isset( $args['pages_with_children'][ $page->ID ] ) ) { $css_class[] = 'page_item_has_children'; } if ( ! empty( $current_page_id ) ) { $_current_page = get_post( $current_page_id ); if ( $_current_page && in_array( $page->ID, $_current_page->ancestors, true ) ) { $css_class[] = 'current_page_ancestor'; } if ( $page->ID === (int) $current_page_id ) { $css_class[] = 'current_page_item'; } elseif ( $_current_page && $page->ID === $_current_page->post_parent ) { $css_class[] = 'current_page_parent'; } } elseif ( (int) get_option( 'page_for_posts' ) === $page->ID ) { $css_class[] = 'current_page_parent'; } /** * Filters the list of CSS classes to include with each page item in the list. * * @since 2.8.0 * * @see wp_list_pages() * * @param string[] $css_class An array of CSS classes to be applied to each list item. * @param WP_Post $page Page data object. * @param int $depth Depth of page, used for padding. * @param array $args An array of arguments. * @param int $current_page_id ID of the current page. */ $css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page_id ) ); $css_classes = $css_classes ? ' class="' . esc_attr( $css_classes ) . '"' : ''; if ( '' === $page->post_title ) { /* translators: %d: ID of a post. */ $page->post_title = sprintf( __( '#%d (no title)' ), $page->ID ); } $args['link_before'] = empty( $args['link_before'] ) ? '' : $args['link_before']; $args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after']; $atts = array(); $atts['href'] = get_permalink( $page->ID ); $atts['aria-current'] = ( $page->ID === (int) $current_page_id ) ? 'page' : ''; /** * Filters the HTML attributes applied to a page menu item's anchor element. * * @since 4.8.0 * * @param array $atts { * The HTML attributes applied to the menu item's `<a>` element, empty strings are ignored. * * @type string $href The href attribute. * @type string $aria-current The aria-current attribute. * } * @param WP_Post $page Page data object. * @param int $depth Depth of page, used for padding. * @param array $args An array of arguments. * @param int $current_page_id ID of the current page. */ $atts = apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page_id ); $attributes = ''; foreach ( $atts as $attr => $value ) { if ( is_scalar( $value ) && '' !== $value && false !== $value ) { $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); $attributes .= ' ' . $attr . '="' . $value . '"'; } } $output .= $indent . sprintf( '<li%s><a%s>%s%s%s</a>', $css_classes, $attributes, $args['link_before'], /** This filter is documented in wp-includes/post-template.php */ apply_filters( 'the_title', $page->post_title, $page->ID ), $args['link_after'] ); if ( ! empty( $args['show_date'] ) ) { if ( 'modified' === $args['show_date'] ) { $time = $page->post_modified; } else { $time = $page->post_date; } $date_format = empty( $args['date_format'] ) ? '' : $args['date_format']; $output .= ' ' . mysql2date( $date_format, $time ); } } /** * Outputs the end of the current element in the tree. * * @since 2.1.0 * @since 5.9.0 Renamed `$page` to `$data_object` to match parent class for PHP 8 named parameter support. * * @see Walker::end_el() * * @param string $output Used to append additional content. Passed by reference. * @param WP_Post $data_object Page data object. Not used. * @param int $depth Optional. Depth of page. Default 0 (unused). * @param array $args Optional. Array of arguments. Default empty array. */ public function end_el( &$output, $data_object, $depth = 0, $args = array() ) { if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) { $t = "\t"; $n = "\n"; } else { $t = ''; $n = ''; } $output .= "</li>{$n}"; } }
保存文件
位置:
home
/
caveqifv
/
caventekandina.com.co
/
wp-includes
批量上传
创建
创建
批量权限
批量删除
名称
权限
大小
修改时间
操作
↑ 返回上级
-
-
-
-
ID3
drwxr-xr-x
-
2026-05-07 07:32
权限
删除
重命名
IXR
drwxr-xr-x
-
2024-10-28 04:32
权限
删除
重命名
PHPMailer
drwxr-xr-x
-
2026-05-07 07:34
权限
删除
重命名
Requests
drwxr-xr-x
-
2026-05-07 06:14
权限
删除
重命名
SimplePie
drwxr-xr-x
-
2026-05-07 06:18
权限
删除
重命名
Text
drwxr-xr-x
-
2026-05-07 07:18
权限
删除
重命名
abilities-api
drwxr-xr-x
-
2026-05-07 07:09
权限
删除
重命名
assets
drwxr-xr-x
-
2026-05-07 07:19
权限
删除
重命名
block-bindings
drwxr-xr-x
-
2026-05-07 07:31
权限
删除
重命名
block-patterns
drwxr-xr-x
-
2026-05-07 01:18
权限
删除
重命名
block-supports
drwxr-xr-x
-
2026-05-07 07:34
权限
删除
重命名
blocks
drwxr-xr-x
-
2026-05-07 07:32
权限
删除
重命名
certificates
drwxr-xr-x
-
2026-05-07 06:12
权限
删除
重命名
css
drwxr-xr-x
-
2025-04-16 18:37
权限
删除
重命名
customize
drwxr-xr-x
-
2026-05-07 07:28
权限
删除
重命名
fonts
drwxr-xr-x
-
2026-05-07 07:06
权限
删除
重命名
html-api
drwxr-xr-x
-
2026-05-07 07:31
权限
删除
重命名
images
drwxr-xr-x
-
2026-05-07 07:34
权限
删除
重命名
interactivity-api
drwxr-xr-x
-
2026-05-07 08:00
权限
删除
重命名
js
drwxr-xr-x
-
2026-05-07 06:05
权限
删除
重命名
l10n
drwxr-xr-x
-
2026-05-07 07:35
权限
删除
重命名
php-compat
drwxr-xr-x
-
2024-10-28 04:32
权限
删除
重命名
pomo
drwxr-xr-x
-
2026-05-07 07:34
权限
删除
重命名
rest-api
drwxr-xr-x
-
2024-10-28 04:32
权限
删除
重命名
sitemaps
drwxr-xr-x
-
2026-05-07 07:12
权限
删除
重命名
sodium_compat
drwxr-xr-x
-
2026-05-07 05:00
权限
删除
重命名
style-engine
drwxr-xr-x
-
2026-05-07 05:01
权限
删除
重命名
theme-compat
drwxr-xr-x
-
2026-05-07 07:10
权限
删除
重命名
widgets
drwxr-xr-x
-
2026-05-07 06:03
权限
删除
重命名
author-template.php
-rw-r--r--
18.94 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
block-i18n.json
-rw-r--r--
316 B
2021-08-11 18:38
编辑
下载
权限
删除
重命名
block-template-utils-20260507045943.php
-rw-r--r--
61.02 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
bookmark.php
-rw-r--r--
15.07 KB
2024-03-23 23:50
编辑
下载
权限
删除
重命名
canonical-20260507050333.php
-rw-r--r--
33.83 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
canonical.php
-rw-r--r--
33.83 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
category.php
-rw-r--r--
12.53 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-avif-info.php
-rw-r--r--
28.92 KB
2024-04-27 00:32
编辑
下载
权限
删除
重命名
class-phpmailer.php
-rw-r--r--
664 B
2020-07-21 22:28
编辑
下载
权限
删除
重命名
class-pop3.php
-rw-r--r--
20.63 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-smtp.php
-rw-r--r--
457 B
2021-01-27 00:15
编辑
下载
权限
删除
重命名
class-snoopy-20260507035813.php
-rw-r--r--
36.83 KB
2023-02-04 00:05
编辑
下载
权限
删除
重命名
class-walker-category-dropdown.php
-rw-r--r--
2.41 KB
2023-09-14 22:16
编辑
下载
权限
删除
重命名
class-walker-category.php
-rw-r--r--
8.28 KB
2023-09-08 19:02
编辑
下载
权限
删除
重命名
class-walker-nav-menu-20260507070926.php
-rw-r--r--
11.76 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-walker-page-dropdown.php
-rw-r--r--
2.65 KB
2023-09-14 22:16
编辑
下载
权限
删除
重命名
class-walker-page.php
-rw-r--r--
7.43 KB
2023-09-14 22:16
编辑
下载
权限
删除
重命名
class-wp-ajax-response-20260507060638.php
-rw-r--r--
5.14 KB
2022-09-13 01:17
编辑
下载
权限
删除
重命名
class-wp-ajax-response.php
-rw-r--r--
5.14 KB
2022-09-13 01:17
编辑
下载
权限
删除
重命名
class-wp-block-bindings-registry.php
-rw-r--r--
8.28 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-block-metadata-registry-20260507072840.php
-rw-r--r--
11.62 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-block-metadata-registry.php
-rw-r--r--
11.62 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-block-pattern-categories-registry.php
-rw-r--r--
5.32 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-block-styles-registry.php
-rw-r--r--
6.34 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-block-supports.php
-rw-r--r--
5.49 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-block-template-20260507024316.php
-rw-r--r--
1.99 KB
2024-11-13 23:17
编辑
下载
权限
删除
重命名
class-wp-block-templates-registry.php
-rw-r--r--
7.02 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-block-type-registry.php
-rw-r--r--
4.91 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-block-type.php
-rw-r--r--
16.86 KB
2024-05-02 09:31
编辑
下载
权限
删除
重命名
class-wp-classic-to-block-menu-converter.php
-rw-r--r--
3.97 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-customize-manager-20260507024356-20260507050655.php
-rw-r--r--
198.38 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-customize-manager-20260507024356.php
-rw-r--r--
198.38 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-customize-nav-menus.php
-rw-r--r--
56.65 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-dependencies-20260507024246.php
-rw-r--r--
16.61 KB
2026-02-03 19:37
编辑
下载
权限
删除
重命名
class-wp-duotone.php
-rw-r--r--
39.83 KB
2024-06-14 21:48
编辑
下载
权限
删除
重命名
class-wp-locale-switcher-20260507072836.php
-rw-r--r--
6.62 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-locale-switcher.php
-rw-r--r--
6.62 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-locale.php
-rw-r--r--
16.49 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-paused-extensions-storage.php
-rw-r--r--
4.99 KB
2024-11-13 23:17
编辑
下载
权限
删除
重命名
class-wp-post-type.php
-rw-r--r--
29.96 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-cookie-service.php
-rw-r--r--
6.72 KB
2022-10-04 13:29
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-email-service-20260507073323.php
-rw-r--r--
10.92 KB
2023-05-03 01:15
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-email-service.php
-rw-r--r--
10.92 KB
2023-05-03 01:15
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-key-service-plain.php
-rw-r--r--
972 B
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-key-service.php
-rw-r--r--
4.77 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-recovery-mode-link-service.php
-rw-r--r--
3.38 KB
2022-09-13 01:17
编辑
下载
权限
删除
重命名
class-wp-recovery-mode.php
-rw-r--r--
11.18 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-role.php
-rw-r--r--
2.46 KB
2023-09-08 19:02
编辑
下载
权限
删除
重命名
class-wp-roles.php
-rw-r--r--
9.17 KB
2026-02-03 19:37
编辑
下载
权限
删除
重命名
class-wp-session-tokens.php
-rw-r--r--
7.15 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-simplepie-sanitize-kses.php
-rw-r--r--
1.87 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-site-query-20260507060430.php
-rw-r--r--
30.91 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-site.php
-rw-r--r--
7.29 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-tax-query.php
-rw-r--r--
19.12 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-taxonomy.php
-rw-r--r--
18.12 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
class-wp-textdomain-registry.php
-rw-r--r--
10.24 KB
2024-11-21 18:36
编辑
下载
权限
删除
重命名
class-wp-translation-file-20260507072842.php
-rw-r--r--
6.13 KB
2024-04-16 05:33
编辑
下载
权限
删除
重命名
class-wp-translation-file.php
-rw-r--r--
6.13 KB
2024-04-16 05:33
编辑
下载
权限
删除
重命名
class-wp-user-meta-session-tokens.php
-rw-r--r--
2.94 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
class-wp-widget-factory.php
-rw-r--r--
3.27 KB
2022-09-13 01:17
编辑
下载
权限
删除
重命名
cron.php
-rw-r--r--
41.98 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
default-filters.php
-rw-r--r--
37.02 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
error_log
-rw-r--r--
47.11 KB
2026-05-07 06:57
编辑
下载
权限
删除
重命名
feed-rdf.php
-rw-r--r--
2.61 KB
2020-01-29 11:15
编辑
下载
权限
删除
重命名
fonts.php
-rw-r--r--
9.56 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
global-styles-and-settings.php
-rw-r--r--
20.71 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
kses.php
-rw-r--r--
81.73 KB
2026-03-10 18:32
编辑
下载
权限
删除
重命名
l10n.php
-rw-r--r--
67.18 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
link-template.php
-rw-r--r--
156.36 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
locale.php
-rw-r--r--
162 B
2019-10-09 02:49
编辑
下载
权限
删除
重命名
media-template-20260507050408.php
-rw-r--r--
61.72 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
media-template.php
-rw-r--r--
61.72 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
media.php
-rw-r--r--
216.06 KB
2026-03-10 18:32
编辑
下载
权限
删除
重命名
meta-20260507060411.php
-rw-r--r--
65 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
meta.php
-rw-r--r--
65 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
ms-blogs-20260507070856.php
-rw-r--r--
25.24 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
ms-blogs.php
-rw-r--r--
25.24 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
ms-default-filters.php
-rw-r--r--
6.48 KB
2023-02-24 11:53
编辑
下载
权限
删除
重命名
ms-files.php
-rw-r--r--
2.79 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
ms-site-20260507050418.php
-rw-r--r--
40.74 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
ms-site.php
-rw-r--r--
40.74 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
nav-menu-template.php
-rw-r--r--
25.38 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
option-20260507060504.php
-rw-r--r--
102.57 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
option.php
-rw-r--r--
102.57 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
post-formats.php
-rw-r--r--
6.94 KB
2024-05-28 01:59
编辑
下载
权限
删除
重命名
post-template.php
-rw-r--r--
67.04 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
post-thumbnail-template.php
-rw-r--r--
10.62 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
registration-functions.php
-rw-r--r--
200 B
2020-11-12 21:47
编辑
下载
权限
删除
重命名
registration.php
-rw-r--r--
200 B
2020-11-12 21:47
编辑
下载
权限
删除
重命名
rewrite.php
-rw-r--r--
19.03 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
rss-20260507060524.php
-rw-r--r--
22.66 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
sitemaps.php
-rw-r--r--
3.16 KB
2021-05-16 03:08
编辑
下载
权限
删除
重命名
taxonomy.php
-rw-r--r--
172.91 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
template-20260507045958.php
-rw-r--r--
35.97 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
theme-i18n.json
-rw-r--r--
1.69 KB
2026-02-03 19:37
编辑
下载
权限
删除
重命名
theme-templates.php
-rw-r--r--
6.09 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名
theme.json
-rw-r--r--
8.71 KB
2025-12-03 15:12
编辑
下载
权限
删除
重命名
vars.php
-rw-r--r--
6.41 KB
2025-04-16 18:37
编辑
下载
权限
删除
重命名