PluginProbe
TablePress – Tables in WordPress made easy / 3.0
TablePress – Tables in WordPress made easy v3.0
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
← All changes | views/view-import.php +6 -8 2.43.0 View file →
@@ -26,9 +26,9 @@
26 26 *
27 27 * @since 2.0.0
28 28 * @var string[]
29 29 */
30 - protected $wp_pointers = array( 'tp20_import_drag_drop_detect_format' );
30 + protected array $wp_pointers = array( 'tp20_import_drag_drop_detect_format' );
31 31
32 32 /**
33 33 * Set up the view with data and do things that are specific for this view.
34 34 *
@@ -44,12 +44,10 @@
44 44 parent::setup( $action, $data );
45 45
46 46 $this->add_text_box( 'no-javascript', array( $this, 'textbox_no_javascript' ), 'header' );
47 47
48 - $this->admin_page->enqueue_style( 'jsuites' );
49 - $this->admin_page->enqueue_style( 'import', array( 'tablepress-jsuites' ) );
50 - $this->admin_page->enqueue_script( 'jsuites' );
51 - $this->admin_page->enqueue_script( 'import', array( 'tablepress-jsuites' ) );
48 + $this->admin_page->enqueue_style( 'import' );
49 + $this->admin_page->enqueue_script( 'import' );
52 50
53 51 $this->process_action_messages( array(
54 52 'error_import' => __( 'Error: The import failed.', 'tablepress' ),
55 53 ) );
@@ -56,9 +54,9 @@
56 54
57 55 $this->add_text_box( 'head', array( $this, 'textbox_head' ), 'normal' );
58 56 $this->add_meta_box( 'import-form', __( 'Import Tables', 'tablepress' ), array( $this, 'postbox_import_form' ), 'normal' );
59 57 $screen = get_current_screen();
60 - add_filter( "postbox_classes_{$screen->id}_tablepress_{$this->action}-import-form", array( $this, 'postbox_classes' ) );
58 + add_filter( "postbox_classes_{$screen->id}_tablepress_{$this->action}-import-form", array( $this, 'postbox_classes' ) ); // @phpstan-ignore property.nonObject
61 59 $this->add_meta_box( 'tables-auto-import', __( 'Automatic Periodic Table Import', 'tablepress' ), array( $this, 'postbox_auto_import' ), 'additional' );
62 60 }
63 61
64 62 /**
@@ -134,9 +132,9 @@
134 132 *
135 133 * @param array<string, mixed> $data Data for this screen.
136 134 * @param array<string, mixed> $box Information about the meta box.
137 135 *
138 - * @phpstan-ignore-next-line (PHPStan would like to see a type hint.)
136 + * @phpstan-ignore missingType.return (The method is extended elsewhere and can't have type hints.)
139 137 */
140 138 public function postbox_auto_import( /* array */ $data, /* array */ $box ) /* : void */ {
141 139 // Don't use type hints in the method declaration, as the method is extended in the TablePress Table Auto Update Extension which is no longer updated.
142 140
@@ -165,9 +163,9 @@
165 163 '#tables-import-file-upload-dropzone span',
166 164 array(
167 165 'content' => $content,
168 166 'position' => array( 'edge' => 'bottom', 'align' => 'center' ),
169 - )
167 + ),
170 168 );
171 169 }
172 170
173 171 } // class TablePress_Import_View