Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-admin/includes
NameTypeSizeActions
📁 .. Folder -
📄 admin-filters.php File 8034
Edit Download
📄 admin.php File 3628
Edit Download
📄 ajax-actions.php File 151629
Edit Download
📄 bookmark.php File 11725
Edit Download
📄 class-automatic-upgrader-skin.php File 3663
Edit Download
📄 class-bulk-plugin-upgrader-skin.php File 2590
Edit Download
📄 class-bulk-theme-upgrader-skin.php File 2660
Edit Download
📄 class-bulk-upgrader-skin.php File 6753
Edit Download
📄 class-core-upgrader.php File 15191
Edit Download
📄 class-custom-background.php File 21650
Edit Download
📄 class-custom-image-header.php File 49296
Edit Download
📄 class-file-upload-upgrader.php File 4163
Edit Download
📄 class-ftp-pure.php File 5426
Edit Download
📄 class-ftp-sockets.php File 8479
Edit Download
📄 class-ftp.php File 27370
Edit Download
📄 class-language-pack-upgrader-skin.php File 2870
Edit Download
📄 class-language-pack-upgrader.php File 15561
Edit Download
📄 class-pclzip.php File 196695
Edit Download
📄 class-plugin-installer-skin.php File 12053
Edit Download
📄 class-plugin-upgrader-skin.php File 3278
Edit Download
📄 class-plugin-upgrader.php File 23243
Edit Download
📄 class-theme-installer-skin.php File 12743
Edit Download
📄 class-theme-upgrader-skin.php File 4176
Edit Download
📄 class-theme-upgrader.php File 26702
Edit Download
📄 class-walker-category-checklist.php File 5091
Edit Download
📄 class-walker-nav-menu-checklist.php File 5628
Edit Download
📄 class-walker-nav-menu-edit.php File 14180
Edit Download
📄 class-wp-ajax-upgrader-skin.php File 4193
Edit Download
📄 class-wp-application-passwords-list-table.php File 6949
Edit Download
📄 class-wp-automatic-updater.php File 61902
Edit Download
📄 class-wp-comments-list-table.php File 33056
Edit Download
📄 class-wp-community-events.php File 18769
Edit Download
📄 class-wp-debug-data.php File 66619
Edit Download
📄 class-wp-filesystem-base.php File 24410
Edit Download
📄 class-wp-filesystem-direct.php File 18143
Edit Download
📄 class-wp-filesystem-ftpext.php File 23101
Edit Download
📄 class-wp-filesystem-ftpsockets.php File 18479
Edit Download
📄 class-wp-filesystem-ssh2.php File 23310
Edit Download
📄 class-wp-importer.php File 7499
Edit Download
📄 class-wp-internal-pointers.php File 4577
Edit Download
📄 class-wp-links-list-table.php File 9241
Edit Download
📄 class-wp-list-table-compat.php File 1497
Edit Download
📄 class-wp-list-table.php File 52906
Edit Download
📄 class-wp-media-list-table.php File 25899
Edit Download
📄 class-wp-ms-sites-list-table.php File 22019
Edit Download
📄 class-wp-ms-themes-list-table.php File 28438
Edit Download
📄 class-wp-ms-users-list-table.php File 15719
Edit Download
📄 class-wp-plugin-install-list-table.php File 24786
Edit Download
📄 class-wp-plugins-list-table.php File 57786
Edit Download
📄 class-wp-post-comments-list-table.php File 1453
Edit Download
📄 class-wp-posts-list-table.php File 64216
Edit Download
📄 class-wp-privacy-data-export-requests-list-table.php File 5563
Edit Download
📄 class-wp-privacy-data-removal-requests-list-table.php File 5715
Edit Download
📄 class-wp-privacy-policy-content.php File 32626
Edit Download
📄 class-wp-privacy-requests-table.php File 14395
Edit Download
📄 class-wp-screen.php File 37327
Edit Download
📄 class-wp-site-health-auto-updates.php File 14337
Edit Download
📄 class-wp-site-health.php File 122362
Edit Download
📄 class-wp-site-icon.php File 6414
Edit Download
📄 class-wp-terms-list-table.php File 21182
Edit Download
📄 class-wp-theme-install-list-table.php File 15599
Edit Download
📄 class-wp-themes-list-table.php File 10349
Edit Download
📄 class-wp-upgrader-skin.php File 7110
Edit Download
📄 class-wp-upgrader-skins.php File 1477
Edit Download
📄 class-wp-upgrader.php File 48009
Edit Download
📄 class-wp-users-list-table.php File 19058
Edit Download
📄 comment.php File 6121
Edit Download
📄 continents-cities.php File 20540
Edit Download
📄 credits.php File 5870
Edit Download
📄 dashboard.php File 69710
Edit Download
📄 deprecated.php File 41776
Edit Download
📄 edit-tag-messages.php File 1478
Edit Download
📄 export.php File 25565
Edit Download
📄 file.php File 98169
Edit Download
📄 image-edit.php File 43883
Edit Download
📄 image.php File 42664
Edit Download
📄 import.php File 6617
Edit Download
📄 list-table.php File 3802
Edit Download
📄 media.php File 119109
Edit Download
📄 menu.php File 9618
Edit Download
📄 meta-boxes.php File 66076
Edit Download
📄 misc.php File 45783
Edit Download
📄 ms-admin-filters.php File 1296
Edit Download
📄 ms-deprecated.php File 3770
Edit Download
📄 ms.php File 34318
Edit Download
📄 nav-menu.php File 49041
Edit Download
📄 network.php File 26996
Edit Download
📄 noop.php File 1148
Edit Download
📄 options.php File 4251
Edit Download
📄 plugin-install.php File 39474
Edit Download
📄 plugin.php File 92925
Edit Download
📄 post.php File 82203
Edit Download
📄 privacy-tools.php File 33462
Edit Download
📄 revision.php File 16567
Edit Download
📄 schema.php File 42867
Edit Download
📄 screen.php File 6378
Edit Download
📄 taxonomy.php File 8424
Edit Download
📄 template.php File 98529
Edit Download
📄 theme-install.php File 6990
Edit Download
📄 theme.php File 47742
Edit Download
📄 translation-install.php File 11075
Edit Download
📄 update-core.php File 70146
Edit Download
📄 update.php File 34437
Edit Download
📄 upgrade.php File 114781
Edit Download
📄 user.php File 23532
Edit Download
📄 widgets.php File 10912
Edit Download
is_vcs_checkout( WP_CONTENT_DIR ) ) { return; } foreach ( $language_updates as $key => $language_update ) { $update = ! empty( $language_update->autoupdate ); /** * Filters whether to asynchronously update translation for core, a plugin, or a theme. * * @since 4.0.0 * * @param bool $update Whether to update. * @param object $language_update The update offer. */ $update = apply_filters( 'async_update_translation', $update, $language_update ); if ( ! $update ) { unset( $language_updates[ $key ] ); } } if ( empty( $language_updates ) ) { return; } // Re-use the automatic upgrader skin if the parent upgrader is using it. if ( $upgrader && $upgrader->skin instanceof Automatic_Upgrader_Skin ) { $skin = $upgrader->skin; } else { $skin = new Language_Pack_Upgrader_Skin( array( 'skip_header_footer' => true, ) ); } $lp_upgrader = new Language_Pack_Upgrader( $skin ); $lp_upgrader->bulk_upgrade( $language_updates ); } /** * Initializes the upgrade strings. * * @since 3.7.0 */ public function upgrade_strings() { $this->strings['starting_upgrade'] = __( 'Some of your translations need updating. Sit tight for a few more seconds while they are updated as well.' ); $this->strings['up_to_date'] = __( 'Your translations are all up to date.' ); $this->strings['no_package'] = __( 'Update package not available.' ); /* translators: %s: Package URL. */ $this->strings['downloading_package'] = sprintf( __( 'Downloading translation from %s…' ), '%s' ); $this->strings['unpack_package'] = __( 'Unpacking the update…' ); $this->strings['process_failed'] = __( 'Translation update failed.' ); $this->strings['process_success'] = __( 'Translation updated successfully.' ); $this->strings['remove_old'] = __( 'Removing the old version of the translation…' ); $this->strings['remove_old_failed'] = __( 'Could not remove the old translation.' ); } /** * Upgrades a language pack. * * @since 3.7.0 * * @param string|false $update Optional. Whether an update offer is available. Default false. * @param array $args Optional. Other optional arguments, see * Language_Pack_Upgrader::bulk_upgrade(). Default empty array. * @return array|bool|WP_Error The result of the upgrade, or a WP_Error object instead. */ public function upgrade( $update = false, $args = array() ) { if ( $update ) { $update = array( $update ); } $results = $this->bulk_upgrade( $update, $args ); if ( ! is_array( $results ) ) { return $results; } return $results[0]; } /** * Upgrades several language packs at once. * * @since 3.7.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param object[] $language_updates Optional. Array of language packs to update. See {@see wp_get_translation_updates()}. * Default empty array. * @param array $args { * Other arguments for upgrading multiple language packs. Default empty array. * * @type bool $clear_update_cache Whether to clear the update cache when done. * Default true. * } * @return array|bool|WP_Error Will return an array of results, or true if there are no updates, * false or WP_Error for initial errors. */ public function bulk_upgrade( $language_updates = array(), $args = array() ) { global $wp_filesystem; $defaults = array( 'clear_update_cache' => true, ); $parsed_args = wp_parse_args( $args, $defaults ); $this->init(); $this->upgrade_strings(); if ( ! $language_updates ) { $language_updates = wp_get_translation_updates(); } if ( empty( $language_updates ) ) { $this->skin->header(); $this->skin->set_result( true ); $this->skin->feedback( 'up_to_date' ); $this->skin->bulk_footer(); $this->skin->footer(); return true; } if ( 'upgrader_process_complete' === current_filter() ) { $this->skin->feedback( 'starting_upgrade' ); } // Remove any existing upgrade filters from the plugin/theme upgraders #WP29425 & #WP29230. remove_all_filters( 'upgrader_pre_install' ); remove_all_filters( 'upgrader_clear_destination' ); remove_all_filters( 'upgrader_post_install' ); remove_all_filters( 'upgrader_source_selection' ); add_filter( 'upgrader_source_selection', array( $this, 'check_package' ), 10, 2 ); $this->skin->header(); // Connect to the filesystem first. $res = $this->fs_connect( array( WP_CONTENT_DIR, WP_LANG_DIR ) ); if ( ! $res ) { $this->skin->footer(); return false; } $results = array(); $this->update_count = count( $language_updates ); $this->update_current = 0; /* * The filesystem's mkdir() is not recursive. Make sure WP_LANG_DIR exists, * as we then may need to create a /plugins or /themes directory inside of it. */ $remote_destination = $wp_filesystem->find_folder( WP_LANG_DIR ); if ( ! $wp_filesystem->exists( $remote_destination ) ) { if ( ! $wp_filesystem->mkdir( $remote_destination, FS_CHMOD_DIR ) ) { return new WP_Error( 'mkdir_failed_lang_dir', $this->strings['mkdir_failed'], $remote_destination ); } } $language_updates_results = array(); foreach ( $language_updates as $language_update ) { $this->skin->language_update = $language_update; $destination = WP_LANG_DIR; if ( 'plugin' === $language_update->type ) { $destination .= '/plugins'; } elseif ( 'theme' === $language_update->type ) { $destination .= '/themes'; } ++$this->update_current; $options = array( 'package' => $language_update->package, 'destination' => $destination, 'clear_destination' => true, 'abort_if_destination_exists' => false, // We expect the destination to exist. 'clear_working' => true, 'is_multi' => true, 'hook_extra' => array( 'language_update_type' => $language_update->type, 'language_update' => $language_update, ), ); $result = $this->run( $options ); $results[] = $this->result; // Prevent credentials auth screen from displaying multiple times. if ( false === $result ) { break; } $language_updates_results[] = array( 'language' => $language_update->language, 'type' => $language_update->type, 'slug' => isset( $language_update->slug ) ? $language_update->slug : 'default', 'version' => $language_update->version, ); } // Remove upgrade hooks which are not required for translation updates. remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); remove_action( 'upgrader_process_complete', 'wp_version_check' ); remove_action( 'upgrader_process_complete', 'wp_update_plugins' ); remove_action( 'upgrader_process_complete', 'wp_update_themes' ); /** This action is documented in wp-admin/includes/class-wp-upgrader.php */ do_action( 'upgrader_process_complete', $this, array( 'action' => 'update', 'type' => 'translation', 'bulk' => true, 'translations' => $language_updates_results, ) ); // Re-add upgrade hooks. add_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 ); add_action( 'upgrader_process_complete', 'wp_version_check', 10, 0 ); add_action( 'upgrader_process_complete', 'wp_update_plugins', 10, 0 ); add_action( 'upgrader_process_complete', 'wp_update_themes', 10, 0 ); $this->skin->bulk_footer(); $this->skin->footer(); // Clean up our hooks, in case something else does an upgrade on this connection. remove_filter( 'upgrader_source_selection', array( $this, 'check_package' ) ); if ( $parsed_args['clear_update_cache'] ) { wp_clean_update_cache(); } return $results; } /** * Checks that the package source contains .mo and .po files. * * Hooked to the {@see 'upgrader_source_selection'} filter by * Language_Pack_Upgrader::bulk_upgrade(). * * @since 3.7.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string|WP_Error $source The path to the downloaded package source. * @param string $remote_source Remote file source location. * @return string|WP_Error The source as passed, or a WP_Error object on failure. */ public function check_package( $source, $remote_source ) { global $wp_filesystem; if ( is_wp_error( $source ) ) { return $source; } // Check that the folder contains a valid language. $files = $wp_filesystem->dirlist( $remote_source ); // Check to see if the expected files exist in the folder. $po = false; $mo = false; $php = false; foreach ( (array) $files as $file => $filedata ) { if ( str_ends_with( $file, '.po' ) ) { $po = true; } elseif ( str_ends_with( $file, '.mo' ) ) { $mo = true; } elseif ( str_ends_with( $file, '.l10n.php' ) ) { $php = true; } } if ( $php ) { return $source; } if ( ! $mo || ! $po ) { return new WP_Error( 'incompatible_archive_pomo', $this->strings['incompatible_archive'], sprintf( /* translators: 1: .po, 2: .mo, 3: .l10n.php */ __( 'The language pack is missing either the %1$s, %2$s, or %3$s files.' ), '.po', '.mo', '.l10n.php' ) ); } return $source; } /** * Gets the name of an item being updated. * * @since 3.7.0 * * @param object $update The data for an update. * @return string The name of the item being updated. */ public function get_name_for_update( $update ) { switch ( $update->type ) { case 'core': return 'WordPress'; // Not translated. case 'theme': $theme = wp_get_theme( $update->slug ); if ( $theme->exists() ) { return $theme->Get( 'Name' ); } break; case 'plugin': $plugin_data = get_plugins( '/' . $update->slug ); $plugin_data = reset( $plugin_data ); if ( $plugin_data ) { return $plugin_data['Name']; } break; } return ''; } /** * Clears existing translations where this item is going to be installed into. * * @since 5.1.0 * * @global WP_Filesystem_Base $wp_filesystem WordPress filesystem subclass. * * @param string $remote_destination The location on the remote filesystem to be cleared. * @return bool|WP_Error True upon success, WP_Error on failure. */ public function clear_destination( $remote_destination ) { global $wp_filesystem; $language_update = $this->skin->language_update; $language_directory = WP_LANG_DIR . '/'; // Local path for use with glob(). if ( 'core' === $language_update->type ) { $files = array( $remote_destination . $language_update->language . '.po', $remote_destination . $language_update->language . '.mo', $remote_destination . $language_update->language . '.l10n.php', $remote_destination . 'admin-' . $language_update->language . '.po', $remote_destination . 'admin-' . $language_update->language . '.mo', $remote_destination . 'admin-' . $language_update->language . '.l10n.php', $remote_destination . 'admin-network-' . $language_update->language . '.po', $remote_destination . 'admin-network-' . $language_update->language . '.mo', $remote_destination . 'admin-network-' . $language_update->language . '.l10n.php', $remote_destination . 'continents-cities-' . $language_update->language . '.po', $remote_destination . 'continents-cities-' . $language_update->language . '.mo', $remote_destination . 'continents-cities-' . $language_update->language . '.l10n.php', ); $json_translation_files = glob( $language_directory . $language_update->language . '-*.json' ); if ( $json_translation_files ) { foreach ( $json_translation_files as $json_translation_file ) { $files[] = str_replace( $language_directory, $remote_destination, $json_translation_file ); } } } else { $files = array( $remote_destination . $language_update->slug . '-' . $language_update->language . '.po', $remote_destination . $language_update->slug . '-' . $language_update->language . '.mo', $remote_destination . $language_update->slug . '-' . $language_update->language . '.l10n.php', ); $language_directory = $language_directory . $language_update->type . 's/'; $json_translation_files = glob( $language_directory . $language_update->slug . '-' . $language_update->language . '-*.json' ); if ( $json_translation_files ) { foreach ( $json_translation_files as $json_translation_file ) { $files[] = str_replace( $language_directory, $remote_destination, $json_translation_file ); } } } $files = array_filter( $files, array( $wp_filesystem, 'exists' ) ); // No files to delete. if ( ! $files ) { return true; } // Check all files are writable before attempting to clear the destination. $unwritable_files = array(); // Check writability. foreach ( $files as $file ) { if ( ! $wp_filesystem->is_writable( $file ) ) { // Attempt to alter permissions to allow writes and try again. $wp_filesystem->chmod( $file, FS_CHMOD_FILE ); if ( ! $wp_filesystem->is_writable( $file ) ) { $unwritable_files[] = $file; } } } if ( ! empty( $unwritable_files ) ) { return new WP_Error( 'files_not_writable', $this->strings['files_not_writable'], implode( ', ', $unwritable_files ) ); } foreach ( $files as $file ) { if ( ! $wp_filesystem->delete( $file ) ) { return new WP_Error( 'remove_old_failed', $this->strings['remove_old_failed'] ); } } return true; } }