| @@ -6,29 +6,37 @@ | ||
| 6 | 6 | | | | / _ \ / _` |/ _ \ | |_) | '__/ _ \| |_| | |/ _ \ '__| | |
| 7 | 7 | | | |__| (_) | (_| | __/ | __/| | | (_) | _| | | __/ | | |
| 8 | 8 | | \____\___/ \__,_|\___| |_| |_| \___/|_| |_|_|\___|_| | |
| 9 | 9 | | | |
| 10 | - | (c) Jerome Bruandet ~ https://code-profiler.com/ | | |
| 10 | + | (c) Jerome Bruandet ~ https://nintechnet.com/codeprofiler/ | | |
| 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 | - <p><input type="button" onClick="cpjs_copy_textarea('cp-troubleshooter')" class="button-secondary" value="<?php esc_attr_e('Copy text', 'code-profiler') ?>" /></p> | |
| 38 | + <p><input type="button" onClick="cpjs_copy_textarea('cp-troubleshooter')" class="button button-secondary" value="<?php esc_attr_e('Copy text', 'code-profiler') ?>" /></p> | |
| 31 | 39 | </td> |
| 32 | 40 | </tr> |
| 33 | 41 | </table> |
| 34 | 42 | <?php |