Plugin Directory

Changeset 2063034


Ignore:
Timestamp:
04/04/2019 01:24:05 PM (7 years ago)
Author:
navanathbhosale
Message:

Fixed: PHP warning for get_home_path function

Location:
developer-tool
Files:
20 added
3 edited

Legend:

Unmodified
Added
Removed
  • developer-tool/trunk/classes/class-dev-tool.php

    r2062374 r2063034  
    137137            $classes = '';
    138138
    139             if ( file_exists( get_home_path() . 'wp-content/debug.log' ) && 0 !== filesize ( get_home_path() . 'wp-content/debug.log' ) ) {
    140                 $classes = 'highlight_error';
    141             } else {
    142                 $classes = 'no_error';
     139            if( is_callable( 'get_home_path' ) ) {
     140                if ( file_exists( get_home_path() . 'wp-content/debug.log' ) && 0 !== filesize ( get_home_path() . 'wp-content/debug.log' ) ) {
     141                    $classes = 'highlight_error';
     142                } else {
     143                    $classes = 'no_error';
     144                }
    143145            }
    144146
  • developer-tool/trunk/developer-tool.php

    r2062374 r2063034  
    33    Plugin Name: Developer Tool
    44    Description: Developer Tool helps you to <strong> debug your working environment</strong>. It shows you notices / warnings / errors which may cause during development or beacuse of conflicts.
    5     Version: 1.0.1
     5    Version: 1.0.2
    66    Author: Navanath Bhosale
    77    Author URI: https://profiles.wordpress.org/navanathbhosale/profile/
     
    1515
    1616if ( ! defined( 'DEV_TOOL_PLUGIN_VERSION' ) ) {
    17     define( 'DEV_TOOL_PLUGIN_VERSION', '1.0.1' );
     17    define( 'DEV_TOOL_PLUGIN_VERSION', '1.0.2' );
    1818}
    1919
  • developer-tool/trunk/readme.txt

    r2062375 r2063034  
    4949= 1.0.1 =
    5050- Fixed: PHP warning for textdomain folder location
     51
     52= 1.0.2 =
     53- Fixed: PHP warning for get_home_path function
Note: See TracChangeset for help on using the changeset viewer.