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-about.php +7 -19 trunk3.0 View file →
@@ -41,10 +41,8 @@
41 41 // Don't use type hints in the method declaration to prevent PHP errors, as the method is inherited.
42 42
43 43 parent::setup( $action, $data );
44 44
45 - TablePress::enqueue_script( 'common', array( 'jquery-core', 'postbox' ) );
46 -
47 45 $this->add_text_box( 'spacer', array( $this, 'textbox_spacer' ), 'normal' );
48 46 $this->add_text_box( 'spacer', array( $this, 'textbox_spacer' ), 'side' );
49 47 $this->add_meta_box( 'plugin-purpose', __( 'Plugin Purpose', 'tablepress' ), array( $this, 'postbox_plugin_purpose' ), 'normal' );
50 48 $this->add_meta_box( 'usage', __( 'Usage', 'tablepress' ), array( $this, 'postbox_usage' ), 'normal' );
@@ -79,9 +77,9 @@
79 77 ?>
80 78 <p>
81 79 <?php _e( 'TablePress allows you to create and manage tables in the admin area of WordPress.', 'tablepress' ); ?>
82 80 <?php _e( 'Tables may contain text, numbers, formulas, and even HTML code (e.g. to include images or links).', 'tablepress' ); ?>
83 - <?php _e( 'You can embed the tables into posts, pages, or other site areas using a block in the block editor, a widget in the Elementor page builder, or a Shortcode.', 'tablepress' ); ?>
81 + <?php _e( 'You can embed the tables into posts, pages, or other site areas using a block in the block editor.', 'tablepress' ); ?>
84 82 </p>
85 83 <?php
86 84 }
87 85
@@ -106,12 +104,10 @@
106 104 </p>
107 105 <p>
108 106 <?php
109 107 // Show the instructions string depending on whether the Block Editor is used on the site or not.
110 - if ( 'block' === $data['site_used_editor'] ) {
108 + if ( $data['site_uses_block_editor'] ) {
111 109 printf( __( 'To insert a table into a post or page, add a “%1$s” block in the block editor and select the desired table.', 'tablepress' ), __( 'TablePress table', 'tablepress' ) );
112 - } elseif ( 'elementor' === $data['site_used_editor'] ) {
113 - printf( __( 'To insert a table into a post or page, add a “%1$s” widget in the Elementor editor and select the desired table.', 'tablepress' ), __( 'TablePress table', 'tablepress' ) );
114 110 } else {
115 111 _e( 'To insert a table into a post or page, paste its Shortcode at the desired place in the editor.', 'tablepress' );
116 112 echo ' ';
117 113 _e( 'Each table has a unique ID that needs to be adjusted in that Shortcode.', 'tablepress' );
@@ -155,23 +151,16 @@
155 151 */
156 152 public function postbox_author_license( array $data, array $box ): void {
157 153 ?>
158 154 <p>
159 - <?php
160 - /* translators: %s: Author's website URL */
161 - printf( __( 'This plugin was written and developed by <a href="%s">Tobias Bäthge</a>.', 'tablepress' ), 'https://tobias.baethge.com/' );
162 - ?>
155 + <?php printf( __( 'This plugin was written and developed by <a href="%s">Tobias Bäthge</a>.', 'tablepress' ), 'https://tobias.baethge.com/' ); ?>
163 156 <?php _e( 'It is licensed as Free Software under GNU General Public License 2 (GPL 2).', 'tablepress' ); ?>
164 157 </p>
165 158 <p>
166 - <?php
167 - /* translators: %s: WordPress Plugin Directory URL */
168 - printf( __( 'Please rate and review the plugin in the <a href="%s">WordPress Plugin Directory</a>.', 'tablepress' ), 'https://wordpress.org/support/view/plugin-reviews/tablepress' );
169 - ?>
159 + <?php printf( __( 'Please rate and review the plugin in the <a href="%s">WordPress Plugin Directory</a>.', 'tablepress' ), 'https://wordpress.org/support/view/plugin-reviews/tablepress' ); ?>
170 160 </p>
171 161 <?php
172 162 if ( tb_tp_fs()->is_free_plan() ) {
173 - /* translators: %s: TablePress Premium website URL */
174 163 echo '<p><strong>' . sprintf( __( 'I would like to invite you to check out the <a href="%s">Premium versions of TablePress</a>.', 'tablepress' ), 'https://tablepress.org/premium/?utm_source=plugin&utm_medium=textlink&utm_content=about-screen' ) . ' '
175 164 . __( 'The available Pro and Max plans offer user support and many exciting and helpful features for your tables.', 'tablepress' ) . '</strong></p>';
176 165 }
177 166 ?>
@@ -218,18 +207,17 @@
218 207 <strong><?php _e( 'Please provide this information in bug reports and support requests.', 'tablepress' ); ?></strong>
219 208 </p>
220 209 <ul>
221 210 <li>Website: <?php echo site_url(); ?></li>
222 - <li>Block Theme: <?php echo wp_is_block_theme() ? 'yes' : 'no'; ?></li>
223 211 <li>TablePress: <?php echo TablePress::version; ?></li>
224 212 <li>TablePress (DB): <?php echo TablePress::db_version; ?></li>
225 213 <li>TablePress table scheme: <?php echo TablePress::table_scheme_version; ?></li>
226 214 <li>Plan: Free</li>
227 215 <li>Plugin installed: <?php echo wp_date( 'Y/m/d H:i:s', $data['first_activation'] ); ?></li>
228 - <li>WordPress: <?php echo wp_get_wp_version(); ?></li>
216 + <li>WordPress: <?php echo $GLOBALS['wp_version']; ?></li>
229 217 <li>Multisite: <?php echo is_multisite() ? 'yes' : 'no'; ?></li>
230 218 <li>PHP: <?php echo PHP_VERSION; ?></li>
231 - <li>mySQL (Server): <?php echo ( isset( $GLOBALS['wpdb']->dbh ) && 'mysqli' === get_class( $GLOBALS['wpdb']->dbh ) && function_exists( 'mysqli_get_server_info' ) ) ? mysqli_get_server_info( $GLOBALS['wpdb']->dbh ) : 'no mySQL server'; // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_server_info ?></li>
219 + <li>mySQL (Server): <?php echo ( isset( $GLOBALS['wpdb']->dbh ) && function_exists( 'mysqli_get_server_info' ) ) ? mysqli_get_server_info( $GLOBALS['wpdb']->dbh ) : 'no mySQL server'; // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_server_info ?></li>
232 220 <li>mySQL (Client): <?php echo function_exists( 'mysqli_get_client_info' ) ? mysqli_get_client_info() : 'no mySQL client'; // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info ?></li>
233 221 <li>mbstring: <?php echo extension_loaded( 'mbstring' ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
234 222 <li>ZipArchive: <?php echo class_exists( 'ZipArchive', false ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
235 223 <li>DOMDocument: <?php echo class_exists( 'DOMDocument', false ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
@@ -238,9 +226,9 @@
238 226 <li>UTF-8 conversion: <?php echo ( function_exists( 'mb_detect_encoding' ) && function_exists( 'iconv' ) ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
239 227 <li>WP Memory Limit: <?php echo WP_MEMORY_LIMIT; ?></li>
240 228 <li>Server Memory Limit: <?php echo esc_html( @ini_get( 'memory_limit' ) ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged ?></li>
241 229 <li>WP_DEBUG: <?php echo WP_DEBUG ? 'true' : 'false'; ?></li>
242 - <li>WP_POST_REVISIONS: <?php echo is_bool( WP_POST_REVISIONS ) ? ( WP_POST_REVISIONS ? 'true' : 'false' ) : WP_POST_REVISIONS; // @phpstan-ignore constant.notFound, phpstanWP.wpConstant.fetch, phpstanWP.wpConstant.fetch, phpstanWP.wpConstant.fetch (The constant is printed for debugging purposes.) ?></li>
230 + <li>WP_POST_REVISIONS: <?php echo is_bool( WP_POST_REVISIONS ) ? ( WP_POST_REVISIONS ? 'true' : 'false' ) : WP_POST_REVISIONS; // @phpstan-ignore constant.notFound ?></li>
243 231 </ul>
244 232 <?php
245 233 }
246 234