From f2c451ed86002b993cdfaa82eb823479d07248d8 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Sat, 26 Oct 2024 22:13:59 -0500 Subject: [PATCH] Phpstan fixes --- wp-admin-ui/class-exports-reports-admin-ui.php | 8 ++++---- wp-admin-ui/includes/export-pdf.php | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wp-admin-ui/class-exports-reports-admin-ui.php b/wp-admin-ui/class-exports-reports-admin-ui.php index 2306ce6..32e99c6 100644 --- a/wp-admin-ui/class-exports-reports-admin-ui.php +++ b/wp-admin-ui/class-exports-reports-admin-ui.php @@ -1500,7 +1500,7 @@ function export() { $export_file = apply_filters( 'wp_admin_ui_export_pdf_report_file', null, $this ); if ( ! $export_file ) { - $export_file = WP_Admin_UI_Export_PDF::CreateReport( $this ); + $export_file = Exports_Reports_Admin_UI_Export_PDF::CreateReport( $this ); } $this->message( 'Success: Your export is ready, the download should begin in a few moments. If it doesn\'t, click here to access your PDF export file.

When you are done with your export, + " title="View “”"> edit && ( $reorder == 0 || false === $this->reorder ) ) { ?> @@ -2653,7 +2653,7 @@ function table( $reorder = 0 ) { 'id' => $id, ] ) ); ?> - " title="Edit “”"> + " title="Edit “”"> @@ -2692,7 +2692,7 @@ function table( $reorder = 0 ) { 'action' => 'delete', 'id' => $id, '_wpnonce' => wp_create_nonce( 'wp-admin-ui-delete' ), - ] ) ) . '" onclick="if(confirm(\'You are about to delete this item \'' . htmlentities( $row[ $column ] ) . '\'\n \'Cancel\' to stop, \'OK\' to delete.\')){return true;}return false;">Delete'; + ] ) ) . '" onclick="if(confirm(\'You are about to delete this item \'' . htmlentities( $row[ $column ], ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ) . '\'\n \'Cancel\' to stop, \'OK\' to delete.\')){return true;}return false;">Delete'; } if ( is_array( $this->custom ) ) { foreach ( $this->custom as $custom_action => $custom_data ) { diff --git a/wp-admin-ui/includes/export-pdf.php b/wp-admin-ui/includes/export-pdf.php index da20f46..4e0b7d3 100644 --- a/wp-admin-ui/includes/export-pdf.php +++ b/wp-admin-ui/includes/export-pdf.php @@ -1,15 +1,15 @@ admin = $admin; @@ -174,7 +174,7 @@ public function Footer() { } /** - * @param WP_Admin_UI $admin + * @param Exports_Reports_Admin_UI $admin * * @return string Report file name */ @@ -266,7 +266,7 @@ public static function CreateReport( $admin ) { } /** - * @param WP_Admin_UI $admin + * @param Exports_Reports_Admin_UI $admin * * @return string */