/var/www/leolaart.com/www/wp-content/plugins/polylang/include
NameSizeModeActions
api.php177630666editdlrm
base.php59320666editdlrm
cache.php25030666editdlrm
class-polylang.php87590666editdlrm
cookie.php34330666editdlrm
crud-posts.php155110666editdlrm
crud-terms.php101050666editdlrm
db-tools.php10380666editdlrm
filter-rest-routes.php49880666editdlrm
filters-links.php56860666editdlrm
filters-sanitization.php33110666editdlrm
filters-widgets-options.php26340666editdlrm
filters.php157520666editdlrm
functions.php71730666editdlrm
language-deprecated.php73550666editdlrm
language-factory.php95350666editdlrm
language.php184700666editdlrm
license.php94150666editdlrm
links-abstract-domain.php32400666editdlrm
links-default.php31000666editdlrm
links-directory.php97210666editdlrm
links-domain.php31360666editdlrm
links-model.php66390666editdlrm
links-permalinks.php57530666editdlrm
links-subdomain.php22160666editdlrm
links.php13310666editdlrm
mo.php20200666editdlrm
model.php346510666editdlrm
nav-menu.php45330666editdlrm
olt-manager.php85670666editdlrm
query.php65440666editdlrm
rest-request.php31940666editdlrm
static-pages.php64150666editdlrm
switcher.php111510666editdlrm
translatable-object-with-types-interface.php11270666editdlrm
translatable-object-with-types-trait.php19360666editdlrm
translatable-object.php135930666editdlrm
translatable-objects.php35690666editdlrm
translate-option.php127590666editdlrm
translated-object.php167860666editdlrm
translated-post.php119640666editdlrm
translated-term.php100080666editdlrm
walker-dropdown.php35380666editdlrm
walker-list.php23080666editdlrm
walker.php23360666editdlrm
widget-calendar.php96670666editdlrm
widget-languages.php46780666editdlrm
Edit: /var/www/leolaart.com/www/wp-content/plugins/polylang/include/walker.php (2336B)
'parent', 'id' => 'id' ); /** * Overrides Walker::display_element as it expects an object with a parent property. * * @since 1.2 * @since 3.4 Refactored and moved in `PLL_Walker`. * * @param PLL_Language|stdClass $element Data object. `PLL_language` in our case. * @param array $children_elements List of elements to continue traversing. * @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 Passed by reference. Used to append additional content. * @return void */ public function display_element( $element, &$children_elements, $max_depth, $depth, $args, &$output ) { if ( $element instanceof PLL_Language ) { $element = $element->to_std_class(); } $element->parent = $element->id = 0; // Don't care about this. parent::display_element( $element, $children_elements, $max_depth, $depth, $args, $output ); } /** * Sets `PLL_Walker::walk()` arguments as it should * and triggers an error in case of misuse of them. * * @since 3.4 * * @param array|int $max_depth The maximum hierarchical depth. Passed by reference. * @param array $args Additional arguments. Passed by reference. * @return void */ protected function maybe_fix_walk_args( &$max_depth, &$args ) { if ( ! is_array( $max_depth ) ) { $args = isset( $args[0] ) ? $args[0] : array(); return; } // Backward compatibility with Polylang < 2.6.7 _doing_it_wrong( __CLASS__ . '::walk()', 'The method expects an integer as second parameter.', '2.6.7' ); $args = $max_depth; $max_depth = -1; } }