PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.84
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.84
5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 5.5.41 5.5.42 All 160 releases
← All changes | WPDataProjects/Project/WPDP_Project_Project_List.php +1 -12 5.5.375.5.84 View file →
@@ -8,9 +8,8 @@
8 8 namespace WPDataProjects\Project;
9 9
10 10 use WPDataAccess\WPDA;
11 11 use WPDataProjects\Parent_Child\WPDP_Parent_List_Table;
12 -use WPDataAccess\Utilities\WPDA_Import_Multi;
13 12 /**
14 13 * Class WPDP_Project_Project_List extends WPDP_Parent_List_Table
15 14 *
16 15 * @see WPDP_Parent_List_Table
@@ -28,15 +27,8 @@
28 27 $args['column_headers'] = self::column_headers_labels();
29 28 $args['allow_import'] = 'off';
30 29 $args['allow_insert'] = 'on';
31 30 parent::__construct( $args );
32 - try {
33 - // Instantiate WPDA_Import.
34 - $this->wpda_import = new WPDA_Import_Multi("?page={$this->page}", $this->schema_name, array(__( 'IMPORT DATA PROJECTS', 'wp-data-access' ), ''));
35 - } catch ( \Exception $e ) {
36 - // If import is turned off instantition will fail. Handle is set to null (check in future calls).
37 - $this->wpda_import = null;
38 - }
39 31 }
40 32
41 33 /**
42 34 * Overwrites method add_header_button to add arguments to insert button
@@ -60,17 +52,14 @@
60 52 title="Add new project to repository"
61 53 >
62 54 <i class="fas fa-plus-circle wpda_icon_on_button"></i>
63 55 <?php
64 - echo __( 'Add New', 'wp-data-access' );
56 + esc_html_e( 'Add New', 'wp-data-access' );
65 57 ?>
66 58 </button>
67 59 </div>
68 60 </form>
69 61 <?php
70 - if ( null !== $this->wpda_import ) {
71 - $this->wpda_import->add_button( __( 'Import', 'wp-data-access' ) );
72 - }
73 62 }
74 63
75 64 /**
76 65 * Overwrites method column_default_add_action to rewrite export action