| @@ -10,21 +10,29 @@ | ||
| 10 | 10 | | (c) Jerome Bruandet ~ https://code-profiler.com/ | |
| 11 | 11 | +=====================================================================+ |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -if (! defined( 'ABSPATH' ) ) { die( 'Forbidden' ); } | |
| 14 | +if (! defined('ABSPATH') ) { | |
| 15 | + die('Forbidden'); | |
| 16 | +} | |
| 15 | 17 | |
| 16 | 18 | // ===================================================================== |
| 17 | 19 | // Display the profiler's support page. |
| 18 | 20 | |
| 21 | +if ( defined('CODE_PROFILER_TEXTAREA_HEIGHT') ) { | |
| 22 | + $th = (int) CODE_PROFILER_TEXTAREA_HEIGHT; | |
| 23 | +} else { | |
| 24 | + $th = '450'; | |
| 25 | +} | |
| 26 | + | |
| 19 | 27 | echo code_profiler_display_tabs( 6 ); |
| 20 | 28 | ?> |
| 21 | 29 | <br /> |
| 22 | -<p><?php esc_html_e('When contacting the support for help, please copy and paste the system information report below in your ticket:', 'code-profiler' ) ?></p> | |
| 30 | +<p><?php esc_html_e('When contacting the support for help, please copy and paste the system information report below in your ticket:', 'code-profiler') ?></p> | |
| 23 | 31 | <table class="form-table"> |
| 24 | 32 | <tr> |
| 25 | 33 | <td> |
| 26 | - <textarea dir="auto" id="cp-troubleshooter" class="large-text code" style="height:250px;" wrap="off" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><?php | |
| 34 | + <textarea dir="auto" id="cp-troubleshooter" class="large-text code" style="height:<?php echo $th; ?>px;" wrap="off" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"><?php | |
| 27 | 35 | require_once __DIR__ .'/class-troubleshooter.php'; |
| 28 | 36 | new CP_Troubleshooter(); |
| 29 | 37 | ?></textarea> |
| 30 | 38 | <p><input type="button" onClick="cpjs_copy_textarea('cp-troubleshooter')" class="button-secondary" value="<?php esc_attr_e('Copy text', 'code-profiler') ?>" /></p> |