GRAYBYTE WORDPRESS FILE MANAGER3329

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/Blocks/Utils/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/woocommerce/src/Blocks/Utils//Utils.php
<?php
namespace Automattic\WooCommerce\Blocks\Utils;

/**
 * Utils class
 */
class Utils {

	/**
	 * Compare the current WordPress version with a given version. It's a wrapper around `version-compare`
	 * that additionally takes into account the suffix (like `-RC1`).
	 * For example: version 6.3 is considered lower than 6.3-RC2, so you can do
	 * wp_version_compare( '6.3', '>=' ) and that will return true for 6.3-RC2.
	 *
	 * @param string      $version The version to compare against.
	 * @param string|null $operator Optional. The comparison operator. Defaults to null.
	 * @return bool|int Returns true if the current WordPress version satisfies the comparison, false otherwise.
	 */
	public static function wp_version_compare( $version, $operator = null ) {
		$current_wp_version = get_bloginfo( 'version' );
		if ( preg_match( '/^([0-9]+\.[0-9]+)/', $current_wp_version, $matches ) ) {
			$current_wp_version = (float) $matches[1];
		}

		// Replace non-alphanumeric characters with a dot.
		$current_wp_version = preg_replace( '/[^0-9a-zA-Z\.]+/i', '.', $current_wp_version );
		$version            = preg_replace( '/[^0-9a-zA-Z\.]+/i', '.', $version );

		return version_compare( $current_wp_version, $version, $operator );
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:19
giriqfky / giriqfky
0644
BlockHooksTrait.php
6.894 KB
July 30 2024 19:31:16
giriqfky / giriqfky
0644
BlockTemplateUtils.php
30.983 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
BlocksWpQuery.php
2.083 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644
CartCheckoutUtils.php
14.638 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
MiniCartUtils.php
3.51 KB
November 14 2024 01:17:00
giriqfky / giriqfky
0644
ProductAvailabilityUtils.php
1.184 KB
June 02 2025 15:59:32
giriqfky / giriqfky
0644
ProductGalleryUtils.php
5.258 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
StyleAttributesUtils.php
23.122 KB
May 12 2025 21:07:28
giriqfky / giriqfky
0644
Utils.php
1.211 KB
December 27 2023 00:45:02
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF