Use jetpack autoloader and composer instead of namespace rewrite

This commit is contained in:
David Stone
2025-02-02 01:22:03 -07:00
parent 1e02e42706
commit 71b0e7a455
3479 changed files with 4128 additions and 379511 deletions

View File

@ -14,7 +14,7 @@
// Exit if accessed directly
defined('ABSPATH') || exit;
use \WP_Ultimo\Dependencies\Mexitek\PHPColors\Color;
use \Mexitek\PHPColors\Color;
/**
* Returns a Color object.
@ -22,7 +22,7 @@ use \WP_Ultimo\Dependencies\Mexitek\PHPColors\Color;
* @since 2.0.0
*
* @param string $hex Hex code for the color. E.g. #000.
* @return \WP_Ultimo\Dependencies\Mexitek\PHPColors\Color
* @return \Mexitek\PHPColors\Color
*/
function wu_color($hex) {

View File

@ -55,7 +55,7 @@ function wu_validate_date($date, $format = 'Y-m-d H:i:s') {
* @see https://carbon.nesbot.com/docs/
*
* @param string|false $date Parsable date string.
* @return \WP_Ultimo\Dependencies\Carbon\Carbon
* @return \Carbon\Carbon
*/
function wu_date($date = false) {
@ -65,7 +65,7 @@ function wu_date($date = false) {
} // end if;
return \WP_Ultimo\Dependencies\Carbon\Carbon::parse($date);
return \Carbon\Carbon::parse($date);
} // end wu_date;

View File

@ -10,7 +10,7 @@
defined('ABSPATH') || exit;
use \WP_Ultimo\Exception\Runtime_Exception;
use \WP_Ultimo\Dependencies\Psr\Log\LogLevel;
use \Psr\Log\LogLevel;
/**
* Returns the WP Multisite WaaS version.

View File

@ -9,7 +9,7 @@
// Exit if accessed directly
defined('ABSPATH') || exit;
use \WP_Ultimo\Dependencies\phpDocumentor\Reflection\DocBlockFactory;
use \phpDocumentor\Reflection\DocBlockFactory;
/**
* Creates the REST API schema blueprint for an object based on setters.