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.6 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 All 41 releases
← All changes | lib/menu_view_profile.php +7 -15 1.51.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; }
@@ -177,9 +177,9 @@
177 177 }
178 178 ?>
179 179
180 180 <div class="alignleft actions bulkactions">
181 - <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);"/>
182 182 </div>
183 183
184 184 <div class="tablenav-pages">
185 185
@@ -185,14 +185,14 @@
185 185
186 186 <?php
187 187 if ( isset( $rotate_img ) ) {
188 188 ?>
189 - <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;
190 190 <?php
191 191 }
192 192 if ( isset( $save_png ) ) {
193 193 ?>
194 - <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" 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;
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;
195 195 <?php
196 196 }
197 197 ?>
198 198 </div>
@@ -198,15 +198,7 @@
198 198 </div>
199 199 </div>
200 200
201 201 <?php
202 -
203 -// =====================================================================
204 -
205 -function code_profiler_buffer_error( $error ) {
206 -
207 - return $error;
208 -
209 -}
210 202
211 203 // =====================================================================
212 204 // EOF