Edit File by line
/home/barbar84/www/wp-conte.../plugins/protect-...
File: protect-uploads.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Plugin Name: Protect Uploads
[2] Fix | Delete
* Plugin URI: https://wordpress.org/support/plugin/protect-uploads/
[3] Fix | Delete
* Description: Protect your uploads directory. Avoid browsing of your uploads directory by adding a htaccess file or an index.php file.
[4] Fix | Delete
* Version: 0.4
[5] Fix | Delete
* Author: alticreation
[6] Fix | Delete
* License: GPL-2.0+
[7] Fix | Delete
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
[8] Fix | Delete
* Text Domain: protect-uploads
[9] Fix | Delete
* Domain Path: /languages
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
// If this file is called directly, abort.
[13] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[14] Fix | Delete
die;
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
function activate_alti_protect_uploads() {
[18] Fix | Delete
[19] Fix | Delete
require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php';
[20] Fix | Delete
require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-activator.php';
[21] Fix | Delete
$activation = new Alti_ProtectUploads_Activator();
[22] Fix | Delete
$activation->run();
[23] Fix | Delete
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
function deactivate_alti_protect_uploads() {
[27] Fix | Delete
[28] Fix | Delete
require_once plugin_dir_path( __FILE__ ) . 'admin/class-protect-uploads-admin.php';
[29] Fix | Delete
require_once plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads-deactivator.php';
[30] Fix | Delete
$deactivation = new Alti_ProtectUploads_Deactivator();
[31] Fix | Delete
$deactivation->run();
[32] Fix | Delete
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
register_activation_hook( __FILE__, 'activate_alti_protect_uploads' );
[36] Fix | Delete
register_deactivation_hook( __FILE__, 'deactivate_alti_protect_uploads' );
[37] Fix | Delete
[38] Fix | Delete
require plugin_dir_path( __FILE__ ) . 'includes/class-protect-uploads.php';
[39] Fix | Delete
[40] Fix | Delete
$plugin = new Alti_ProtectUploads();
[41] Fix | Delete
$plugin->run();
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function