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 +31 -29 2.23.0 View file →
@@ -24,11 +24,10 @@
24 24 /**
25 25 * Number of screen columns for post boxes on this screen.
26 26 *
27 27 * @since 1.0.0
28 - * @var int
29 28 */
30 - protected $screen_columns = 2;
29 + protected int $screen_columns = 2;
31 30
32 31 /**
33 32 * Set up the view with data and do things that are specific for this view.
34 33 *
@@ -36,8 +35,9 @@
36 35 *
37 36 * @param string $action Action for this view.
38 37 * @param array<string, mixed> $data Data for this view.
39 38 */
39 + #[\Override]
40 40 public function setup( /* string */ $action, array $data ) /* : void */ {
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 );
@@ -61,11 +61,9 @@
61 61 * @param array<string, mixed> $data Data for this screen.
62 62 * @param array<string, mixed> $box Information about the text box.
63 63 */
64 64 public function textbox_spacer( array $data, array $box ): void {
65 - ?>
66 - <p></p>
67 - <?php
65 + echo '<p></p>';
68 66 }
69 67
70 68 /**
71 69 * Print the content of the "Plugin Purpose" post meta box.
@@ -203,33 +201,35 @@
203 201 * @param array<string, mixed> $data Data for this screen.
204 202 * @param array<string, mixed> $box Information about the meta box.
205 203 */
206 204 public function postbox_debug_version_information( array $data, array $box ): void {
207 - $mysqli = ( isset( $GLOBALS['wpdb']->use_mysqli, $GLOBALS['wpdb']->dbh ) && $GLOBALS['wpdb']->use_mysqli );
208 205 ?>
209 206 <p>
210 207 <strong><?php _e( 'Please provide this information in bug reports and support requests.', 'tablepress' ); ?></strong>
211 208 </p>
212 - <p class="ltr">
213 - &middot; Website: <?php echo site_url(); ?>
214 - <br />&middot; TablePress: <?php echo TablePress::version; ?>
215 - <br />&middot; TablePress (DB): <?php echo TablePress::db_version; ?>
216 - <br />&middot; TablePress table scheme: <?php echo TablePress::table_scheme_version; ?>
217 - <br />&middot; Plan: Free
218 - <br />&middot; Plugin installed: <?php echo wp_date( 'Y/m/d H:i:s', $data['first_activation'] ); ?>
219 - <br />&middot; WordPress: <?php echo $GLOBALS['wp_version']; ?>
220 - <br />&middot; Multisite: <?php echo is_multisite() ? 'yes' : 'no'; ?>
221 - <br />&middot; PHP: <?php echo PHP_VERSION; ?>
222 - <br />&middot; mysqli Extension: <?php echo $mysqli ? 'true' : 'false'; ?>
223 - <br />&middot; mySQL (Server): <?php echo $mysqli ? mysqli_get_server_info( $GLOBALS['wpdb']->dbh ) : '<em>no mysqli</em>'; // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_server_info ?>
224 - <br />&middot; mySQL (Client): <?php echo $mysqli ? mysqli_get_client_info() : '<em>no mysqli</em>'; // phpcs:ignore WordPress.DB.RestrictedFunctions.mysql_mysqli_get_client_info ?>
225 - <br />&middot; ZIP support: <?php echo $data['zip_support_available'] ? 'yes' : 'no'; ?>
226 - <br />&middot; UTF-8 conversion: <?php echo ( function_exists( 'mb_detect_encoding' ) && function_exists( 'iconv' ) ) ? 'yes' : 'no'; ?>
227 - <br />&middot; WP Memory Limit: <?php echo WP_MEMORY_LIMIT; ?>
228 - <br />&middot; Server Memory Limit: <?php echo (int) @ini_get( 'memory_limit' ) . 'M'; // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged ?>
229 - <br />&middot; WP_DEBUG: <?php echo WP_DEBUG ? 'true' : 'false'; ?>
230 - <br />&middot; WP_POST_REVISIONS: <?php echo is_bool( WP_POST_REVISIONS ) ? ( WP_POST_REVISIONS ? 'true' : 'false' ) : WP_POST_REVISIONS; // @phpstan-ignore-line ?>
231 - </p>
209 + <ul>
210 + <li>Website: <?php echo site_url(); ?></li>
211 + <li>TablePress: <?php echo TablePress::version; ?></li>
212 + <li>TablePress (DB): <?php echo TablePress::db_version; ?></li>
213 + <li>TablePress table scheme: <?php echo TablePress::table_scheme_version; ?></li>
214 + <li>Plan: Free</li>
215 + <li>Plugin installed: <?php echo wp_date( 'Y/m/d H:i:s', $data['first_activation'] ); ?></li>
216 + <li>WordPress: <?php echo $GLOBALS['wp_version']; ?></li>
217 + <li>Multisite: <?php echo is_multisite() ? 'yes' : 'no'; ?></li>
218 + <li>PHP: <?php echo PHP_VERSION; ?></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>
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>
221 + <li>mbstring: <?php echo extension_loaded( 'mbstring' ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
222 + <li>ZipArchive: <?php echo class_exists( 'ZipArchive', false ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
223 + <li>DOMDocument: <?php echo class_exists( 'DOMDocument', false ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
224 + <li>simplexml_load_string: <?php echo function_exists( 'simplexml_load_string' ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
225 + <li>libxml_disable_entity_loader: <?php echo function_exists( 'libxml_disable_entity_loader' ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?></li>
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>
227 + <li>WP Memory Limit: <?php echo WP_MEMORY_LIMIT; ?></li>
228 + <li>Server Memory Limit: <?php echo esc_html( @ini_get( 'memory_limit' ) ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged ?></li>
229 + <li>WP_DEBUG: <?php echo WP_DEBUG ? 'true' : 'false'; ?></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>
231 + </ul>
232 232 <?php
233 233 }
234 234
235 235 /**
@@ -243,12 +243,14 @@
243 243 public function postbox_credits_thanks( array $data, array $box ): void {
244 244 ?>
245 245 <p>
246 246 <?php _e( 'Special Thanks go to:', 'tablepress' ); ?>
247 - <br />&middot; <?php printf( __( 'Allan Jardine for <a href="%s">DataTables</a>,', 'tablepress' ), 'https://www.datatables.net/' ); ?>
248 - <br />&middot; <?php printf( __( 'the translators in the <a href="%s">Plugin Directory</a>,', 'tablepress' ), 'https://translate.wordpress.org/projects/wp-plugins/tablepress/' ); ?>
249 - <br />&middot; <?php _e( 'all customers, donors, contributors, supporters, reviewers, and users of the plugin!', 'tablepress' ); ?>
250 247 </p>
248 + <ul>
249 + <li><?php printf( __( 'Allan Jardine for <a href="%s">DataTables</a>,', 'tablepress' ), 'https://datatables.net/' ); ?></li>
250 + <li><?php printf( __( 'the translators in the <a href="%s">Plugin Directory</a>,', 'tablepress' ), 'https://translate.wordpress.org/projects/wp-plugins/tablepress/' ); ?></li>
251 + <li><?php _e( 'all customers, donors, contributors, supporters, reviewers, and users of the plugin!', 'tablepress' ); ?></li>
252 + </ul>
251 253 <?php
252 254 }
253 255
254 256 } // class TablePress_About_View