Plugin Directory

Changeset 2367334


Ignore:
Timestamp:
08/23/2020 01:04:44 PM (6 years ago)
Author:
phkcorp2005
Message:

fixes for WP version 5.5

Location:
wp-developer-tools/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-developer-tools/trunk/classes/Console.php

    r410640 r2367334  
    6666    -------------------------------------*/
    6767   
    68     public function logSpeed($name = 'Point in Time') {
     68    static public function logSpeed($name = 'Point in Time') {
    6969        $logItem = array(
    7070            "data" => PhpQuickProfiler::getMicroTime(),
  • wp-developer-tools/trunk/classes/PhpQuickProfiler.php

    r410640 r2367334  
    164164    -------------------------------------------*/
    165165   
    166     function getMicroTime() {
     166    static public function getMicroTime() {
    167167        $time = microtime();
    168168        $time = explode(' ', $time);
  • wp-developer-tools/trunk/readme.txt

    r1979599 r2367334  
    44Tags: php quick profiler, wordpress developer tools
    55Requires at least: 2.8.6
    6 Tested up to: 4.9.8
    7 Stable tag: 4.9.8
     6Tested up to: 5.5
     7Stable tag: 1.1.1
    88
    99A needed plugin to help developers optimize their installation of wordpress. plugins and themes.
     
    5757
    5858== 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
    5963= 1.1 =
    6064* Change to use MySQLi extension
  • wp-developer-tools/trunk/wp-developer-tools.php

    r1978474 r2367334  
    99Plugin URI: https://wordpress.org/plugins/wp-developer-tools/
    1010Description: Collection of useful developer tools
    11 Author: PressPage Entertainment Inc.
    12 Author URI: https://presspage.info
    13 Version: 1.1
     11Author: PressPage Entertainment Inc. DBA PINGLEWARE
     12Author URI: https://pingleware.work
     13Version: 1.1.1
    1414License: GPLv2
    1515*/
     
    172172                'login_headerurl',
    173173                'login_message',
    174                 'role_has_cap',
    175174                'sanitize_user',
    176175                'the_author',
     
    298297
    299298        // constructor
    300         function WP_Developer_Tools()
     299        function __construct()
    301300        {
    302301            if ( function_exists( 'register_activation_hook' ) )
     
    383382            global $wp_roles;
    384383                       
    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            }
    389388
    390389            add_option('wpdt_quick_profiler',FALSE);
     
    16051604        return $content;
    16061605    }
    1607     function wpdt_role_has_cap($content) {
    1608         Console::log($content,'role_has_cap');
    1609         Console::logMemory();
    1610         Console::logSpeed();
    1611         return $content;
    1612     }
    16131606    function wpdt_sanitize_user($content) {
    16141607        Console::log($content,'sanitize_user');
Note: See TracChangeset for help on using the changeset viewer.