Use jetpack autoloader and composer instead of namespace rewrite
This commit is contained in:
@ -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) {
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user