From 98119047bfe6d528c6562c6972854f228db53a45 Mon Sep 17 00:00:00 2001 From: Christopher Allford Date: Thu, 9 Jan 2020 00:56:22 -0800 Subject: [PATCH] Added back the WC_Geolocation's get_local_database_path method since it was publicly used --- includes/class-wc-geolocation.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/includes/class-wc-geolocation.php b/includes/class-wc-geolocation.php index 2b8a4fca489..6348ecafa0f 100644 --- a/includes/class-wc-geolocation.php +++ b/includes/class-wc-geolocation.php @@ -230,6 +230,16 @@ class WC_Geolocation { ); } + /** + * Path to our local db. + * + * @param string $deprecated Deprecated since 3.4.0. + * @return string + */ + public static function get_local_database_path( $deprecated = '2' ) { + return WC_MaxMind_Geolocation_Database::get_database_path(); + } + /** * Update geoip database. *