Skip to content

Commit c68184e

Browse files
author
Chris Gårdenberg
committed
Prepping for 2.0.2
1 parent 9bacfb1 commit c68184e

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

includes/general-settings.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ function edu_render_general_settings() {
7878
$eduPages[] = $p;
7979
}
8080
}
81+
82+
if ( 0 === count( $eduPages ) ) {
83+
$eduPages = $pages;
84+
}
8185
?>
8286
<h3><?php esc_html_e( 'Course templates', 'eduadmin-booking' ); ?></h3>
8387
<table>
@@ -258,6 +262,10 @@ function edu_render_general_settings() {
258262
$programme_pages[] = $p;
259263
}
260264
}
265+
266+
if ( 0 === count( $programme_pages ) ) {
267+
$programme_pages = $pages;
268+
}
261269
?>
262270
<h3><?php _e( 'Programmes', 'eduadmin-booking' ); ?></h3>
263271
<table>

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ and redo your own customization.
5252
- add: When you activate/deactivate the plugin, all transients are now cleaned
5353
- add: Programme start list in detail view
5454
- add: Save `customerId` and `personId` in hidden variables on booking page, so we won't lose logged in users if the session times out.
55+
- add: If we cannot find anything related to `[eduadmin` in the pages, show all pages.
5556

5657
### 2.0.1 ###
5758
- chg: Better check against `customtemplate`

0 commit comments

Comments
 (0)