Skip to content

Commit

Permalink
fixed class references with namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
glueckpress committed Mar 8, 2018
1 parent 2911679 commit b735a14
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
function clean_product_cache_after_order( $order_id ) {

$order = new WC_Order( $order_id );
$order = new \WC_Order( $order_id );
$items = $order->get_items();

foreach ( $items as $item ) {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function deactivate_for_mobile_devices() {

if( class_exists( 'Rocket_Mobile_Detect' ) && get_rocket_option( 'do_caching_mobile_files', false ) ) {

$detect = new Rocket_Mobile_Detect();
$detect = new \Rocket_Mobile_Detect();

if ( $detect->isMobile() && ! $detect->isTablet() ) {

Expand Down
Binary file not shown.

0 comments on commit b735a14

Please sign in to comment.