SILENT KILLERPanel

Current Path: > home > transcarter > > www > wp-content > plugins > wp-optimize > includes


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter//www/wp-content/plugins/wp-optimize/includes

NameTypeSizeLast ModifiedActions
blockui Directory - -
fragments Directory - -
list-tables Directory - -
tables Directory - -
backward-compatibility-functions.php File 3311 bytes July 17 2025 21:05:49.
class-re-smush-it-task.php File 5606 bytes July 17 2025 21:05:49.
class-updraft-abstract-logger.php File 3510 bytes July 17 2025 21:05:49.
class-updraft-email-logger.php File 4209 bytes July 17 2025 21:05:49.
class-updraft-file-logger.php File 4362 bytes July 17 2025 21:05:49.
class-updraft-log-levels.php File 911 bytes July 17 2025 21:05:49.
class-updraft-logger-interface.php File 2851 bytes July 17 2025 21:05:49.
class-updraft-logger.php File 4960 bytes July 17 2025 21:05:49.
class-updraft-php-logger.php File 2875 bytes July 17 2025 21:05:49.
class-updraft-ring-logger.php File 4148 bytes July 17 2025 21:05:49.
class-updraft-smush-manager-commands.php File 29110 bytes July 17 2025 21:05:49.
class-updraft-smush-manager.php File 58419 bytes July 17 2025 21:05:49.
class-updraft-smush-task.php File 13294 bytes July 17 2025 21:05:49.
class-updraftcentral-wp-optimize-commands.php File 1193 bytes July 17 2025 21:05:49.
class-wp-optimization.php File 13173 bytes July 17 2025 21:05:49.
class-wp-optimize-404-detector-cron.php File 1058 bytes July 17 2025 21:05:49.
class-wp-optimize-404-detector.php File 11259 bytes July 17 2025 21:05:49.
class-wp-optimize-admin.php File 33078 bytes July 17 2025 21:05:49.
class-wp-optimize-browser-cache.php File 9429 bytes July 17 2025 21:05:49.
class-wp-optimize-commands.php File 37345 bytes July 17 2025 21:05:49.
class-wp-optimize-database-information.php File 17133 bytes July 17 2025 21:05:49.
class-wp-optimize-delay-js.php File 11215 bytes July 17 2025 21:05:49.
class-wp-optimize-gzip-compression.php File 11036 bytes July 17 2025 21:05:49.
class-wp-optimize-heartbeat.php File 4044 bytes July 17 2025 21:05:49.
class-wp-optimize-htaccess.php File 9012 bytes July 17 2025 21:05:49.
class-wp-optimize-http-error-codes-trait.php File 9045 bytes July 17 2025 21:05:49.
class-wp-optimize-install-or-update-notice.php File 3344 bytes July 17 2025 21:05:49.
class-wp-optimize-notices.php File 18660 bytes July 17 2025 21:05:49.
class-wp-optimize-options.php File 16430 bytes July 17 2025 21:05:49.
class-wp-optimize-performance.php File 3555 bytes July 17 2025 21:05:49.
class-wp-optimize-preloader.php File 18543 bytes July 17 2025 21:05:49.
class-wp-optimize-server-information.php File 4941 bytes July 17 2025 21:05:49.
class-wp-optimize-system-status-report.php File 11189 bytes July 17 2025 21:05:49.
class-wp-optimize-table-management.php File 3762 bytes July 17 2025 21:05:49.
class-wp-optimize-transients-cache.php File 3434 bytes July 17 2025 21:05:49.
class-wp-optimize-updates.php File 11273 bytes July 17 2025 21:05:49.
class-wp-optimize-utils.php File 7010 bytes July 17 2025 21:05:49.
class-wp-optimizer.php File 20933 bytes July 17 2025 21:05:49.
class-wpo-activation.php File 2748 bytes July 17 2025 21:05:49.
class-wpo-ajax.php File 12418 bytes July 17 2025 21:05:49.
class-wpo-deactivation.php File 533 bytes July 17 2025 21:05:49.
class-wpo-image-utils.php File 1738 bytes July 17 2025 21:05:49.
class-wpo-page-optimizer.php File 1628 bytes July 17 2025 21:05:49.
class-wpo-uninstall.php File 2654 bytes July 17 2025 21:05:49.
updraftcentral.php File 1704 bytes July 17 2025 21:05:49.

