diff --git a/modules/simple-payments/simple-payments.php b/modules/simple-payments/simple-payments.php index 8d36a00774dc..76ee091f0b93 100644 --- a/modules/simple-payments/simple-payments.php +++ b/modules/simple-payments/simple-payments.php @@ -290,7 +290,7 @@ public function output_shortcode( $data ) { * @return string Formatted price. */ private function format_price( $price, $currency ) { - require_once JETPACK__PLUGIN_DIR . 'class.jetpack-currencies.php'; + jetpack_require_lib( 'class-jetpack-currencies' ); return Jetpack_Currencies::format_price( $price, $currency ); } @@ -553,7 +553,7 @@ function setup_cpts() { * @return ?array Currency object or null if not found. */ private static function get_currency( $the_currency ) { - require_once JETPACK__PLUGIN_DIR . 'class.jetpack-currencies.php'; + jetpack_require_lib( 'class-jetpack-currencies' ); $currencies = Jetpack_Currencies::CURRENCIES; if ( isset( $currencies[ $the_currency ] ) ) {