Dizin Yönetimi
Mevcut Dizin:
/home/kumasan2525/kaisen-nakora.jp/public_html/wp-includes
🔼 Üst Dizin
Dosya İşlemleri
Dosya Yükle
Yükle
Dosyalar ve Dizinler
📁
ID3
📁
IXR
📁
PHPMailer
📁
Requests
📁
SimplePie
📁
Text
📁
abilities-api
📁
assets
📁
block-bindings
📁
block-patterns
📁
block-supports
📁
blocks
📁
certificates
📁
css
📁
customize
📁
fonts
📁
html-api
📁
images
📁
interactivity-api
📁
js
📁
l10n
📁
php-compat
📁
pomo
📁
rest-api
📁
sitemaps
📁
sodium_compat
📁
style-engine
📁
theme-compat
📁
widgets
📄 abilities-api.php
İzinleri Güncelle
Düzenle
Sil
📄 abilities.php
İzinleri Güncelle
Düzenle
Sil
📄 admin-bar.php
İzinleri Güncelle
Düzenle
Sil
📄 atomlib.php
İzinleri Güncelle
Düzenle
Sil
📄 author-template.php
İzinleri Güncelle
Düzenle
Sil
📄 block-bindings.php
İzinleri Güncelle
Düzenle
Sil
📄 block-editor.php
İzinleri Güncelle
Düzenle
Sil
📄 block-i18n.json
İzinleri Güncelle
Sil
📄 block-patterns.php
İzinleri Güncelle
Düzenle
Sil
📄 block-template-utils.php
İzinleri Güncelle
Düzenle
Sil
📄 block-template.php
İzinleri Güncelle
Düzenle
Sil
📄 blocks.php
İzinleri Güncelle
Düzenle
Sil
📄 bookmark-template.php
İzinleri Güncelle
Düzenle
Sil
📄 bookmark.php
İzinleri Güncelle
Düzenle
Sil
📄 cache-compat.php
İzinleri Güncelle
Düzenle
Sil
📄 cache.php
İzinleri Güncelle
Düzenle
Sil
📄 canonical.php
İzinleri Güncelle
Düzenle
Sil
📄 capabilities.php
İzinleri Güncelle
Düzenle
Sil
📄 category-template.php
İzinleri Güncelle
Düzenle
Sil
📄 category.php
İzinleri Güncelle
Düzenle
Sil
📄 class-IXR.php
İzinleri Güncelle
Düzenle
Sil
📄 class-avif-info.php
İzinleri Güncelle
Düzenle
Sil
📄 class-feed.php
İzinleri Güncelle
Düzenle
Sil
📄 class-http.php
İzinleri Güncelle
Düzenle
Sil
📄 class-json.php
İzinleri Güncelle
Düzenle
Sil
📄 class-oembed.php
İzinleri Güncelle
Düzenle
Sil
📄 class-phpass.php
İzinleri Güncelle
Düzenle
Sil
📄 class-phpmailer.php
İzinleri Güncelle
Düzenle
Sil
📄 class-pop3.php
İzinleri Güncelle
Düzenle
Sil
📄 class-requests.php
İzinleri Güncelle
Düzenle
Sil
📄 class-simplepie.php
İzinleri Güncelle
Düzenle
Sil
📄 class-smtp.php
İzinleri Güncelle
Düzenle
Sil
📄 class-snoopy.php
İzinleri Güncelle
Düzenle
Sil
📄 class-walker-category-dropdown.php
İzinleri Güncelle
Düzenle
Sil
📄 class-walker-category.php
İzinleri Güncelle
Düzenle
Sil
📄 class-walker-comment.php
İzinleri Güncelle
Düzenle
Sil
📄 class-walker-nav-menu.php
İzinleri Güncelle
Düzenle
Sil
📄 class-walker-page-dropdown.php
İzinleri Güncelle
Düzenle
Sil
📄 class-walker-page.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-admin-bar.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-ajax-response.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-application-passwords.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-bindings-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-bindings-source.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-editor-context.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-list.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-metadata-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-parser-block.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-parser-frame.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-parser.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-pattern-categories-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-patterns-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-processor.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-styles-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-supports.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-template.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-templates-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-type-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block-type.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-block.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-classic-to-block-menu-converter.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-comment-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-comment.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-customize-control.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-customize-manager.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-customize-nav-menus.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-customize-panel.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-customize-section.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-customize-setting.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-customize-widgets.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-date-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-dependencies.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-dependency.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-duotone.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-editor.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-embed.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-error.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-exception.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-fatal-error-handler.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-feed-cache-transient.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-feed-cache.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-hook.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-cookie.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-curl.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-encoding.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-ixr-client.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-proxy.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-requests-hooks.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-requests-response.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-response.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http-streams.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-http.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-image-editor-gd.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-image-editor-imagick.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-image-editor.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-list-util.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-locale-switcher.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-locale.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-matchesmapregex.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-meta-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-metadata-lazyloader.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-navigation-fallback.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-network-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-network.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-object-cache.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-oembed-controller.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-oembed.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-paused-extensions-storage.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-phpmailer.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-plugin-dependencies.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-post-type.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-post.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-recovery-mode-cookie-service.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-recovery-mode-email-service.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-recovery-mode-key-service.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-recovery-mode-link-service.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-recovery-mode.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-rewrite.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-role.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-roles.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-script-modules.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-scripts.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-session-tokens.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-simplepie-file.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-simplepie-sanitize-kses.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-site-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-site.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-speculation-rules.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-styles.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-tax-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-taxonomy.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-term-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-term.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-text-diff-renderer-inline.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-text-diff-renderer-table.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-textdomain-registry.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-theme-json-data.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-theme-json-resolver.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-theme-json-schema.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-theme-json.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-theme.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-token-map.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-url-pattern-prefixer.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-user-meta-session-tokens.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-user-query.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-user-request.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-user.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-walker.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-widget-factory.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-widget.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp-xmlrpc-server.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wp.php
İzinleri Güncelle
Düzenle
Sil
📄 class-wpdb.php
İzinleri Güncelle
Düzenle
Sil
📄 class.wp-dependencies.php
İzinleri Güncelle
Düzenle
Sil
📄 class.wp-scripts.php
İzinleri Güncelle
Düzenle
Sil
📄 class.wp-styles.php
İzinleri Güncelle
Düzenle
Sil
📄 comment-template.php
İzinleri Güncelle
Düzenle
Sil
📄 comment.php
İzinleri Güncelle
Düzenle
Sil
📄 compat-utf8.php
İzinleri Güncelle
Düzenle
Sil
📄 compat.php
İzinleri Güncelle
Düzenle
Sil
📄 cron.php
İzinleri Güncelle
Düzenle
Sil
📄 date.php
İzinleri Güncelle
Düzenle
Sil
📄 default-constants.php
İzinleri Güncelle
Düzenle
Sil
📄 default-filters.php
İzinleri Güncelle
Düzenle
Sil
📄 default-widgets.php
İzinleri Güncelle
Düzenle
Sil
📄 deprecated.php
İzinleri Güncelle
Düzenle
Sil
📄 embed-template.php
İzinleri Güncelle
Düzenle
Sil
📄 embed.php
İzinleri Güncelle
Düzenle
Sil
📄 error-protection.php
İzinleri Güncelle
Düzenle
Sil
📄 feed-atom-comments.php
İzinleri Güncelle
Düzenle
Sil
📄 feed-atom.php
İzinleri Güncelle
Düzenle
Sil
📄 feed-rdf.php
İzinleri Güncelle
Düzenle
Sil
📄 feed-rss.php
İzinleri Güncelle
Düzenle
Sil
📄 feed-rss2-comments.php
İzinleri Güncelle
Düzenle
Sil
📄 feed-rss2.php
İzinleri Güncelle
Düzenle
Sil
📄 feed.php
İzinleri Güncelle
Düzenle
Sil
📄 fonts.php
İzinleri Güncelle
Düzenle
Sil
📄 formatting.php
İzinleri Güncelle
Düzenle
Sil
📄 functions.php
İzinleri Güncelle
Düzenle
Sil
📄 functions.wp-scripts.php
İzinleri Güncelle
Düzenle
Sil
📄 functions.wp-styles.php
İzinleri Güncelle
Düzenle
Sil
📄 general-template.php
İzinleri Güncelle
Düzenle
Sil
📄 global-styles-and-settings.php
İzinleri Güncelle
Düzenle
Sil
📄 http.php
İzinleri Güncelle
Düzenle
Sil
📄 https-detection.php
İzinleri Güncelle
Düzenle
Sil
📄 https-migration.php
İzinleri Güncelle
Düzenle
Sil
📄 kses.php
İzinleri Güncelle
Düzenle
Sil
📄 l10n.php
İzinleri Güncelle
Düzenle
Sil
📄 link-template.php
İzinleri Güncelle
Düzenle
Sil
📄 load.php
İzinleri Güncelle
Düzenle
Sil
📄 locale.php
İzinleri Güncelle
Düzenle
Sil
📄 media-template.php
İzinleri Güncelle
Düzenle
Sil
📄 media.php
İzinleri Güncelle
Düzenle
Sil
📄 meta.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-blogs.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-default-constants.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-default-filters.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-deprecated.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-files.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-functions.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-load.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-network.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-settings.php
İzinleri Güncelle
Düzenle
Sil
📄 ms-site.php
İzinleri Güncelle
Düzenle
Sil
📄 nav-menu-template.php
İzinleri Güncelle
Düzenle
Sil
📄 nav-menu.php
İzinleri Güncelle
Düzenle
Sil
📄 option.php
İzinleri Güncelle
Düzenle
Sil
📄 pluggable-deprecated.php
İzinleri Güncelle
Düzenle
Sil
📄 pluggable.php
İzinleri Güncelle
Düzenle
Sil
📄 plugin.php
İzinleri Güncelle
Düzenle
Sil
📄 post-formats.php
İzinleri Güncelle
Düzenle
Sil
📄 post-template.php
İzinleri Güncelle
Düzenle
Sil
📄 post-thumbnail-template.php
İzinleri Güncelle
Düzenle
Sil
📄 post.php
İzinleri Güncelle
Düzenle
Sil
📄 query.php
İzinleri Güncelle
Düzenle
Sil
📄 registration-functions.php
İzinleri Güncelle
Düzenle
Sil
📄 registration.php
İzinleri Güncelle
Düzenle
Sil
📄 rest-api.php
İzinleri Güncelle
Düzenle
Sil
📄 revision.php
İzinleri Güncelle
Düzenle
Sil
📄 rewrite.php
İzinleri Güncelle
Düzenle
Sil
📄 robots-template.php
İzinleri Güncelle
Düzenle
Sil
📄 rss-functions.php
İzinleri Güncelle
Düzenle
Sil
📄 rss.php
İzinleri Güncelle
Düzenle
Sil
📄 script-loader.php
İzinleri Güncelle
Düzenle
Sil
📄 script-modules.php
İzinleri Güncelle
Düzenle
Sil
📄 session.php
İzinleri Güncelle
Düzenle
Sil
📄 shortcodes.php
İzinleri Güncelle
Düzenle
Sil
📄 sitemaps.php
İzinleri Güncelle
Düzenle
Sil
📄 speculative-loading.php
İzinleri Güncelle
Düzenle
Sil
📄 spl-autoload-compat.php
İzinleri Güncelle
Düzenle
Sil
📄 style-engine.php
İzinleri Güncelle
Düzenle
Sil
📄 taxonomy.php
İzinleri Güncelle
Düzenle
Sil
📄 template-canvas.php
İzinleri Güncelle
Düzenle
Sil
📄 template-loader.php
İzinleri Güncelle
Düzenle
Sil
📄 template.php
İzinleri Güncelle
Düzenle
Sil
📄 theme-i18n.json
İzinleri Güncelle
Sil
📄 theme-previews.php
İzinleri Güncelle
Düzenle
Sil
📄 theme-templates.php
İzinleri Güncelle
Düzenle
Sil
📄 theme.json
İzinleri Güncelle
Sil
📄 theme.php
İzinleri Güncelle
Düzenle
Sil
📄 update.php
İzinleri Güncelle
Düzenle
Sil
📄 user.php
İzinleri Güncelle
Düzenle
Sil
📄 utf8.php
İzinleri Güncelle
Düzenle
Sil
📄 vars.php
İzinleri Güncelle
Düzenle
Sil
📄 version.php
İzinleri Güncelle
Düzenle
Sil
📄 widgets.php
İzinleri Güncelle
Düzenle
Sil
📄 wp-db.php
İzinleri Güncelle
Düzenle
Sil
📄 wp-diff.php
İzinleri Güncelle
Düzenle
Sil
Dosya Düzenle: class-walker-category.php
<?php /** * Taxonomy API: Walker_Category class * * @package WordPress * @subpackage Template * @since 4.4.0 */ /** * Core class used to create an HTML list of categories. * * @since 2.1.0 * * @see Walker */ class Walker_Category extends Walker { /** * What the class handles. * * @since 2.1.0 * @var string * * @see Walker::$tree_type */ public $tree_type = 'category'; /** * Database fields to use. * * @since 2.1.0 * @var string[] * * @see Walker::$db_fields * @todo Decouple this */ public $db_fields = array( 'parent' => 'parent', 'id' => 'term_id', ); /** * Starts the list before the elements are added. * * @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 category. Used for tab indentation. Default 0. * @param array $args Optional. An array of arguments. Will only append content if style argument * value is 'list'. See wp_list_categories(). Default empty array. */ public function start_lvl( &$output, $depth = 0, $args = array() ) { if ( 'list' !== $args['style'] ) { return; } $indent = str_repeat( "\t", $depth ); $output .= "$indent<ul class='children'>\n"; } /** * Ends the list of after the elements are added. * * @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 category. Used for tab indentation. Default 0. * @param array $args Optional. An array of arguments. Will only append content if style argument * value is 'list'. See wp_list_categories(). Default empty array. */ public function end_lvl( &$output, $depth = 0, $args = array() ) { if ( 'list' !== $args['style'] ) { return; } $indent = str_repeat( "\t", $depth ); $output .= "$indent</ul>\n"; } /** * Starts the element output. * * @since 2.1.0 * @since 5.9.0 Renamed `$category` to `$data_object` and `$id` to `$current_object_id` * to match parent class for PHP 8 named parameter support. * * @see Walker::start_el() * * @param string $output Used to append additional content (passed by reference). * @param WP_Term $data_object Category data object. * @param int $depth Optional. Depth of category in reference to parents. Default 0. * @param array $args Optional. An array of arguments. See wp_list_categories(). * Default empty array. * @param int $current_object_id Optional. ID of the current category. 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. $category = $data_object; /** This filter is documented in wp-includes/category-template.php */ $cat_name = apply_filters( 'list_cats', esc_attr( $category->name ), $category ); // Don't generate an element if the category name is empty. if ( '' === $cat_name ) { return; } $atts = array(); $atts['href'] = get_term_link( $category ); if ( $args['use_desc_for_title'] && ! empty( $category->description ) ) { /** * Filters the category description for display. * * @since 1.2.0 * * @param string $description Category description. * @param WP_Term $category Category object. */ $atts['title'] = strip_tags( apply_filters( 'category_description', $category->description, $category ) ); } /** * Filters the HTML attributes applied to a category list item's anchor element. * * @since 5.2.0 * * @param array $atts { * The HTML attributes applied to the list item's `<a>` element, empty strings are ignored. * * @type string $href The href attribute. * @type string $title The title attribute. * } * @param WP_Term $category Term data object. * @param int $depth Depth of category, used for padding. * @param array $args An array of arguments. * @param int $current_object_id ID of the current category. */ $atts = apply_filters( 'category_list_link_attributes', $atts, $category, $depth, $args, $current_object_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 . '"'; } } $link = sprintf( '<a%s>%s</a>', $attributes, $cat_name ); if ( ! empty( $args['feed_image'] ) || ! empty( $args['feed'] ) ) { $link .= ' '; if ( empty( $args['feed_image'] ) ) { $link .= '('; } $link .= '<a href="' . esc_url( get_term_feed_link( $category, $category->taxonomy, $args['feed_type'] ) ) . '"'; if ( empty( $args['feed'] ) ) { /* translators: %s: Category name. */ $alt = ' alt="' . sprintf( __( 'Feed for all posts filed under %s' ), $cat_name ) . '"'; } else { $alt = ' alt="' . $args['feed'] . '"'; $name = $args['feed']; $link .= empty( $args['title'] ) ? '' : $args['title']; } $link .= '>'; if ( empty( $args['feed_image'] ) ) { $link .= $name; } else { $link .= "<img src='" . esc_url( $args['feed_image'] ) . "'$alt" . ' />'; } $link .= '</a>'; if ( empty( $args['feed_image'] ) ) { $link .= ')'; } } if ( ! empty( $args['show_count'] ) ) { $link .= ' (' . number_format_i18n( $category->count ) . ')'; } if ( 'list' === $args['style'] ) { $output .= "\t<li"; $css_classes = array( 'cat-item', 'cat-item-' . $category->term_id, ); if ( ! empty( $args['current_category'] ) ) { // 'current_category' can be an array, so we use `get_terms()`. $_current_terms = get_terms( array( 'taxonomy' => $category->taxonomy, 'include' => $args['current_category'], 'hide_empty' => false, ) ); foreach ( $_current_terms as $_current_term ) { if ( $category->term_id === $_current_term->term_id ) { $css_classes[] = 'current-cat'; $link = str_replace( '<a', '<a aria-current="page"', $link ); } elseif ( $category->term_id === $_current_term->parent ) { $css_classes[] = 'current-cat-parent'; } while ( $_current_term->parent ) { if ( $category->term_id === $_current_term->parent ) { $css_classes[] = 'current-cat-ancestor'; break; } $_current_term = get_term( $_current_term->parent, $category->taxonomy ); } } } /** * Filters the list of CSS classes to include with each category in the list. * * @since 4.2.0 * * @see wp_list_categories() * * @param string[] $css_classes An array of CSS classes to be applied to each list item. * @param WP_Term $category Category data object. * @param int $depth Depth of page, used for padding. * @param array $args An array of wp_list_categories() arguments. */ $css_classes = implode( ' ', apply_filters( 'category_css_class', $css_classes, $category, $depth, $args ) ); $css_classes = $css_classes ? ' class="' . esc_attr( $css_classes ) . '"' : ''; $output .= $css_classes; $output .= ">$link\n"; } elseif ( isset( $args['separator'] ) ) { $output .= "\t$link" . $args['separator'] . "\n"; } else { $output .= "\t$link<br />\n"; } } /** * Ends the element output, if needed. * * @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 object $data_object Category data object. Not used. * @param int $depth Optional. Depth of category. Not used. * @param array $args Optional. An array of arguments. Only uses 'list' for whether should * append to output. See wp_list_categories(). Default empty array. */ public function end_el( &$output, $data_object, $depth = 0, $args = array() ) { if ( 'list' !== $args['style'] ) { return; } $output .= "</li>\n"; } }
Kaydet