Version Description
Download this release
Release Info
Developer | Ladela |
Plugin | WordPress Online Booking and Scheduling Plugin – Bookly |
Version | 20.1.1 |
Comparing to | |
See all releases |
Code changes from version 20.1 to 20.1.1
- lib/utils/DateTime.php +12 -10
- main.php +1 -1
- readme.txt +1 -1
lib/utils/DateTime.php
CHANGED
@@ -284,16 +284,18 @@ class DateTime
|
|
284 |
public static function timeToSeconds( $str )
|
285 |
{
|
286 |
$result = 0;
|
287 |
-
$
|
288 |
-
|
289 |
-
$
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
|
|
|
|
297 |
}
|
298 |
|
299 |
return $result;
|
284 |
public static function timeToSeconds( $str )
|
285 |
{
|
286 |
$result = 0;
|
287 |
+
if ( $str ) {
|
288 |
+
$seconds = 3600;
|
289 |
+
if ( $str[0] === '-' ) {
|
290 |
+
$sign = - 1;
|
291 |
+
$str = substr( $str, 1 );
|
292 |
+
} else {
|
293 |
+
$sign = 1;
|
294 |
+
}
|
295 |
+
foreach ( explode( ':', $str ) as $part ) {
|
296 |
+
$result += $sign * (int) $part * $seconds;
|
297 |
+
$seconds /= 60;
|
298 |
+
}
|
299 |
}
|
300 |
|
301 |
return $result;
|
main.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Bookly
|
4 |
Plugin URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
|
5 |
Description: Bookly Plugin – is a great easy-to-use and easy-to-manage booking tool for service providers who think about their customers. The plugin supports a wide range of services provided by business and individuals who offer reservations through websites. Set up any reservation quickly, pleasantly and easily with Bookly!
|
6 |
-
Version: 20.1
|
7 |
Author: Bookly
|
8 |
Author URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
|
9 |
Text Domain: bookly
|
3 |
Plugin Name: Bookly
|
4 |
Plugin URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
|
5 |
Description: Bookly Plugin – is a great easy-to-use and easy-to-manage booking tool for service providers who think about their customers. The plugin supports a wide range of services provided by business and individuals who offer reservations through websites. Set up any reservation quickly, pleasantly and easily with Bookly!
|
6 |
+
Version: 20.1.1
|
7 |
Author: Bookly
|
8 |
Author URI: https://www.booking-wp-plugin.com/?utm_source=bookly_admin&utm_medium=plugins_page&utm_campaign=plugins_page
|
9 |
Text Domain: bookly
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.booking-wp-plugin.com/
|
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.3.7
|
8 |
-
Stable tag: 20.1
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|
5 |
Requires at least: 3.7
|
6 |
Tested up to: 5.8
|
7 |
Requires PHP: 5.3.7
|
8 |
+
Stable tag: 20.1.1
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
11 |
|