Properties

$listingDirectories

$listingDirectories : mixed

Private static variable to hold the directory listing information.

Type

mixed — Default null

Methods

get_class_name()

get_class_name() : string

Method get_class_name()

Get class name.

Returns

string —

CLASS Class name.

prevent_listing()

prevent_listing() 

Method prevent_listing()

Prevent directory listing by creating the index.php file.

remove_wp_version()

remove_wp_version(boolean  $force = false) 

Method remove_wp_version()

Remove the WordPress version (WordPress Generator).

Parameters

boolean $force

Force action if true, don't force if false.

remove_rsd()

remove_rsd(boolean  $force = false) 

Method remove_rsd()

Remove the Really Simple Discovery meta tag.

Parameters

boolean $force

Force action if true, don't force if false.

remove_wlw()

remove_wlw(boolean  $force = false) 

Method remove_wlw()

Remove the Windows Live Writer meta tag.

Parameters

boolean $force

Force action if true, don't force if false.

remove_php_reporting()

remove_php_reporting(boolean  $force = false) 

Method remove_php_reporting()

Disable the PHP error reporting.

Parameters

boolean $force

Force action if true, don't force if false.

remove_database_reporting()

remove_database_reporting() 

Method remove_database_reporting()

Disable the database error reporting.

remove_registered_versions()

remove_registered_versions() 

Method remove_registered_versions()

Remove the scripts and stylesheets registered versions.

remove_script_versions()

remove_script_versions(string  $src) : string

Method remove_script_versions()

Remove scripts versions.

Parameters

string $src

Script or stylesheet location path.

Returns

string —

$src Script or stylesheet striped location path.

remove_generator_version()

remove_generator_version(boolean  $force = false) 

Method remove_generator_version()

Remove the WordPress Generator version.

Parameters

boolean $force

Force action if true, don't force if false.

custom_the_generator()

custom_the_generator() : string

Method custom_the_generator()

Set custom generator.

Returns

string —

Return empty string.

remove_theme_versions()

remove_theme_versions(string  $src) : string

Method remove_theme_versions()

Remove themes versions.

Parameters

string $src

Theme stylesheet location path.

Returns

string —

$src Theme stylesheet striped location path.

remove_readme()

remove_readme(boolean  $force = false) : boolean

Method remove_readme()

Remove the readme.html file.

Parameters

boolean $force

Force action if true, don't force if false.

Returns

boolean —

true Return true to skip the process if child site is on WP Engine host.

prevent_listing_ok()

prevent_listing_ok() : boolean

Method prevent_listing_ok()

Check if the directory listing is prevented.

Returns

boolean —

true|false If directory listing prevented, return true, if not, return false.

remove_wp_version_ok()

remove_wp_version_ok() : boolean

Method remove_wp_version_ok()

Check if the WordPress version has been removed.

Returns

boolean —

true|false If WordPress version removed, return true, if not return false.

remove_rsd_ok()

remove_rsd_ok() : boolean

Method remove_rsd_ok()

Check if the Really Simple Discovery meta tag has been removed.

Returns

boolean —

true|false If the Really Simple Discovery meta tag has been removed, return true, if not return false.

remove_wlw_ok()

remove_wlw_ok() : boolean

Method remove_wlw_ok()

Check if the Windows Live Writer meta tag has been removed.

Returns

boolean —

true|false If the Windows Live Writer meta tag has been removed, return true, if not return false.

remove_database_reporting_ok()

remove_database_reporting_ok() : boolean

Method remove_database_reporting_ok()

Check if the database error reporting has been disabled.

Returns

boolean —

true|false If the database error reporting has been disabled, return true, if not, return false.

remove_php_reporting_ok()

remove_php_reporting_ok() : boolean

Method remove_php_reporting_ok()

Check if the PHP error reporting has been disabled.

Returns

boolean —

true|false If the PHP error reporting has been disabled, return true, if not, return false.

remove_scripts_version_ok()

remove_scripts_version_ok() : boolean

Method remove_scripts_version_ok()

Check if scripts versions are removed.

Returns

boolean —

true|false Return true if versions have been removed, false if not.

remove_styles_version_ok()

remove_styles_version_ok() : boolean

Method remove_styles_version_ok()

Check if stylesheets versions are removed.

Returns

boolean —

true|false Return true if versions have been removed, false if not.

remove_generator_version_ok()

remove_generator_version_ok() : boolean

Method remove_generator_version_ok()

Check if the WordPress Generator version has been removed.

Returns

boolean —

true|false Return true if registered versions have been removed, false if not.

remove_registered_versions_ok()

remove_registered_versions_ok() : boolean

Method remove_registered_versions_ok()

Check if the scripts and stylesheets registered versions are removed.

Returns

boolean —

true|false Return true if registered versions have been removed, false if not.

admin_user_ok()

admin_user_ok() : boolean

Method admin_user_ok()

Check if any of administrator accounts has 'admin' as username.

Returns

boolean —

true Return true no 'admin' username detected, fale if not.

remove_readme_ok()

remove_readme_ok() : boolean

Method remove_readme_ok()

Check if the readme.html file has been removed.

Returns

boolean —

true|false Return true if the readme.html file has been removed, false if not.

get_security_option()

get_security_option(string  $option) : boolean

Method get_security_option()

Get security check settings.

Parameters

string $option

Security check option.

Returns

boolean —

Security settings.

update_security_option()

update_security_option(string  $key, string  $value) 

Method update_security_option()

Update the security issues feature settings.

Parameters

string $key

Security option key.

string $value

Security option value.

wpcore_updated_ok()

wpcore_updated_ok() 

Method wpcore_updated_ok()

Check WP core updated.

phpversion_ok()

phpversion_ok() 

Method phpversion_ok()

Check PHP version matches the WP requirement.

sslprotocol_ok()

sslprotocol_ok() 

Method sslprotocol_ok()

Check SSL protocol is in place.

debug_disabled_ok()

debug_disabled_ok() 

Method debug_disabled_ok()

Check WP Config and check if debugging is disabled.

init_listing_directories()

init_listing_directories() 

Method init_listing_directories()

Get directories array to prevent listing.