PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0.2.5
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0.2.5
4.3.2 4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 All 165 releases
← All changes | Libs/freemius/templates/debug.php +18 -87 4.2.254.0.2.5 View file →
@@ -257,19 +257,11 @@
257 257 'key' => 'WP_FS__DIR',
258 258 'val' => WP_FS__DIR,
259 259 ),
260 260 array(
261 - 'key' => 'DISABLE_WP_CRON',
262 - 'val' => defined( 'DISABLE_WP_CRON' ) ? ( DISABLE_WP_CRON ? 'true' : 'false' ) : 'Not defined',
263 - ),
264 - array(
265 261 'key' => 'wp_using_ext_object_cache()',
266 262 'val' => wp_using_ext_object_cache() ? 'true' : 'false',
267 263 ),
268 - array(
269 - 'key' => 'Freemius::get_unfiltered_site_url()',
270 - 'val' => Freemius::get_unfiltered_site_url(),
271 - ),
272 264 )
273 265 ?>
274 266 <br>
275 267 <table class="widefat">
@@ -285,25 +277,16 @@
285 277 <tr<?php if ( $alternate ) {
286 278 echo ' class="alternate"';
287 279 } ?>>
288 280 <td><?php echo $p['key'] ?></td>
289 - <td><?php echo $p['val'] ?><?php
290 - if ( 'DISABLE_WP_CRON' === $p['key'] && 'true' === $p['val'] ) {
291 - echo '<p><small><strong>Freemius SDK’s sync cron jobs will not run unless an alternative server-side cron is set up.</strong></small></p>';
292 - }
293 - ?></td>
281 + <td><?php echo $p['val'] ?></td>
294 282 </tr>
295 283 <?php $alternate = ! $alternate ?>
296 284 <?php endforeach ?>
297 285 </tbody>
298 286 </table>
299 -<h2>
300 - <button class="fs-debug-table-toggle-button" aria-expanded="true">
301 - <span class="fs-debug-table-toggle-icon">▼</span>
302 - </button>
303 - <?php fs_esc_html_echo_x_inline( 'SDK Versions', 'as software development kit versions', 'sdk-versions' ) ?>
304 -</h2>
305 -<table id="fs_sdks" class="widefat fs-debug-table">
287 +<h2><?php fs_esc_html_echo_x_inline( 'SDK Versions', 'as software development kit versions', 'sdk-versions' ) ?></h2>
288 +<table id="fs_sdks" class="widefat">
306 289 <thead>
307 290 <tr>
308 291 <th><?php fs_esc_html_echo_x_inline( 'Version', 'product version' ) ?></th>
309 292 <th><?php fs_esc_html_echo_inline( 'SDK Path' ) ?></th>
@@ -335,15 +318,10 @@
335 318 <?php $active_modules_by_id = array() ?>
336 319 <?php foreach ( $module_types as $module_type ) : ?>
337 320 <?php $modules = fs_get_entities( $fs_options->get_option( $module_type . 's' ), FS_Plugin::get_class_name() ) ?>
338 321 <?php if ( is_array( $modules ) && count( $modules ) > 0 ) : ?>
339 - <h2>
340 - <button class="fs-debug-table-toggle-button" aria-expanded="true">
341 - <span class="fs-debug-table-toggle-icon">▼</span>
342 - </button>
343 - <?php echo esc_html( ( WP_FS__MODULE_TYPE_PLUGIN == $module_type ) ? fs_text_inline( 'Plugins', 'plugins' ) : fs_text_inline( 'Themes', 'themes' ) ) ?>
344 - </h2>
345 - <table id="fs_<?php echo $module_type ?>" class="widefat fs-debug-table">
322 + <h2><?php echo esc_html( ( WP_FS__MODULE_TYPE_PLUGIN == $module_type ) ? fs_text_inline( 'Plugins', 'plugins' ) : fs_text_inline( 'Themes', 'themes' ) ) ?></h2>
323 + <table id="fs_<?php echo $module_type ?>" class="widefat">
346 324 <thead>
347 325 <tr>
348 326 <th><?php fs_esc_html_echo_inline( 'ID', 'id' ) ?></th>
349 327 <th><?php fs_esc_html_echo_inline( 'Slug' ) ?></th>
@@ -360,9 +338,8 @@
360 338 <th><?php fs_esc_html_echo_inline( 'Actions' ) ?></th>
361 339 </tr>
362 340 </thead>
363 341 <tbody>
364 - <?php $alternate = false; ?>
365 342 <?php foreach ( $modules as $slug => $data ) : ?>
366 343 <?php
367 344 if ( WP_FS__MODULE_TYPE_THEME !== $module_type ) {
368 345 $is_active = is_plugin_active( $data->file );
@@ -384,14 +361,14 @@
384 361
385 362 $active_modules_by_id[ $data->id ] = true;
386 363 }
387 364 ?>
388 - <tr<?php if ( $alternate ) { echo ' class="alternate" '; } ?><?php if ( $is_active ) {
365 + <tr<?php if ( $is_active ) {
389 366 $has_api_connectivity = $fs->has_api_connectivity();
390 367
391 368 if ( true === $has_api_connectivity && $fs->is_on() ) {
392 369 echo ' style="background: #E6FFE6; font-weight: bold"';
393 - } else if ( false === $has_api_connectivity || ! $fs->is_on() ) {
370 + } else {
394 371 echo ' style="background: #ffd0d0; font-weight: bold"';
395 372 }
396 373 } ?>>
397 374 <td><?php echo $data->id ?></td>
@@ -397,9 +374,9 @@
397 374 <td><?php echo $data->id ?></td>
398 375 <td><?php echo $slug ?></td>
399 376 <td><?php echo $data->version ?></td>
400 377 <td><?php echo $data->title ?></td>
401 - <td<?php if ( $is_active && false === $has_api_connectivity ) {
378 + <td<?php if ( $is_active && true !== $has_api_connectivity ) {
402 379 echo ' style="color: red; text-transform: uppercase;"';
403 380 } ?>><?php if ( $is_active ) {
404 381 echo esc_html( true === $has_api_connectivity ?
405 382 fs_text_x_inline( 'Connected', 'as connection was successful' ) :
@@ -404,9 +381,9 @@
404 381 echo esc_html( true === $has_api_connectivity ?
405 382 fs_text_x_inline( 'Connected', 'as connection was successful' ) :
406 383 ( false === $has_api_connectivity ?
407 384 fs_text_x_inline( 'Blocked', 'as connection blocked' ) :
408 - fs_text_x_inline( 'No requests yet', 'API connectivity state is unknown' ) )
385 + fs_text_x_inline( 'Unknown', 'API connectivity state is unknown' ) )
409 386 );
410 387 } ?></td>
411 388 <td<?php if ( $is_active && ! $fs->is_on() ) {
412 389 echo ' style="color: red; text-transform: uppercase;"';
@@ -458,9 +435,8 @@
458 435 <?php endif ?>
459 436 <?php endif ?>
460 437 </td>
461 438 </tr>
462 - <?php $alternate = ! $alternate ?>
463 439 <?php endforeach ?>
464 440 </tbody>
465 441 </table>
466 442 <?php endif ?>
@@ -475,19 +451,14 @@
475 451
476 452 $all_plans = false;
477 453 ?>
478 454 <?php if ( is_array( $sites_map ) && count( $sites_map ) > 0 ) : ?>
479 - <h2>
480 - <button class="fs-debug-table-toggle-button" aria-expanded="true">
481 - <span class="fs-debug-table-toggle-icon">▼</span>
482 - </button>
483 - <?php echo esc_html( sprintf(
455 + <h2><?php echo esc_html( sprintf(
484 456 /* translators: %s: 'plugin' or 'theme' */
485 457 fs_text_inline( '%s Installs', 'module-installs' ),
486 458 ( WP_FS__MODULE_TYPE_PLUGIN === $module_type ? fs_text_inline( 'Plugin', 'plugin' ) : fs_text_inline( 'Theme', 'theme' ) )
487 - ) ) ?> / <?php fs_esc_html_echo_x_inline( 'Sites', 'like websites', 'sites' ) ?>
488 - </h2>
489 - <table id="fs_<?php echo $module_type ?>_installs" class="widefat fs-debug-table">
459 + ) ) ?> / <?php fs_esc_html_echo_x_inline( 'Sites', 'like websites', 'sites' ) ?></h2>
460 + <table id="fs_<?php echo $module_type ?>_installs" class="widefat">
490 461 <thead>
491 462 <tr>
492 463 <th><?php fs_esc_html_echo_inline( 'ID', 'id' ) ?></th>
493 464 <?php if ( $is_multisite ) : ?>
@@ -595,15 +566,10 @@
595 566 <?php
596 567 $addons = $VARS['addons'];
597 568 ?>
598 569 <?php foreach ( $addons as $plugin_id => $plugin_addons ) : ?>
599 - <h2>
600 - <button class="fs-debug-table-toggle-button" aria-expanded="true">
601 - <span class="fs-debug-table-toggle-icon">▼</span>
602 - </button>
603 - <?php echo esc_html( sprintf( fs_text_inline( 'Add Ons of module %s', 'addons-of-x' ), $plugin_id ) ) ?>
604 - </h2>
605 - <table id="fs_addons" class="widefat fs-debug-table">
570 + <h2><?php echo esc_html( sprintf( fs_text_inline( 'Add Ons of module %s', 'addons-of-x' ), $plugin_id ) ) ?></h2>
571 + <table id="fs_addons" class="widefat">
606 572 <thead>
607 573 <tr>
608 574 <th><?php fs_esc_html_echo_inline( 'ID', 'id' ) ?></th>
609 575 <th><?php fs_esc_html_echo_inline( 'Title' ) ?></th>
@@ -659,15 +625,10 @@
659 625 }
660 626
661 627 ?>
662 628 <?php if ( is_array( $users ) && 0 < count( $users ) ) : ?>
663 - <h2>
664 - <button class="fs-debug-table-toggle-button" aria-expanded="true">
665 - <span class="fs-debug-table-toggle-icon">▼</span>
666 - </button>
667 - <?php fs_esc_html_echo_inline( 'Users' ) ?>
668 - </h2>
669 - <table id="fs_users" class="widefat fs-debug-table">
629 + <h2><?php fs_esc_html_echo_inline( 'Users' ) ?></h2>
630 + <table id="fs_users" class="widefat">
670 631 <thead>
671 632 <tr>
672 633 <th><?php fs_esc_html_echo_inline( 'ID', 'id' ) ?></th>
673 634 <th><?php fs_esc_html_echo_inline( 'Name' ) ?></th>
@@ -713,15 +674,10 @@
713 674 * @var FS_Plugin_License[] $licenses
714 675 */
715 676 $licenses = $VARS[ $module_type . '_licenses' ] ?>
716 677 <?php if ( is_array( $licenses ) && count( $licenses ) > 0 ) : ?>
717 - <h2>
718 - <button class="fs-debug-table-toggle-button" aria-expanded="true">
719 - <span class="fs-debug-table-toggle-icon">▼</span>
720 - </button>
721 - <?php echo esc_html( sprintf( fs_text_inline( '%s Licenses', 'module-licenses' ), ( WP_FS__MODULE_TYPE_PLUGIN === $module_type ? fs_text_inline( 'Plugin', 'plugin' ) : fs_text_inline( 'Theme', 'theme' ) ) ) ) ?>
722 - </h2>
723 - <table id="fs_<?php echo $module_type ?>_licenses" class="widefat fs-debug-table">
678 + <h2><?php echo esc_html( sprintf( fs_text_inline( '%s Licenses', 'module-licenses' ), ( WP_FS__MODULE_TYPE_PLUGIN === $module_type ? fs_text_inline( 'Plugin', 'plugin' ) : fs_text_inline( 'Theme', 'theme' ) ) ) ) ?></h2>
679 + <table id="fs_<?php echo $module_type ?>_licenses" class="widefat">
724 680 <thead>
725 681 <tr>
726 682 <th><?php fs_esc_html_echo_inline( 'ID', 'id' ) ?></th>
727 683 <th><?php fs_esc_html_echo_inline( 'Plugin ID' ) ?></th>
@@ -757,12 +713,8 @@
757 713 </tbody>
758 714 </table>
759 715 <?php endif ?>
760 716 <?php endforeach ?>
761 -<?php
762 - $page_params = array( 'is_fs_debug_page' => true );
763 - fs_require_template( 'debug/scheduled-crons.php', $page_params );
764 -?>
765 717 <?php if ( FS_Logger::is_storage_logging_on() ) : ?>
766 718
767 719 <h2><?php fs_esc_html_echo_inline( 'Debug Log', 'debug-log' ) ?></h2>
768 720
@@ -935,25 +887,4 @@
935 887 loadLogs();
936 888 });
937 889 </script>
938 890 <?php endif ?>
939 -<script type="text/javascript">
940 - // JavaScript to toggle the visibility of the table body and change the caret icon
941 - jQuery( document ).ready( function ( $ ) {
942 - $( '.fs-debug-table-toggle-button' ).on( 'click', function () {
943 - const button = $( this );
944 - const table = button.closest( 'h2' ).next( 'table' );
945 - const isExpanded = ( 'false' === button.attr( 'aria-expanded' ) );
946 -
947 - button.attr( 'aria-expanded', isExpanded );
948 - button.find( '.fs-debug-table-toggle-icon' ).text( isExpanded ? '▼' : '▶' );
949 -
950 - table.css( {
951 - display : isExpanded ? 'table' : 'block',
952 - borderBottomWidth: isExpanded ? '1px' : '0',
953 - maxHeight : isExpanded ? 'auto' : '0',
954 - } );
955 - } );
956 -
957 - $( '.fs-debug-table-toggle-button:last' ).click();
958 - } );
959 -</script>