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 +30 -31 2.43.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 *
@@ -62,11 +61,9 @@
62 61 * @param array<string, mixed> $data Data for this screen.
63 62 * @param array<string, mixed> $box Information about the text box.
64 63 */
65 64 public function textbox_spacer( array $data, array $box ): void {
66 - ?>
67 - <p></p>
68 - <?php
65 + echo '<p></p>';
69 66 }
70 67
71 68 /**
72 69 * Print the content of the "Plugin Purpose" post meta box.
@@ -208,31 +205,31 @@
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; 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 ?>
223 - <br>&middot; 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 ?>
224 - <br>&middot; mbstring: <?php echo extension_loaded( 'mbstring' ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?>
225 - <br>&middot; ZipArchive: <?php echo class_exists( 'ZipArchive', false ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?>
226 - <br>&middot; DOMDocument: <?php echo class_exists( 'DOMDocument', false ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?>
227 - <br>&middot; simplexml_load_string: <?php echo function_exists( 'simplexml_load_string' ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?>
228 - <br>&middot; libxml_disable_entity_loader: <?php echo function_exists( 'libxml_disable_entity_loader' ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?>
229 - <br>&middot; UTF-8 conversion: <?php echo ( function_exists( 'mb_detect_encoding' ) && function_exists( 'iconv' ) ) ? 'yes' : '<span style="color:#800000;font-weight:bold;">no</span>'; ?>
230 - <br>&middot; WP Memory Limit: <?php echo WP_MEMORY_LIMIT; ?>
231 - <br>&middot; Server Memory Limit: <?php echo esc_html( @ini_get( 'memory_limit' ) ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged ?>
232 - <br>&middot; WP_DEBUG: <?php echo WP_DEBUG ? 'true' : 'false'; ?>
233 - <br>&middot; WP_POST_REVISIONS: <?php echo is_bool( WP_POST_REVISIONS ) ? ( WP_POST_REVISIONS ? 'true' : 'false' ) : WP_POST_REVISIONS; // @phpstan-ignore-line ?>
234 - </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>
235 232 <?php
236 233 }
237 234
238 235 /**
@@ -246,12 +243,14 @@
246 243 public function postbox_credits_thanks( array $data, array $box ): void {
247 244 ?>
248 245 <p>
249 246 <?php _e( 'Special Thanks go to:', 'tablepress' ); ?>
250 - <br>&middot; <?php printf( __( 'Allan Jardine for <a href="%s">DataTables</a>,', 'tablepress' ), 'https://www.datatables.net/' ); ?>
251 - <br>&middot; <?php printf( __( 'the translators in the <a href="%s">Plugin Directory</a>,', 'tablepress' ), 'https://translate.wordpress.org/projects/wp-plugins/tablepress/' ); ?>
252 - <br>&middot; <?php _e( 'all customers, donors, contributors, supporters, reviewers, and users of the plugin!', 'tablepress' ); ?>
253 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>
254 253 <?php
255 254 }
256 255
257 256 } // class TablePress_About_View