Skip to content

Commit

Permalink
[3rd] 3rd party compatibility w/ litespeed namespace. (#366352)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-hai committed Apr 30, 2020
1 parent 283229f commit d9c6dc9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion thirdparty/nextgengallery.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function update_image()
error_log('LiteSpeed_Cache hit ngg_ajax_image_save with no post image id.') ;
return ;
}
$image = C_Image_Mapper::get_instance()->find($id) ;
$image = \C_Image_Mapper::get_instance()->find($id) ;
if ( $image ) {
do_action( 'litespeed_purge', self::CACHETAG_GALLERIES . $image->galleryid );
}
Expand Down
2 changes: 1 addition & 1 deletion thirdparty/theme-my-login.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function set_control()
}

// check if this page is TML page or not
if ( class_exists( 'Theme_My_Login' ) && Theme_My_Login::is_tml_page() ) {
if ( class_exists( 'Theme_My_Login' ) && \Theme_My_Login::is_tml_page() ) {
do_action( 'litespeed_control_set_nocache', 'Theme My Login' );
}
}
Expand Down
4 changes: 2 additions & 2 deletions thirdparty/wplister.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public static function detect()
{
if ( defined( 'WOOCOMMERCE_VERSION' ) && defined( 'WPLISTER_VERSION' ) ) {
// User reported this will sync correctly.
add_action( 'wplister_revise_inventory_status', array( WooCommerce::get_instance(), 'backend_purge' ) );
add_action( 'wplister_revise_inventory_status', array( \WooCommerce::get_instance(), 'backend_purge' ) );
// Added as a safety measure for WPLister Pro only.
add_action( 'wplister_inventory_status_changed', array( WooCommerce::get_instance(), 'backend_purge' ) );
add_action( 'wplister_inventory_status_changed', array( \WooCommerce::get_instance(), 'backend_purge' ) );
}
}

Expand Down
2 changes: 1 addition & 1 deletion thirdparty/yith-wishlist.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function load_add_to_wishlist( $params )
global $post, $wp_query ;
$post = get_post( $params[ self::ESI_PARAM_POSTID ] ) ;
$wp_query->setup_postdata( $post ) ;
echo YITH_WCWL_Shortcode::add_to_wishlist( /*$params[self::ESI_PARAM_ATTS]*/array() ) ;
echo \YITH_WCWL_Shortcode::add_to_wishlist( /*$params[self::ESI_PARAM_ATTS]*/array() ) ;
do_action( 'litespeed_control_set_private', 'yith wishlist' );
do_action( 'litespeed_vary_no' );
}
Expand Down

0 comments on commit d9c6dc9

Please sign in to comment.