Commit e3fc294a authored by Simon's avatar Simon

release 1.27.0

parent 17dead2b
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
## Production ## Production
- build CSS & JS assets - `C:\web\dev.biuro\ npm run build` - build CSS & JS assets - `C:\web\dev.biuro\ npm run build`
- build new image `docker build -t biuro/web:1.26.3 .` (update version number) - build new image `docker build -t biuro/web:1.27.0 .` (update version number)
- login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs` - login to biuro docker account `docker login --username=biuro --password=9Ndtjd2vKsLvGuFOeFq1KdJs`
- push image to docker repository - `docker push biuro/web:1.26.3` - push image to docker repository - `docker push biuro/web:1.27.0`
## Production ## Production
- update biuro/web image version in .env file (staging or www) - update biuro/web image version in .env file (staging or www)
......
...@@ -121,15 +121,17 @@ function getSource($env) ...@@ -121,15 +121,17 @@ function getSource($env)
break; break;
} }
$updated = urlencode(date("Y-m-d H:i:s", strtotime("-1 day")));
// Set data source path by environment type // Set data source path by environment type
if ($env === 'dev') { if ($env === 'dev') {
// $inputFile = plugin_dir_path(__FILE__) . "source_data/wp_biuro.php.xml"; // $inputFile = plugin_dir_path(__FILE__) . "source_data/wp_biuro.php.xml";
// $inputFile = "https://base.biuro.lt/_export/wp_biuro.php"; // $inputFile = "https://base.biuro.lt/_export/wp_biuro.php";
// $inputFile = "https://base.biuro.lt/_devSkirmantas/lt/jobs/AdvertExport/Biuro.php"; // $inputFile = "https://base.biuro.lt/_devSkirmantas/lt/jobs/AdvertExport/Biuro.php";
$inputFile = "https://base.biuro.lt/_export/{$script}"; $inputFile = "https://base.biuro.lt/_export/{$script}?updated_datetime_gte={$updated}";
} elseif ($env === 'prod') { } elseif ($env === 'prod') {
// $inputFile = "http://export.biuro.lt/wp_biuro.php"; // $inputFile = "http://export.biuro.lt/wp_biuro.php";
$inputFile = "http://export.biuro.lt/{$script}"; $inputFile = "http://export.biuro.lt/{$script}?updated_datetime_gte={$updated}";
} }
return $inputFile; return $inputFile;
......
...@@ -22,16 +22,17 @@ class PLL_Cookie { ...@@ -22,16 +22,17 @@ class PLL_Cookie {
* Filters the Polylang cookie duration. * Filters the Polylang cookie duration.
* *
* If a cookie duration of 0 is specified, a session cookie will be set. * 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.
* /!\ This filter may be fired *before* the theme is loaded. * /!\ This filter may be fired *before* the theme is loaded.
* *
* @since 1.8 * @since 1.8
* *
* @param int $duration Cookie duration in seconds. * @param int $duration Cookie duration in seconds.
*/ */
$expiration = apply_filters( 'pll_cookie_expiration', YEAR_IN_SECONDS ); $expiration = (int) apply_filters( 'pll_cookie_expiration', YEAR_IN_SECONDS );
$defaults = array( $defaults = array(
'expires' => $expiration > 0 ? time() + $expiration : 0, 'expires' => 0 !== $expiration ? time() + $expiration : 0,
'path' => COOKIEPATH, 'path' => COOKIEPATH,
'domain' => COOKIE_DOMAIN, // Cookie domain must be set to false for localhost ( default value for COOKIE_DOMAIN ) thanks to Stephen Harris. 'domain' => COOKIE_DOMAIN, // Cookie domain must be set to false for localhost ( default value for COOKIE_DOMAIN ) thanks to Stephen Harris.
'secure' => is_ssl(), 'secure' => is_ssl(),
......
...@@ -45,9 +45,9 @@ class PLL_Cache_Compat { ...@@ -45,9 +45,9 @@ class PLL_Cache_Compat {
$samesite = ( 3 === PLL()->options['force_lang'] ) ? 'None' : 'Lax'; $samesite = ( 3 === PLL()->options['force_lang'] ) ? 'None' : 'Lax';
/** This filter is documented in include/cookie.php */ /** This filter is documented in include/cookie.php */
$expiration = apply_filters( 'pll_cookie_expiration', YEAR_IN_SECONDS ); $expiration = (int) apply_filters( 'pll_cookie_expiration', YEAR_IN_SECONDS );
if ( $expiration > 0 ) { if ( 0 !== $expiration ) {
$format = 'var expirationDate = new Date(); $format = 'var expirationDate = new Date();
expirationDate.setTime( expirationDate.getTime() + %7$d * 1000 ); expirationDate.setTime( expirationDate.getTime() + %7$d * 1000 );
document.cookie = "%1$s=%2$s; expires=" + expirationDate.toUTCString() + "; path=%3$s%4$s%5$s%6$s";'; document.cookie = "%1$s=%2$s; expires=" + expirationDate.toUTCString() + "; path=%3$s%4$s%5$s%6$s";';
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* Plugin Name: Polylang * Plugin Name: Polylang
* Plugin URI: https://polylang.pro * Plugin URI: https://polylang.pro
* Description: Adds multilingual capability to WordPress * Description: Adds multilingual capability to WordPress
* Version: 3.1 * Version: 3.1.1
* Requires at least: 5.4 * Requires at least: 5.4
* Requires PHP: 5.6 * Requires PHP: 5.6
* Author: WP SYNTEX * Author: WP SYNTEX
...@@ -53,7 +53,7 @@ if ( defined( 'POLYLANG_VERSION' ) ) { ...@@ -53,7 +53,7 @@ if ( defined( 'POLYLANG_VERSION' ) ) {
} }
} else { } else {
// Go on loading the plugin // Go on loading the plugin
define( 'POLYLANG_VERSION', '3.1' ); define( 'POLYLANG_VERSION', '3.1.1' );
define( 'PLL_MIN_WP_VERSION', '5.4' ); define( 'PLL_MIN_WP_VERSION', '5.4' );
define( 'PLL_MIN_PHP_VERSION', '5.6' ); define( 'PLL_MIN_PHP_VERSION', '5.6' );
......
...@@ -5,7 +5,7 @@ Tags: multilingual, bilingual, translate, translation, language, multilanguage, ...@@ -5,7 +5,7 @@ Tags: multilingual, bilingual, translate, translation, language, multilanguage,
Requires at least: 5.4 Requires at least: 5.4
Tested up to: 5.8 Tested up to: 5.8
Requires PHP: 5.6 Requires PHP: 5.6
Stable tag: 3.1 Stable tag: 3.1.1
License: GPLv3 or later License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html License URI: https://www.gnu.org/licenses/gpl-3.0.html
...@@ -78,6 +78,11 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin- ...@@ -78,6 +78,11 @@ Don't hesitate to [give your feedback](http://wordpress.org/support/view/plugin-
== Changelog == == Changelog ==
= 3.1.1 (2021-08-16) =
* Pro: Fix a fatal error with The Events Calendar
* Allow to remove the cookie with the pll_cookie_expiration filter #905
= 3.1 (2021-07-27) = = 3.1 (2021-07-27) =
* Add compatibility with WordPress 5.8 * Add compatibility with WordPress 5.8
......
...@@ -3,6 +3,6 @@ Theme Name: Biuro ...@@ -3,6 +3,6 @@ Theme Name: Biuro
Author: Biuro Author: Biuro
Author URI: https://www.biuro.lt/ Author URI: https://www.biuro.lt/
Description: Biuro multiregion theme Description: Biuro multiregion theme
Version: 1.26.3 Version: 1.27.0
Text Domain: biuro Text Domain: biuro
*/ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment