PluginProbe
Code Profiler – WordPress Performance Profiling and Debugging Made Easy / 1.7.4
Code Profiler – WordPress Performance Profiling and Debugging Made Easy v1.7.4
1.9.5 1.9.4 1.9.3 trunk 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.5 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.6 1.6.1 1.6.10 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 All 40 releases
← All changes | lib/menu_view_profile.php +13 -15 1.41.7.4 View file →
@@ -6,13 +6,13 @@
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' ) ) { die('Forbidden'); }
15 15
16 16 // =====================================================================
17 17 // Display selected profile.
18 18
@@ -44,9 +44,9 @@
44 44 esc_attr( $id ),
45 45 esc_attr( $orderby ),
46 46 esc_attr( $order )
47 47 ) .'"'.
48 - selected( $num, $section ) .'>'.
48 + selected( $num, $section, false ) .'>'.
49 49 sprintf(
50 50 esc_html__('Page %s: %s', 'code-profiler'),
51 51 (int) $num,
52 52 esc_html( $section_name )
@@ -128,9 +128,9 @@
128 128
129 129 }
130 130
131 131 if ( isset( $buffer['error'] ) ) {
132 - echo code_profiler_buffer_error( $buffer['error'] );
132 + echo $buffer['error'];
133 133 return;
134 134 }
135 135
136 136 if ( $section == 4 ) { return; }
@@ -170,10 +170,16 @@
170 170 }
171 171 ?>
172 172 </div>
173 173
174 + <?php
175 + if (! empty( $composer_warning ) ) {
176 + echo $composer_warning;
177 + }
178 + ?>
179 +
174 180 <div class="alignleft actions bulkactions">
175 - <input type="button" class="button-primary" style="min-width:100px" value="<?php esc_attr_e('Help', 'code-profiler' )?>" onclick="jQuery('#cp-footer-help').slideToggle(500);"/>
181 + <input type="button" class="button button-primary" style="min-width:100px" value="<?php esc_attr_e('Help', 'code-profiler' )?>" onclick="jQuery('#cp-footer-help').slideToggle(500);"/>
176 182 </div>
177 183
178 184 <div class="tablenav-pages">
179 185
@@ -179,14 +185,14 @@
179 185
180 186 <?php
181 187 if ( isset( $rotate_img ) ) {
182 188 ?>
183 - <button type="button" class="button-secondary" id="htov" title="<?php esc_attr_e('Click to rotate graph', 'code-profiler' )?>"><span class="dashicons dashicons-image-rotate" style="display: inline-block;vertical-align: middle;"></span></button>&nbsp;
189 + <button type="button" class="button button-secondary" id="htov" title="<?php esc_attr_e('Click to rotate graph', 'code-profiler' )?>"><span class="dashicons dashicons-image-rotate" style="display: inline-block;vertical-align: middle;"></span></button>&nbsp;
184 190 <?php
185 191 }
186 192 if ( isset( $save_png ) ) {
187 193 ?>
188 - <a type="button" class="button-secondary" id="download-png-img" download="<?php echo esc_attr( $profile_name) ?>_plugins.png" title="<?php esc_attr_e('Click to download as an image', 'code-profiler' )?>" target="_blank"><span class="dashicons dashicons-download" style="display: inline-block;vertical-align: middle;"></span><?php esc_attr_e('Download as a PNG image', 'code-profiler' )?></a>&nbsp;
194 + <a type="button" class="button button-secondary" id="download-png-img" download="<?php echo esc_attr( $profile_name) ?>_plugins.png" title="<?php esc_attr_e('Click to download as an image', 'code-profiler' )?>" target="_blank" rel="noopener noreferrer"><span class="dashicons dashicons-download" style="display: inline-block;vertical-align: middle;"></span><?php esc_attr_e('Download as a PNG image', 'code-profiler' )?></a>&nbsp;
189 195 <?php
190 196 }
191 197 ?>
192 198 </div>
@@ -192,15 +198,7 @@
192 198 </div>
193 199 </div>
194 200
195 201 <?php
196 -
197 -// =====================================================================
198 -
199 -function code_profiler_buffer_error( $error ) {
200 -
201 - return $error;
202 -
203 -}
204 202
205 203 // =====================================================================
206 204 // EOF