@@ -117,7 +117,11 @@ private static function cdn( bool $register, string $handle, string $src_cdn, ar
117
117
118
118
if ( is_wp_error ( $ cdn_response ) || 200 !== wp_remote_retrieve_response_code ( $ cdn_response ) ) {
119
119
if ( class_exists ( 'Redux_Vendor_URL ' ) || class_exists ( 'Redux_VendorURL ' ) ) {
120
- $ src = Redux_Vendor_URL::get_url ( $ handle );
120
+ if ( class_exists ( 'Redux_Vendor_URL ' ) ) {
121
+ $ src = Redux_Vendor_URL::get_url ( $ handle );
122
+ } else {
123
+ $ src = Redux_VendorURL::get_url ( $ handle );
124
+ }
121
125
122
126
if ( $ register ) {
123
127
self ::register ( $ handle , $ src , $ deps , $ ver , $ footer_or_media , $ is_script );
@@ -168,7 +172,11 @@ private static function cdn( bool $register, string $handle, string $src_cdn, ar
168
172
*/
169
173
private static function vendor_plugin ( bool $ register , string $ handle , array $ deps , string $ ver , $ footer_or_media , bool $ is_script ) {
170
174
if ( class_exists ( 'Redux_Vendor_URL ' ) || class_exists ( 'Redux_VendorURL ' ) ) {
171
- $ src = Redux_Vendor_URL::get_url ( $ handle );
175
+ if ( class_exists ( 'Redux_Vendor_URL ' ) ) {
176
+ $ src = Redux_Vendor_URL::get_url ( $ handle );
177
+ } else {
178
+ $ src = Redux_VendorURL::get_url ( $ handle );
179
+ }
172
180
173
181
if ( $ register ) {
174
182
self ::register ( $ handle , $ src , $ deps , $ ver , $ footer_or_media , $ is_script );
0 commit comments