/home/desid573/public_html/magicride.ng/wp-admin/includes
NameSizeModeActions
admin-filters.php68040644editdlrm
admin.php30020644editdlrm
ajax-actions.php1380570644editdlrm
bookmark.php92470644editdlrm
class-automatic-upgrader-skin.php31460644editdlrm
class-bulk-plugin-upgrader-skin.php20560644editdlrm
class-bulk-theme-upgrader-skin.php20910644editdlrm
class-bulk-upgrader-skin.php53060644editdlrm
class-core-upgrader.php144000644editdlrm
class-file-upload-upgrader.php41670644editdlrm
class-ftp-pure.php54000644editdlrm
class-ftp-sockets.php84490644editdlrm
class-ftp.php271250644editdlrm
class-language-pack-upgrader-skin.php23650644editdlrm
class-language-pack-upgrader.php147240644editdlrm
class-pclzip.php1957950644editdlrm
class-plugin-installer-skin.php44590644editdlrm
class-plugin-upgrader-skin.php26810644editdlrm
class-plugin-upgrader.php151830644editdlrm
class-theme-installer-skin.php44300644editdlrm
class-theme-upgrader-skin.php38450644editdlrm
class-theme-upgrader.php202860644editdlrm
class-walker-category-checklist.php42550644editdlrm
class-walker-nav-menu-checklist.php50150644editdlrm
class-walker-nav-menu-edit.php116850644editdlrm
class-wp-ajax-upgrader-skin.php30380644editdlrm
class-wp-automatic-updater.php360270644editdlrm
class-wp-comments-list-table.php277100644editdlrm
class-wp-community-events.php159520644editdlrm
class-wp-debug-data.php442050644editdlrm
class-wp-filesystem-base.php230650644editdlrm
class-wp-filesystem-direct.php164090644editdlrm
class-wp-filesystem-ftpext.php199060644editdlrm
class-wp-filesystem-ftpsockets.php167140644editdlrm
class-wp-filesystem-ssh2.php217220644editdlrm
class-wp-importer.php75220644editdlrm
class-wp-internal-pointers.php43500644editdlrm
class-wp-links-list-table.php77520644editdlrm
class-wp-list-table-compat.php10710644editdlrm
class-wp-list-table.php383700644editdlrm
class-wp-media-list-table.php229110644editdlrm
class-wp-ms-sites-list-table.php158480644editdlrm
class-wp-ms-themes-list-table.php205380644editdlrm
class-wp-ms-users-list-table.php137090644editdlrm
class-wp-plugin-install-list-table.php228650644editdlrm
class-wp-plugins-list-table.php354360644editdlrm
class-wp-post-comments-list-table.php14720644editdlrm
class-wp-posts-list-table.php566250644editdlrm
class-wp-screen.php357010644editdlrm
class-wp-site-health-auto-updates.php125120644editdlrm
class-wp-site-health.php610190644editdlrm
class-wp-site-icon.php61320644editdlrm
class-wp-terms-list-table.php185660644editdlrm
class-wp-theme-install-list-table.php152370644editdlrm
class-wp-themes-list-table.php95330644editdlrm
class-wp-upgrader-skin.php51640644editdlrm
class-wp-upgrader-skins.php14560644editdlrm
class-wp-upgrader.php356580644editdlrm
class-wp-users-list-table.php175410644editdlrm
comment.php60600644editdlrm
continents-cities.php207500644editdlrm
credits.php22080644editdlrm
dashboard.php603480644editdlrm
deprecated.php391730644editdlrm
edit-tag-messages.php14120644editdlrm
export.php234370644editdlrm
file.php946230644editdlrm
image-edit.php347110644editdlrm
image.php229310644editdlrm
import.php66970644editdlrm
list-table.php27790644editdlrm
media.php1102410644editdlrm
menu.php91140644editdlrm
meta-boxes.php611430644editdlrm
misc.php742390644editdlrm
ms-admin-filters.php13700644editdlrm
ms-deprecated.php30300644editdlrm
ms.php347830644editdlrm
nav-menu.php443140644editdlrm
network.php242920644editdlrm
noop.php12310644editdlrm
options.php40970644editdlrm
plugin-install.php338310644editdlrm
plugin.php791270644editdlrm
post.php745120644editdlrm
revision.php156690644editdlrm
schema.php415340644editdlrm
screen.php62140644editdlrm
taxonomy.php79140644editdlrm
template.php879370644editdlrm
theme-install.php65590644editdlrm
theme.php338900644editdlrm
translation-install.php86130644editdlrm
update-core.php577360644editdlrm
update.php279460644editdlrm
upgrade.php1017130644editdlrm
user.php528200644editdlrm
widgets.php106280644editdlrm
Edit: /home/desid573/public_html/magicride.ng/wp-admin/includes/class-file-upload-upgrader.php (4167B)
false, 'test_type' => false, ); $file = wp_handle_upload( $_FILES[ $form ], $overrides ); if ( isset( $file['error'] ) ) { wp_die( $file['error'] ); } if ( 'pluginzip' === $form || 'themezip' === $form ) { $archive_is_valid = false; /** This filter is documented in wp-admin/includes/file.php */ if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) { $archive = new ZipArchive(); $archive_is_valid = $archive->open( $file['file'], ZIPARCHIVE::CHECKCONS ); if ( true === $archive_is_valid ) { $archive->close(); } } else { require_once ABSPATH . 'wp-admin/includes/class-pclzip.php'; $archive = new PclZip( $file['file'] ); $archive_is_valid = is_array( $archive->properties() ); } if ( true !== $archive_is_valid ) { wp_delete_file( $file['file'] ); wp_die( __( 'Incompatible Archive.' ) ); } } $this->filename = $_FILES[ $form ]['name']; $this->package = $file['file']; // Construct the object array $object = array( 'post_title' => $this->filename, 'post_content' => $file['url'], 'post_mime_type' => $file['type'], 'guid' => $file['url'], 'context' => 'upgrader', 'post_status' => 'private', ); // Save the data. $this->id = wp_insert_attachment( $object, $file['file'] ); // Schedule a cleanup for 2 hours from now in case of failed installation. wp_schedule_single_event( time() + 2 * HOUR_IN_SECONDS, 'upgrader_scheduled_cleanup', array( $this->id ) ); } elseif ( is_numeric( $_GET[ $urlholder ] ) ) { // Numeric Package = previously uploaded file, see above. $this->id = (int) $_GET[ $urlholder ]; $attachment = get_post( $this->id ); if ( empty( $attachment ) ) { wp_die( __( 'Please select a file' ) ); } $this->filename = $attachment->post_title; $this->package = get_attached_file( $attachment->ID ); } else { // Else, It's set to something, Back compat for plugins using the old (pre-3.3) File_Uploader handler. if ( ! ( ( $uploads = wp_upload_dir() ) && false === $uploads['error'] ) ) { wp_die( $uploads['error'] ); } $this->filename = sanitize_file_name( $_GET[ $urlholder ] ); $this->package = $uploads['basedir'] . '/' . $this->filename; if ( 0 !== strpos( realpath( $this->package ), realpath( $uploads['basedir'] ) ) ) { wp_die( __( 'Please select a file' ) ); } } } /** * Delete the attachment/uploaded file. * * @since 3.2.2 * * @return bool Whether the cleanup was successful. */ public function cleanup() { if ( $this->id ) { wp_delete_attachment( $this->id ); } elseif ( file_exists( $this->package ) ) { return @unlink( $this->package ); } return true; } }