/home/techb158/dev.aleamaralawal.com/wp-content/plugins/polylang/src
NameSizeModeActions
admin/-0755rm
Capabilities/-0755rm
frontend/-0755rm
install/-0755rm
integrations/-0755rm
Model/-0755rm
modules/-0755rm
Options/-0755rm
settings/-0755rm
api.php222910644editdlrm
base.php62590644editdlrm
cache.php24540644editdlrm
class-polylang.php85370644editdlrm
constant-functions.php18530644editdlrm
cookie.php31040644editdlrm
crud-posts.php131290644editdlrm
crud-terms.php89620644editdlrm
default-term.php65950644editdlrm
filter-rest-routes.php51000644editdlrm
filters-links.php57800644editdlrm
filters-sanitization.php33110644editdlrm
filters-widgets-options.php26970644editdlrm
filters.php132480644editdlrm
format-util.php31140644editdlrm
functions.php52640644editdlrm
language-deprecated.php72960644editdlrm
language-factory.php96300644editdlrm
language.php183270644editdlrm
license.php96200644editdlrm
links-abstract-domain.php32400644editdlrm
links-default.php31000644editdlrm
links-directory.php97260644editdlrm
links-domain.php29800644editdlrm
links-model.php66780644editdlrm
links-permalinks.php57530644editdlrm
links-subdomain.php22090644editdlrm
links.php14150644editdlrm
mo.php35040644editdlrm
model.php235080644editdlrm
nav-menu.php46090644editdlrm
olt-manager.php30560644editdlrm
query.php79130644editdlrm
rest-request.php43250644editdlrm
static-pages.php64180644editdlrm
switcher.php112370644editdlrm
term-slug.php50120644editdlrm
translatable-object-with-types-interface.php10550644editdlrm
translatable-object-with-types-trait.php20050644editdlrm
translatable-object.php180420644editdlrm
translatable-objects.php37990644editdlrm
translate-option.php134170644editdlrm
translated-object.php193880644editdlrm
translated-post.php175860644editdlrm
translated-term.php151710644editdlrm
walker-dropdown.php38570644editdlrm
walker-list.php26020644editdlrm
walker.php24340644editdlrm
widget-calendar.php118580644editdlrm
widget-languages.php54660644editdlrm
Edit: /home/techb158/dev.aleamaralawal.com/wp-content/plugins/polylang/src/cookie.php (3104B)
0 !== $expiration ? time() + $expiration : 0, 'path' => COOKIEPATH, 'domain' => COOKIE_DOMAIN, // Cookie domain must be set to false for localhost (default value for `COOKIE_DOMAIN`) thanks to Stephen Harris. 'secure' => is_ssl(), 'httponly' => false, 'samesite' => 'Lax', ); $args = wp_parse_args( $args, $defaults ); /** * Filters the Polylang cookie arguments. * /!\ This filter may be fired *before* the theme is loaded. * * @since 3.6 * * @param array $args { * Optional. Array of arguments for setting the cookie. * * @type int $expires Cookie duration. * If a cookie duration of 0 is specified, a session cookie will be set. * If a negative cookie duration is specified, the cookie is removed. * @type string $path Cookie path. * @type string $domain Cookie domain. Must be set to false for localhost (default value for `COOKIE_DOMAIN`). * @type bool $secure Should the cookie be sent only over https? * @type bool $httponly Should the cookie be accessed only over http protocol?. * @type string $samesite Either 'Strict', 'Lax' or 'None'. * } */ return (array) apply_filters( 'pll_cookie_args', $args ); } /** * Sets the cookie. * * @since 2.9 * * @param string $lang Language cookie value. * @param array $args { * Optional. Array of arguments for setting the cookie. * * @type string $path Cookie path, defaults to COOKIEPATH. * @type string $domain Cookie domain, defaults to COOKIE_DOMAIN * @type bool $secure Should the cookie be sent only over https? * @type bool $httponly Should the cookie accessed only over http protocol? Defaults to false. * @type string $samesite Either 'Strict', 'Lax' or 'None', defaults to 'Lax'. * } * @return void */ public static function set( $lang, $args = array() ) { $args = self::parse_args( $args ); if ( ! headers_sent() && PLL_COOKIE !== false && self::get() !== $lang ) { setcookie( PLL_COOKIE, $lang, $args ); } } /** * Returns the language cookie value. * * @since 2.9 * * @return string */ public static function get() { return isset( $_COOKIE[ PLL_COOKIE ] ) ? sanitize_key( $_COOKIE[ PLL_COOKIE ] ) : ''; } }