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 +8 -6 trunk1.7.4 View file →
@@ -113,20 +113,16 @@
113 113 }
114 114 ?>
115 115 </div>
116 116 <?php
117 -$suffix = '';
118 117 if ( $section == 1 ) {
119 118 require 'menu_view_plugins.php';
120 - $suffix = 'plugins';
121 119
122 120 } elseif ( $section == 2 ) {
123 121 require 'menu_view_iostats.php';
124 - $suffix = 'iostats';
125 122
126 123 } elseif ( $section == 3 ) {
127 124 require 'menu_view_diskio.php';
128 - $suffix = 'diskio';
129 125
130 126 } elseif ( $section == 4 ) {
131 127 require 'menu_pro.php';
132 128
@@ -174,8 +170,14 @@
174 170 }
175 171 ?>
176 172 </div>
177 173
174 + <?php
175 + if (! empty( $composer_warning ) ) {
176 + echo $composer_warning;
177 + }
178 + ?>
179 +
178 180 <div class="alignleft actions bulkactions">
179 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);"/>
180 182 </div>
181 183
@@ -183,14 +185,14 @@
183 185
184 186 <?php
185 187 if ( isset( $rotate_img ) ) {
186 188 ?>
187 - <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="vertical-align: sub;"></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;
188 190 <?php
189 191 }
190 192 if ( isset( $save_png ) ) {
191 193 ?>
192 - <a type="button" class="button button-secondary" id="download-png-img" download="<?php echo esc_attr("{$profile_name}_{$suffix}") ?>.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="vertical-align: sub;"></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;
193 195 <?php
194 196 }
195 197 ?>
196 198 </div>