Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes for phan
  • Loading branch information
enejb authored and CGastrell committed Dec 10, 2025
commit b1bc9b980ac732cfe2a5282500339ce8c5ccb18c
7 changes: 5 additions & 2 deletions projects/packages/forms/src/contact-form/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
/**
* Class Admin
*
* @deprecated $$next-version$$
*
* Singleton for Grunion admin area support.
*
* This class will be removed in a future version.
*/
class Admin {
/**
Expand All @@ -39,9 +39,12 @@ class Admin {
/**
* Instantiates this singleton class
*
* @deprecated $$next-version$$
*
* @return Admin The Admin class instance.
*/
public static function init() {
_deprecated_function( __METHOD__, 'package-$$next-version$$' );
static $instance = false;

if ( ! $instance ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3701,7 +3701,11 @@ public function export_to_gdrive() {
* Put all the fields in `$current_row` array.
*/
foreach ( $fields as $single_field_name ) {
$current_row[] = $export_data[ $single_field_name ][ $i ];
if ( isset( $export_data[ $single_field_name ][ $i ] ) ) {
$current_row[] = $export_data[ $single_field_name ][ $i ];
} else {
$current_row[] = '';
}
}

$sheet_data[] = $current_row;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public static function add_hooks( $screen ) {
* Admin header.
*/
public static function admin_head() {
remove_action( 'media_buttons', array( Admin::init(), 'grunion_media_button' ), 999 );
add_action( 'media_buttons', array( __CLASS__, 'grunion_media_button' ), 999 );
}

Expand Down