Reading File: /home/transcarter//www/wp-content/plugins/wp-optimize/includes/backward-compatibility-functions.php

<?php
/**
 * Normalize a filesystem path.
 */
if (!function_exists('wp_normalize_path')) {
	/**
	 * WordPress function to normalize a filesystem path; was added to WP core in WP 3.9
	 *
	 * @see wp_normalize_path() https://developer.wordpress.org/reference/functions/wp_normalize_path/#source for the original source code
	 *
	 * @param string $path Path to normalize.
	 * @return string Normalized path.
	 */
	function wp_normalize_path($path) {
		$wrapper = '';
		if (wp_is_stream($path)) {
			list($wrapper, $path) = explode('://', $path, 2);
			$wrapper .= '://';
		}
		// Standardise all paths to use /
		$path = str_replace('\\', '/', $path);
		// Replace multiple slashes down to a singular, allowing for network shares having two slashes.
		$path = preg_replace('|(?<=.)/+|', '/', $path);
		// Windows paths should uppercase the drive letter
		if (':' === substr($path, 1, 1)) {
			$path = ucfirst($path);
		}
		return $wrapper.$path;
	}
}

/**
 * Unschedules all events attached to the hook.
 */
if (!function_exists('wp_unschedule_hook')) {
	/**
	 * Unschedules all events attached to the hook.
	 *
	 * Can be useful for plugins when deactivating to clean up the cron queue.
	 *
	 * Warning: This function may return Boolean FALSE, but may also return a non-Boolean
	 * value which evaluates to FALSE. For information about casting to booleans see the
	 * {@link https://www.php.net/manual/en/language.types.boolean.php PHP documentation}. Use
	 * the `===` operator for testing the return value of this function.
	 *
	 * @since 4.9.0
	 * @since 5.1.0 Return value added to indicate success or failure.
	 *
	 * @param string $hook Action hook, the execution of which will be unscheduled.
	 * @return int|false On success an integer indicating number of events unscheduled (0 indicates no
	 *                   events were registered on the hook), false if unscheduling fails.
	 */
	function wp_unschedule_hook($hook) {
		/**
		 * Filter to preflight or hijack clearing all events attached to the hook.
		 *
		 * Returning a non-null value will short-circuit the normal unscheduling
		 * process, causing the function to return the filtered value instead.
		 *
		 * For plugins replacing wp-cron, return the number of events successfully
		 * unscheduled (zero if no events were registered with the hook) or false
		 * if unscheduling one or more events fails.
		 *
		 * @since 5.1.0
		 *
		 * @param null|int|false $pre  Value to return instead. Default null to continue unscheduling the hook.
		 * @param string         $hook Action hook, the execution of which will be unscheduled.
		 */
		$pre = apply_filters('pre_unschedule_hook', null, $hook);
		if (null !== $pre) {
			return $pre;
		}

		$crons = _get_cron_array();
		if (empty($crons)) {
			return 0;
		}

		$results = array();
		foreach ($crons as $timestamp => $args) {
			if (!empty($crons[$timestamp][$hook])) {
				$results[] = count($crons[$timestamp][$hook]);
			}
			unset($crons[$timestamp][$hook]);

			if (empty($crons[$timestamp])) {
				unset($crons[$timestamp]);
			}
		}

		/*
		 * If the results are empty (zero events to unschedule), no attempt
		 * to update the cron array is required.
		 */
		if (empty($results)) {
			return 0;
		}
		if (_set_cron_array($crons)) {
			return array_sum($results);
		}
		return false;
	}
}

SILENT KILLER Tool