Plugin Directory

Changeset 3227843


Ignore:
Timestamp:
01/24/2025 06:26:15 AM (14 months ago)
Author:
developer1998
Message:

Enhancement - Security checks for issues.
Updated - Updated the code to check the deprecated functions.

Location:
security-checker-for-themes
Files:
12 added
2 edited

Legend:

Unmodified
Added
Removed
  • security-checker-for-themes/trunk/readme.txt

    r3203450 r3227843  
    6464== Changelog ==
    6565
    66 = 1.1.0 2024-12-06 =
     66= 1.1.1 =
     67* Enhancement - Security checks for issues.
     68* Updated - Updated the code to check the deprecated functions.
    6769
    68 **Security Checker for Themes**
     70= 1.1.0 =
     71* Added hardcoded URL detection and recommended using dynamic functions like `home_url()` or `site_url()`.
     72* Enhanced security checks for issues like insecure file handling and weak encryption methods.
     73* Excluded external resources (e.g., CDN links) from triggering unnecessary warnings.
     74* Improved scoring system and visual reports.
    6975
    70 * Added - Detection for hardcoded URLs, recommending using dynamic WordPress functions like `home_url()` or `site_url()`. 
    71 * Added - Enhanced security checks for potential issues like insecure file handling and weak encryption methods. 
    72 * Added - Exclusion of external resources from unnecessary warning triggers. 
    73 * Improved - Scoring system and visual reports to provide clearer insights into code quality.
     76= 1.0.0 =
     77* Initial release.
    7478
    75 = 1.0.0 2024-09-06 =
     79== Upgrade Notice ==
    7680
    77 **Security Checker for Themes**
    78 
    79 * Initial release of the plugin to analyze themes for coding standards, security vulnerabilities, and best practices.
     81= 1.1.0 =
     82* This update adds hardcoded URL detection and enhanced security checks. No upgrade required for current users.
  • security-checker-for-themes/trunk/security-checker-for-themes.php

    r3203450 r3227843  
    296296    }
    297297
    298     public function scft_enqueue_plugin_script_inline() {
     298    public function scft_enqueue_plugin_script_inline($screen) {
     299
     300        if ( 'toplevel_page_security-checker-for-themes' != $screen ) {
     301            return;
     302        }
     303
    299304        wp_register_script('chart-inline-js', plugin_dir_url(__FILE__) . 'assets/js/Chart.js', [], '4.4.4', true);
    300305        wp_enqueue_script('chart-inline-js');
     
    621626            'get_theme' => 'Use wp_get_theme() instead.',
    622627            'get_current_theme' => 'Use wp_get_theme() instead.',
    623             'get_theme_data' => 'Use wp_get_theme() instead.'
     628            'get_theme_data' => 'Use wp_get_theme() instead.',
     629            'add_contextual_help' => 'Use WP_Screen::add_help_tab() instead.',
     630            'add_custom_background' => 'Use add_theme_support() instead.',
     631            'add_custom_image_header' => 'Use add_theme_support() instead.',
     632            'attribute_escape' => 'Use esc_attr() instead.',
     633            'clean_page_cache' => 'Use clean_post_cache() instead.',
    624634        ];
    625635
Note: See TracChangeset for help on using the changeset viewer.