summaryrefslogtreecommitdiffstats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/admin/views/_concerts_table.php2
-rw-r--r--includes/admin/views/_edit_concert_form.php2
-rw-r--r--includes/admin/views/giglog_import_gigs.php2
-rw-r--r--includes/ical_export.php3
4 files changed, 8 insertions, 1 deletions
diff --git a/includes/admin/views/_concerts_table.php b/includes/admin/views/_concerts_table.php
index 091bf83..2d1ed04 100644
--- a/includes/admin/views/_concerts_table.php
+++ b/includes/admin/views/_concerts_table.php
@@ -4,6 +4,8 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later
+require_once __DIR__ . '/../../view-helpers/select_field.php';
+
if (!class_exists("GiglogAdmin_ConcertsTable"))
{
class GiglogAdmin_ConcertsTable
diff --git a/includes/admin/views/_edit_concert_form.php b/includes/admin/views/_edit_concert_form.php
index d17ef2d..c7675f0 100644
--- a/includes/admin/views/_edit_concert_form.php
+++ b/includes/admin/views/_edit_concert_form.php
@@ -4,6 +4,8 @@
//
// SPDX-License-Identifier: AGPL-3.0-or-later
+require_once __DIR__ . '/../../view-helpers/select_field.php';
+
if (!class_exists("GiglogAdmin_EditConcertForm"))
{
class GiglogAdmin_EditConcertForm
diff --git a/includes/admin/views/giglog_import_gigs.php b/includes/admin/views/giglog_import_gigs.php
index ed6f978..afcc632 100644
--- a/includes/admin/views/giglog_import_gigs.php
+++ b/includes/admin/views/giglog_import_gigs.php
@@ -53,7 +53,7 @@ if ( !class_exists( 'GiglogAdmin_ImportGigsPage' ) ) {
*
* @return void
*
- * @param array<mixed>
+ * @param array<int, mixed> $file
*/
static function process_upload(array $file): void {
global $wpdb;
diff --git a/includes/ical_export.php b/includes/ical_export.php
index 2c2d4de..fa963bc 100644
--- a/includes/ical_export.php
+++ b/includes/ical_export.php
@@ -73,6 +73,9 @@ if ( ! class_exists( "GiglogAdmin_IcalExport" ) )
}
}
+ /** @psalm-suppress HookNotFound */
add_action( 'wp_ajax_nopriv_giglog_export_ical', [ 'GiglogAdmin_IcalExport', 'export_ical' ] );
+
+ /** @psalm-suppress HookNotFound */
add_action( 'wp_ajax_giglog_export_ical', [ 'GiglogAdmin_IcalExport', 'export_ical' ] );
}