Plugin Directory

Changeset 3183924


Ignore:
Timestamp:
11/07/2024 02:40:52 PM (14 months ago)
Author:
nsp-code
Message:

Version: 2.5

Location:
wp-hide-security-enhancer
Files:
208 added
10 edited

Legend:

Unmodified
Added
Removed
  • wp-hide-security-enhancer/trunk/assets/css/wph-general.css

    r2709073 r3183924  
    11#adminmenu span.wph-info {display: inline-block;font-size: 9px;}
     2#adminmenu span.wph-info.submenu {padding-left: 20px}
     3#adminmenu .wph-current a {box-shadow: inset 2px 0 0 0 currentColor; color: #2ea2cc}
  • wp-hide-security-enhancer/trunk/assets/js/wph.js

    r2977600 r3183924  
    55            constructor() {
    66                this.SiteScanProgress_interval = false;
    7                 this.AJAX_data  =   false 
     7                this.AJAX_data  =   false;
     8               
     9                this.adminInit(); 
     10            }
     11           
     12            adminInit() {
     13               
     14                jQuery( document ).ready( function() {
     15                    if ( jQuery( '.submenu.wph-highlight').length > 0 )
     16                        jQuery( '.submenu.wph-highlight').closest( 'li' ).addClass('wph-current');
     17                })   
     18               
     19               
    820            }
    921           
  • wp-hide-security-enhancer/trunk/include/admin-interfaces/security-scan.class.php

    r2950174 r3183924  
    147147            function admin_print_styles()
    148148                {
    149                     wp_enqueue_style( 'tipsy.css', WPH_URL . '/assets/css/tipsy.css');
    150                    
    151                     wp_register_style('WPHStyle', WPH_URL . '/assets/css/wph.css');
     149                    wp_enqueue_style( 'tipsy.css', WPH_URL . '/assets/css/tipsy.css', array(), WPH_CORE_VERSION );
     150                   
     151                    wp_register_style('WPHStyle', WPH_URL . '/assets/css/wph.css', array(), WPH_CORE_VERSION );
    152152                    wp_enqueue_style( 'WPHStyle');
    153153                   
    154                     wp_register_style('wph-graphs', WPH_URL . '/assets/css/graph.css');
     154                    wp_register_style('wph-graphs', WPH_URL . '/assets/css/graph.css', array(), WPH_CORE_VERSION );
    155155                    wp_enqueue_style( 'wph-graphs');
    156156                   
    157                     wp_register_style('wph-security-scan', WPH_URL . '/assets/css/security-scan.css');
     157                    wp_register_style('wph-security-scan', WPH_URL . '/assets/css/security-scan.css', array(), WPH_CORE_VERSION );
    158158                    wp_enqueue_style( 'wph-security-scan');
    159159               
     
    163163            function admin_print_scripts()
    164164                {
    165                     wp_enqueue_script('jquery.tipsy.js', WPH_URL . '/assets/js/jquery.tipsy.js' );
     165                    wp_enqueue_script('jquery.tipsy.js', WPH_URL . '/assets/js/jquery.tipsy.js', array(), WPH_CORE_VERSION );
    166166                   
    167167                    wp_enqueue_script( 'jquery');
  • wp-hide-security-enhancer/trunk/include/admin-interfaces/setup.class.php

    r3093927 r3183924  
    2525            function admin_print_styles()
    2626                {
    27                     wp_enqueue_style( 'tipsy.css', WPH_URL . '/assets/css/tipsy.css');
    28                    
    29                     wp_register_style('WPHStyle', WPH_URL . '/assets/css/wph.css');
     27                    wp_enqueue_style( 'tipsy.css', WPH_URL . '/assets/css/tipsy.css', array(), WPH_CORE_VERSION );
     28                   
     29                    wp_register_style('WPHStyle', WPH_URL . '/assets/css/wph.css', array(), WPH_CORE_VERSION );
    3030                    wp_enqueue_style( 'WPHStyle');
    3131               
     
    3636                {
    3737                    wp_enqueue_script( 'jquery');
    38                     wp_register_script('wph', WPH_URL . '/assets/js/wph.js');
    39                    
    40                     wp_enqueue_script('jquery.tipsy.js', WPH_URL . '/assets/js/jquery.tipsy.js' );
     38                    wp_register_script('wph', WPH_URL . '/assets/js/wph.js', array(), WPH_CORE_VERSION );
     39                   
     40                    wp_enqueue_script('jquery.tipsy.js', WPH_URL . '/assets/js/jquery.tipsy.js' , array(), WPH_CORE_VERSION );
    4141                   
    4242                    // Localize the script with new data
  • wp-hide-security-enhancer/trunk/include/functions.class.php

    r3093927 r3183924  
    624624
    625625                   
    626                     $home_path      =   trim($home_path, '\\/ ');
     626                    $home_path      =   rtrim($home_path, '\\/ ');
    627627                   
    628628                    //not for windows
     
    32513251                        }
    32523252                       
    3253                     if (class_exists('\LiteSpeed\Purge'))
     3253                    if (class_exists('\LiteSpeed\Purge')    &&   defined ( 'LSWCP_TAG_PREFIX' ) )
    32543254                        {
    32553255                            \LiteSpeed\Purge::purge_all();
     3256                        }
     3257                       
     3258                       
     3259                    if ( did_action( 'elementor/loaded' ) )
     3260                        {
     3261                            // Automatically purge and regenerate the Elementor CSS cache
     3262                            \Elementor\Plugin::instance()->files_manager->clear_cache();
    32563263                        }
    32573264                       
  • wp-hide-security-enhancer/trunk/include/widgets.class.php

    r2950174 r3183924  
    2121            function dashboard_overview_styles()
    2222                {
    23                     wp_register_style('wph-graphs', WPH_URL . '/assets/css/graph.css');
     23                    wp_register_style('wph-graphs', WPH_URL . '/assets/css/graph.css', array(), WPH_CORE_VERSION );
    2424                    wp_enqueue_style( 'wph-graphs');
    2525                   
    26                     wp_register_style('wph-security-scan', WPH_URL . '/assets/css/security-scan.css');
     26                    wp_register_style('wph-security-scan', WPH_URL . '/assets/css/security-scan.css', array(), WPH_CORE_VERSION );
    2727                    wp_enqueue_style( 'wph-security-scan');
    2828                   
    29                     wp_register_style('wph-dashboard-widget', WPH_URL . '/assets/css/dashboard-widget.css');
     29                    wp_register_style('wph-dashboard-widget', WPH_URL . '/assets/css/dashboard-widget.css', array(), WPH_CORE_VERSION );
    3030                    wp_enqueue_style( 'wph-dashboard-widget');
    3131                }
  • wp-hide-security-enhancer/trunk/include/wph.class.php

    r3139737 r3183924  
    350350            function admin_print_styles()
    351351                {
    352                     wp_enqueue_style( 'tipsy.css', WPH_URL . '/assets/css/tipsy.css');
    353                    
    354                     wp_register_style('WPHStyle', WPH_URL . '/assets/css/wph.css');
     352                    wp_enqueue_style( 'tipsy.css', WPH_URL . '/assets/css/tipsy.css', array(), WPH_CORE_VERSION );
     353                   
     354                    wp_register_style('WPHStyle', WPH_URL . '/assets/css/wph.css', array(), WPH_CORE_VERSION );
    355355                    wp_enqueue_style( 'WPHStyle');
    356356               
     
    360360            function admin_print_styles_general()
    361361                {
    362                     wp_register_style('WPH-Styles-general', WPH_URL . '/assets/css/wph-general.css');
     362                    wp_register_style('WPH-Styles-general', WPH_URL . '/assets/css/wph-general.css', array(), WPH_CORE_VERSION );
    363363                    wp_enqueue_style( 'WPH-Styles-general');
    364364                }
     
    368368                {
    369369                    wp_enqueue_script( 'jquery');
    370                     wp_register_script('wph', WPH_URL . '/assets/js/wph.js');
    371                    
    372                     wp_enqueue_script('jquery.tipsy.js', WPH_URL . '/assets/js/jquery.tipsy.js' );
     370                    wp_register_script('wph', WPH_URL . '/assets/js/wph.js', array(), WPH_CORE_VERSION );
     371                   
     372                    wp_enqueue_script('jquery.tipsy.js', WPH_URL . '/assets/js/jquery.tipsy.js', array(), WPH_CORE_VERSION );
    373373                   
    374374                    // Localize the script with new data
     
    422422                    add_action('admin_print_scripts-' . $hookID ,   array( $this->security_scan, 'admin_print_scripts'));
    423423         
     424                    $current_page       =   isset ( $_GET['page'] ) ?       preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['page'] ) :        '';
     425                    $current_component  =   isset ( $_GET['component'] ) ?  preg_replace( '/[^a-zA-Z0-9\-\_$]/m' , "", $_GET['component'] ) :   '';
     426         
     427                    $main_menu_slug     =   'wp-hide';
     428         
    424429                    foreach($this->modules   as  $module)
    425430                        {
    426431                            $interface_menu_data    =   $module->get_interface_menu_data();
    427432                                                   
    428                             $hookID   =             add_submenu_page( 'wp-hide', 'WP Hide', $interface_menu_data['menu_title'], 'manage_options', $interface_menu_data['menu_slug'], array($this->admin_interface,'_render'));
     433                            $hookID   =             add_submenu_page( $main_menu_slug, 'WP Hide', $interface_menu_data['menu_title'], 'manage_options', $interface_menu_data['menu_slug'], array($this->admin_interface,'_render'));
    429434                           
    430435                            add_action('admin_print_styles-' . $hookID ,    array($this, 'admin_print_styles'));
    431436                            add_action('admin_print_scripts-' . $hookID ,   array($this, 'admin_print_scripts'));
     437                           
     438                            if ( $module->get_module_slug() ==  $current_page )
     439                                {
     440                                    foreach( $module->components   as  $module_component )
     441                                        {
     442                                            if( ! $module_component->title)
     443                                                continue;
     444                                               
     445                                            if ( in_array ( $module->get_module_slug() , array ( 'wp-hide-security-headers', 'wp-hide-login', 'wp-hide-cdn' ) ) )
     446                                                continue;
     447                                               
     448                                            $class  =   'wph-info submenu';
     449                                            if ( $current_component ==  $module_component->id )
     450                                                $class  .=   ' wph-highlight';
     451                                               
     452                                            add_submenu_page( $main_menu_slug, 'WP Hide PRO ' . $interface_menu_data['menu_title'], '<span class="' . $class .'">→</span> ' . $module_component->title, 'manage_options', $interface_menu_data['menu_slug'] . '&component=' . $module_component->id, array($this->admin_interface,'_render'));
     453                                                                                                                               
     454                                        }
     455
     456                                }
     457                           
    432458                        }   
    433459
  • wp-hide-security-enhancer/trunk/modules/components/general-user-interactions.php

    r2984937 r3183924  
    253253                {
    254254                    add_action( 'wp_enqueue_scripts',   array ( $this,  'wp_enqueue_scripts' ) );   
    255                     add_filter( 'wp_footer',            array ( $this,  'output_footer_js' ) ); 
     255                    add_filter( 'wp_footer',            array ( $this,  'output_footer_js' ) );
     256                    add_filter( 'login_footer' ,        array ( $this,  'output_footer_js' ) );   
    256257                }
    257258               
     
    265266                        return;
    266267                       
    267                     wp_register_script('devtools-detect', WPH_URL . '/assets/js/devtools-detect.js');
     268                    wp_register_script('devtools-detect', WPH_URL . '/assets/js/devtools-detect.js', array(), WPH_CORE_VERSION );
    268269                    wp_enqueue_script ( 'devtools-detect' );
    269270                   
  • wp-hide-security-enhancer/trunk/readme.txt

    r3169300 r3183924  
    55Requires at least: 2.8
    66Tested up to: 6.7
    7 Stable tag: 2.4.7
     7Stable tag: 2.5
    88License: GPLv2 or later
    99
     
    418418== Changelog ==
    419419
     420= 2.5 =
     421* Include a version number for all script and style assets to ensure the correct data loads when cached.
     422* Load the user interaction JavaScript on the login page as well, to ensure functionality on that page.
     423* Add submenu items to the main menu for improved accessibility.
     424* Check if LSWCP_TAG_PREFIX is defined when using LiteSpeed Cache before clearing the caches.
     425* Clear the Elementor caches, if active, when options change.
     426* Fix: Use rtrim instead of trim to strip the trailing \/ in the URL.
     427* Update and check compatibility with WordPress 6.7.
     428
    420429= 2.4.7 =
    421430* Fix: Check if data block is serialized, before applying the revert replacements.
     
    681690* Fix undefined get_metadata_raw
    682691
    683 = 1.6.3.2 =
    684 * Confirmation page for Recovery link
    685 * Use home_url() instead site_url() for recovery links to ensure the format is correct for WordPress instances using own directory
    686 * Trigger the login URL change e-mail at shutdown instead init
    687 * Compatibility with TranslatePress - Multilingual
    688 * Fix undefined notice
    689 * Fix meta Uncaught TypeError: count(): Argument
    690 * Slight code improvements
    691 
    692 = 1.6.3.1 =
    693 * Improved description for Test Rewrite procedure, when the server fails to provide a valid response,  rewrite engine is not active or the custom urls are not allowd.
    694 * Fixed Undefined Property Notice
    695 
    696 = 1.6.3 =
    697 * Server Environment Check to ensure there are no rewrite issues and the plugin can be safely deployed.
    698 * Interactive feedback with hints and explanations for environment issues.
    699 * Improved UI
    700 * Clear fusion cache when plugin options changed if avada active
    701 * Fix New Search Path replacement to include an end slash, to avoid catch wrong urls
    702 * Check and tag for WordPress 5.7
    703 
    704 = 1.6.2.5 =
    705 * Fix: Add slash for "New Search Path" to avoid wrong replacements with urls containing the new search slug.
    706 
    707 = 1.6.2.4 =
    708 * Reverse URLs when saving a options, to avoid custom urls to be writted within the database.
    709 * Check if string before making a replacement on metadata
    710 * Compatibility file for Oxigen editor, when using Signatures
    711 * Simple Firewall compatibility file update - check if FernleafSystems\Wordpress\Plugin\Shield\Controller\Controller class exists before apply
    712                                                          
    713 = 1.6.2.0.4 =
    714 * Update Compatibility file with Oxygen editor, for image with link wrapper
    715 * WordPress 5.6 compatibility tag update
    716 
    717 = 1.6.2.0.3 =
    718 * Compatibility file with Oxygen editor
    719 
    720 = 1.6.2.0.2 =
    721 * Fix: Check the replacements for update_post_metadata method on text and array types.
    722 
    723 = 1.6.2 =
    724 * Reverse URLs when saving a meta data field, to avoid custom urls to be writted within the database.
    725 * Trigger a system notice when deployed on MultiSite, as not being compatible.
    726 * Don't run _init_remove_html_new_lines when AJAX call to avoid front side processing errors.
    727 * WP Rocket compatibility file updates, to works with combined CSS assets
    728 * Shield Security compatibility update, to works with version 10 and up.
    729 * Prevent nottices and errors when attempt to rite on .htaccess file.
    730 * New filter wph/components/wp_oembed_add_discovery_links to allow disabling the Remove Oembed - wp_oembed_add_discovery_links
    731 * New filter wph/components/wp_oembed_add_host_js to allow disabling the Remove Oembed - wp_oembed_add_host_js
    732 * New compatibility file for wePOS plugin
    733 * New compatibility file for Asset CleanUp Pro Page Speed Booster plugin
    734 
    735 
    736 = 1.6.1.3 =
    737 * Compatibility with Hyper Cache
    738 * Update JSON REST service disable, remove the json_enabled as being deprecated, rely on rest_authentication_errors filter
    739 * Fix WooCommerce Update Database link when changing the default /wp-admin/ slug
    740 * Fix password forget return URL
    741 * Remove callback for Compatibility file for Shield Security within new-admin module
    742 
    743 = 1.6.1.1 =
    744 * Fix: Remove callback for Compatibility file for Shield Security within custom login module
    745 
    746 = 1.6.1 =
    747 * Compatibility file fix for Shield Security
    748 * WordPress 5.5.1 compatibility tag
    749 
    750 = 1.6.0.9.1 =
    751 * Ignore CDN value check for domain name similitude
    752 
    753 = 1.6.0.9 =
    754 * LiteSpeed guide on Setup interface
    755 * New functionality - Disable mouse right click
    756 * Compatibility file - JobBoardWP
    757 * Compatibility WP-Optimize - Clean, Compress, Cache
    758 * WordPress 505 compatibility tag
    759 
    760 = 1.6.0.8 =
    761 * Avoid using domain name as replacement for any option, or might conclude to wrong replacements within the outputted HTML or wrong reversed urls.
    762 * Add system reserved words as 'wp', 'admin', 'admin-ajax.php'
    763 * Slight General code improvements
    764 * Clean cookie for the new custom slug, if set.
    765 * Integration with WP-Optimize - Clean, Compress, Cache
    766 
    767 = 1.6.0.6 =
    768 * WP Job Manager - compatibility update
    769 
    770 = 1.6.0.5 =
    771 * New Setup interface with helps and hints on how to use the plugin.
    772 * New Sample Setup, which deploy a basic set-up of plugin options
    773 * Remove internal wp_mail and rely on WordPress core
    774 * Improved FAQ area
    775 * Updated base language file
    776 
    777 = 1.6.0.4 =
    778 * Purge cache for Fast Velocity Minify plugin, when clearing internal cache
    779 * Return new admin slug when calling admin_url() and if default admin is customized
    780 * Use no-protocol when loading the files, to ensure they are being loaded over current domain protocol
    781 * BuddyPress compatibility file update
    782 * Elementor compatibility file update
    783 * ShortPixel Adaptive Images compatibility file update
    784 * WooCommerce compatibility file update
    785 * WP Rocket compatibility file update
    786 * New compatibility file for Fast Velocity Minify
    787 * New compatibility file for LiteSpeed Cache
    788 * New compatibility file for Swift Performance
    789 * New compatibility file for WP Speed of Light
    790 
    791 = 1.6 =
    792 * New filter wp-hide/content_urls_replacement
    793 * Compatibility with Ultimate Member, user picture upload fix
    794 * Updated compatibility with W3 Cache, using postprocessorRequire option
    795 * Fluentform compatibility updates
    796 * Outputs the whole stack of errors for $wp_filesystem if exists
    797 * Typo fix in Uploads module
    798 
    799 
    800 = 1.5.9.9 =
    801 * Updated procedure for server type identification
    802 * Add new type text/plain for filterable content
    803 * Add server_nginx_config to main class, to be used within other modules
    804 * Updated rewrite quantifier for IIS from .+ to .*
    805 * Ignore wp-content block if agent is LiteSpeed-Image
    806 
    807 = 1.5.9.5 =
    808 * Updated is_filterable_content_type method, return TRUE if no Content-Type header found
    809 
    810 = 1.5.9.4 =
    811 * Fix readme demo site protocol
    812 
    813 = 1.5.9.4 =
    814 * Fix "undefined method WPH_functions::get_site_module_saved_value()" when content type is text/xml
    815 
    816 = 1.5.9.3 =
    817 * Check for filterable buffer content type, before doing replacements, to prevent erroneously changes
    818 * Update only URLs on XML content type
    819 * Updated plugin demo site URL on readme file
    820 * Compatibility update for ShortPixel Image Optimizer plugin
    821 * Notice possible issue for Cron block on certain servers
    822 
    823 = 1.5.9 =
    824 * New admin interfaces skin.
    825 * Relocated plugin assets within a different folder for better organisator.
    826 * Updated mu-loader module
    827 * Add help and hints for each options for easier understanding.
    828 * Allow same base slug to be used for individual plugins
    829 * Updated language file
    830 * Check if environment file is not available and outputs admin messages
    831 * Environment class with relocated environment json, to avoid security scanners false reports.
    832 * Cache Enabler plugin compatibility module
    833 * WoodMart theme compatibility
    834 * Compatibility module for WP Smush  and WP Smush PRO plugins
    835 * Add the new filter available for WP Rocket to change css content
    836 * WebARX compatibility module update
    837 * W3 Cache module update
    838 
    839 = 1.5.8.2 =
    840 * Ensure base slug (e.g. base_slug/slug ) is not being used for another option to prevent rewrite conflicts
    841 * Return correct home path when using own directory for WordPress and hosting account use the same slug in the path.
    842 * Relocated get_default_variables() function on a higher priority execution level, to get default system details.
    843 * Switched Yes / No options selection, to outputs first No then Yes ( more logical )
    844 
    845 = 1.5.8 =
    846 * Add reserved option names to avoid conflicts e.g. wp
    847 * Always clear any code plugin cache when plugin update
    848 * Easy Digital Downloads compatibility
    849 * Elementor plugin compatibility
    850 * Fusion Builder plugin compatibility
    851 * Divi theme compatibility updates
    852 * WP Fastest Cache plugin compatibility updates
    853 * Check if ob_gzhandler and zlib.output_compression before using 'ob_gzhandler' output buffering handler
    854 
    855 
    856 = 1.5.7 =
    857 * Autoptimize css/js cache and minify compatibility
    858 * Wp Hummingbird and WP Hummingbird PRO assets cache compatibility
    859 
    860 = 1.5.6.9 =
    861 * New functionality: Remove Link Header
    862 
    863 = 1.5.6.8 =
    864 * Fix: Call for invalid method WP_Error::has_errors()
    865 * Fix: Attempt to clear Opcache if API not being restricted
    866 
    867 = 1.5.6.7 =
    868 * Allow internal cron jobs to run even if wp-cron.php is blocked.
    869 * Check with wp_filesystem for any errors and output the messages, before attempt to write any content
    870 * Trigger site cache clear on settings changed or code update
    871 * Slight css updates
    872 * Mark block option in red text for better visibility and user awareness
    873 
    874 = 1.5.6.4 =
    875 * Fix: Keep double quote at the start of the replacements when doing JSON matches to avoid replacing strings for other domains
    876 * Fix: Run compatibility pachage for "ShortPixel Adaptive Images" only when plugin is active
    877 
    878 = 1.5.6.3 =
    879 * Fix: remove javascript comments produce worng replacements on specific format.
    880 
    881 = 1.5.6.2 =
    882 * Use current site prefix when retreiving 'user_roles'
    883 
    884 = 1.5.6 =
    885 * Fix BBPress menus by calling directly the wp_user_roles option ratter get_roles()
    886 * Replace comments within inline JavaScript code when Remove Comments active
    887 * Possible login conflict notices when using WebArx, WPS Hide Login
    888 * New action wp-hide/admin_notices when plugin admin notices
    889 * Return updated url when calling admin_url instead replaced when buffer outputs to ensure compatibility with specific plugins
    890 
    891 = 1.5.5.9 =
    892 * Compatibility module for ShortPixel Adaptive Image plugin
    893 * Add support for texarea fields within plugin options interface
    894 * Fixed urls for minified files when using WP Rocket cache plugin
    895 
    896 = 1.5.5.7 =
    897 * Filter remove fix
    898 
    899 = 1.5.5.6 =
    900 * Fix log-in page when using Wp Rocket cache
    901 
    902 = 1.5.5.5 =
    903 * Fix admin dashboard replacements when using Wp Rocket cache
    904692 
    905693
  • wp-hide-security-enhancer/trunk/wp-hide.php

    r3169300 r3183924  
    66* Author: Nsp Code
    77* Author URI: http://www.nsp-code.com
    8 * Version: 2.4.7
     8* Version: 2.5
    99* Text Domain: wp-hide-security-enhancer
    1010* Domain Path: /languages/
Note: See TracChangeset for help on using the changeset viewer.