📁 WP File Manager
M.A BIKASH
⚠️ WP Inactive
🏠 Root
/
home
/
markiiplrv
/
public_html
/
wp-content
/
plugins
/
updraftplus
/
central
/
classes
✓ Writable
✏️
Editing: class-updraftcentral-wp-upgrader.php
(Writable)
✕ Close
📄 File:
class-updraftcentral-wp-upgrader.php
📂 Path:
/home/markiiplrv/public_html/wp-content/plugins/updraftplus/central/classes
📊 Size:
1.97 KB
🔐 Permissions:
0644
<?php if (!defined('ABSPATH')) die('No access.'); /** * The extended class of Plugin_Upgrader that is mostly used for overriding some of the parent methods to short-circuit their native behaviour or to manipulate some data, parameters and/or method arguments */ class UpdraftCentral_Plugin_Upgrader extends Plugin_Upgrader { /** * Run an upgrade/installation * * @param Array $options { * Array or string of arguments for upgrading/installing a package. * * @type bool $clear_destination Whether to delete any files already in the destination folder. Default false. (since 2.8.0) * } * * @return Array|False|WP_Error The result from self::install_package() on success, otherwise a WP_Error, * or false if unable to connect to the filesystem. */ public function run($options) { $options['clear_destination'] = true; // force overwritting the existing one, in case WP < 5.5.0 is in use where "overwrite_package" parameter doesn't exist return parent::run($options); } } /** * The extended class of Plugin_Upgrader that is mostly used for overriding some of the parent methods to short-circuit their native behaviour or to manipulate some data, parameters and/or method arguments */ class UpdraftCentral_Theme_Upgrader extends Theme_Upgrader { /** * Run an upgrade/installation * * @param Array $options { * Array or string of arguments for upgrading/installing a package. * * @type bool $clear_destination Whether to delete any files already in the destination folder. Default false. (since 2.8.0) * } * * @return Array|False|WP_Error The result from self::install_package() on success, otherwise a WP_Error, * or false if unable to connect to the filesystem. */ public function run($options) { $options['clear_destination'] = true; // force overwritting the existing one, in case WP < 5.5.0 is in use where "overwrite_package" parameter doesn't exist return parent::run($options); } }
💾 Save Changes
❌ Cancel
💡
Tips:
Editing does NOT change file permissions. Use the "Ch" button in the file list to change permissions.
Press
Ctrl+S
to save (if writable).
Make sure you have write permissions on the file and directory.