Skip to content

Commit bad2dfe

Browse files
authored
Merge pull request #525 from MultinetInteractive/master
v5.0.1
2 parents 06e3f72 + 331c6cb commit bad2dfe

8 files changed

Lines changed: 43 additions & 28 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [5.0.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.0.0...v5.0.1) (2024-04-09)
6+
7+
8+
### Bug Fixes
9+
10+
* Some null handling that is deprecated in newer versions of PHP ([d89c27d](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/d89c27d1dcf6b245ff6fd982ebccdacc1a7a4527))
11+
512
## [5.0.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.3.0...v5.0.0) (2024-04-08)
613

714

PLUGIN-CHECKSUM

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a8eda52c319500fecae0731cee509ae8
1+
e29b0dd069aa125c9c8fa6bd4860e8a0

content/template/listTemplate/blocks/course-block-a.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@
2424
}
2525

2626
if ( $show_descr ) {
27-
echo '<div class="courseDescription">' . wp_kses( $descr, array(
28-
'br' => array(),
29-
'p' => array(),
30-
) ) . '</div>';
27+
if ( $descr != null ) {
28+
echo '<div class="courseDescription">' . wp_kses( $descr, array(
29+
'br' => array(),
30+
'p' => array(),
31+
) ) . '</div>';
32+
}
3133
}
3234

3335
if ( $show_course_locations && ! empty( $event_cities ) && $show_city ) {

content/template/listTemplate/blocks/course-block-b.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@
1818
}
1919
}
2020
} else {
21-
$descr = strip_tags( $object[ $descr_field ] );
21+
if ( $object[ $descr_field ] != null ) {
22+
$descr = strip_tags( $object[ $descr_field ] );
23+
} else {
24+
$descr = null;
25+
}
2226
}
2327

2428
if ( $show_descr ) {
25-
echo '<div class"courseDescription">' . wp_kses( $descr, array(
26-
'br' => array(),
27-
'p' => array(),
28-
) ) . '</div>';
29+
if ( $descr != null ) {
30+
echo '<div class"courseDescription">' . wp_kses( $descr, array(
31+
'br' => array(),
32+
'p' => array(),
33+
) ) . '</div>';
34+
}
2935
}
3036

3137
if ( $show_course_locations && ! empty( $event_cities ) && $show_city ) {

eduadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://www.eduadmin.se
1010
* Description: EduAdmin plugin to allow visitors to book courses at your website
1111
* Tags: booking, participants, courses, events, eduadmin, lega online
12-
* Version: 5.0.0
12+
* Version: 5.0.1
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: 6.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eduadmin-wordpress-plugin",
33
"private": true,
4-
"version": "5.0.0",
4+
"version": "5.0.1",
55
"repository": "https://github.com/MultinetInteractive/EduAdmin-WordPress.git",
66
"author": "Chris Gårdenberg <chga@multinet.se>",
77
"license": "MIT",

readme.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# EduAdmin Booking
22
- Requires at least: 6.0
33
- Tested up to: 6.6
4-
- Stable tag: 5.0.0
4+
- Stable tag: 5.0.1
55
- Requires PHP: 8.1
66
- License: GPL3
77
- License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -40,6 +40,13 @@ If you notice that your API key doesn't work any more, you have to contact us.
4040

4141
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
4242

43+
### [5.0.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.0.0...v5.0.1) (2024-04-09)
44+
45+
46+
#### Bug Fixes
47+
48+
* Some null handling that is deprecated in newer versions of PHP ([d89c27d](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/d89c27d1dcf6b245ff6fd982ebccdacc1a7a4527))
49+
4350
### [5.0.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.3.0...v5.0.0) (2024-04-08)
4451

4552

@@ -70,12 +77,5 @@ The full changelog available on [GitHub](https://github.com/MultinetInteractive/
7077

7178
* #[\ReturnTypeWillChange] instead of typing, because PHP is.. well PHP ([7684891](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/7684891ff6d55b58e186a2569d42674792e7f543))
7279

73-
### [4.2.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.2.1...v4.2.2) (2024-01-10)
74-
75-
76-
#### Bug Fixes
77-
78-
* More return types, because of silly deprecation notices. ([528d744](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/528d7441f64cd45de32fd599f6853a93c89a9489))
79-
8080

8181

readme.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
44
Requires at least: 6.0
55
Tested up to: 6.6
6-
Stable tag: 5.0.0
6+
Stable tag: 5.0.1
77
Requires PHP: 8.1
88
License: GPL3
99
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -45,6 +45,13 @@ If you notice that your API key doesn't work any more, you have to contact us.
4545

4646
The full changelog available on [GitHub](https://github.com/MultinetInteractive/EduAdmin-WordPress/blob/production/CHANGELOG.md)
4747

48+
### [5.0.1](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v5.0.0...v5.0.1) (2024-04-09)
49+
50+
51+
#### Bug Fixes
52+
53+
* Some null handling that is deprecated in newer versions of PHP ([d89c27d](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/d89c27d1dcf6b245ff6fd982ebccdacc1a7a4527))
54+
4855
### [5.0.0](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.3.0...v5.0.0) (2024-04-08)
4956

5057

@@ -75,12 +82,5 @@ The full changelog available on [GitHub](https://github.com/MultinetInteractive/
7582

7683
* #[\ReturnTypeWillChange] instead of typing, because PHP is.. well PHP ([7684891](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/7684891ff6d55b58e186a2569d42674792e7f543))
7784

78-
### [4.2.2](https://github.com/MultinetInteractive/EduAdmin-WordPress/compare/v4.2.1...v4.2.2) (2024-01-10)
79-
80-
81-
#### Bug Fixes
82-
83-
* More return types, because of silly deprecation notices. ([528d744](https://github.com/MultinetInteractive/EduAdmin-WordPress/commit/528d7441f64cd45de32fd599f6853a93c89a9489))
84-
8585

8686

0 commit comments

Comments
 (0)