Changeset 2367334
- Timestamp:
- 08/23/2020 01:04:44 PM (6 years ago)
- Location:
- wp-developer-tools/trunk
- Files:
-
- 4 edited
-
classes/Console.php (modified) (1 diff)
-
classes/PhpQuickProfiler.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
wp-developer-tools.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-developer-tools/trunk/classes/Console.php
r410640 r2367334 66 66 -------------------------------------*/ 67 67 68 public function logSpeed($name = 'Point in Time') {68 static public function logSpeed($name = 'Point in Time') { 69 69 $logItem = array( 70 70 "data" => PhpQuickProfiler::getMicroTime(), -
wp-developer-tools/trunk/classes/PhpQuickProfiler.php
r410640 r2367334 164 164 -------------------------------------------*/ 165 165 166 function getMicroTime() {166 static public function getMicroTime() { 167 167 $time = microtime(); 168 168 $time = explode(' ', $time); -
wp-developer-tools/trunk/readme.txt
r1979599 r2367334 4 4 Tags: php quick profiler, wordpress developer tools 5 5 Requires at least: 2.8.6 6 Tested up to: 4.9.87 Stable tag: 4.9.86 Tested up to: 5.5 7 Stable tag: 1.1.1 8 8 9 9 A needed plugin to help developers optimize their installation of wordpress. plugins and themes. … … 57 57 58 58 == Changelog == 59 = 1.1.1 = 60 * Fixes: Methods with the same name as their class will not be constructors 61 * Remove role_has_cap 62 59 63 = 1.1 = 60 64 * Change to use MySQLi extension -
wp-developer-tools/trunk/wp-developer-tools.php
r1978474 r2367334 9 9 Plugin URI: https://wordpress.org/plugins/wp-developer-tools/ 10 10 Description: Collection of useful developer tools 11 Author: PressPage Entertainment Inc. 12 Author URI: https://p resspage.info13 Version: 1.1 11 Author: PressPage Entertainment Inc. DBA PINGLEWARE 12 Author URI: https://pingleware.work 13 Version: 1.1.1 14 14 License: GPLv2 15 15 */ … … 172 172 'login_headerurl', 173 173 'login_message', 174 'role_has_cap',175 174 'sanitize_user', 176 175 'the_author', … … 298 297 299 298 // constructor 300 function WP_Developer_Tools()299 function __construct() 301 300 { 302 301 if ( function_exists( 'register_activation_hook' ) ) … … 383 382 global $wp_roles; 384 383 385 if (!function_exists('mysqli_connect')) {386 deactivate_plugins(basename(__FILE__));387 wp_die('Missing MySQLi extension');388 }384 if (!function_exists('mysqli_connect')) { 385 deactivate_plugins(basename(__FILE__)); 386 wp_die('Missing MySQLi extension'); 387 } 389 388 390 389 add_option('wpdt_quick_profiler',FALSE); … … 1605 1604 return $content; 1606 1605 } 1607 function wpdt_role_has_cap($content) {1608 Console::log($content,'role_has_cap');1609 Console::logMemory();1610 Console::logSpeed();1611 return $content;1612 }1613 1606 function wpdt_sanitize_user($content) { 1614 1607 Console::log($content,'sanitize_user');
Note: See TracChangeset
for help on using the changeset viewer.