From 96f914e843a2099593d83ffacad091c9138ec713 Mon Sep 17 00:00:00 2001
From: Corey Salzano <938411+csalzano@users.noreply.github.com>
Date: Mon, 23 Dec 2024 09:37:38 -0500
Subject: [PATCH] Fixes invalid translation text domains. Escapes a URL before
output.
---
includes/admin/class-admin-options.php | 2 +-
includes/class-invp.php | 158 +++++++++---------
.../class-shortcode-attribute-table.php | 4 +-
.../shortcode/class-shortcode-sort-by.php | 22 +--
includes/widget/class-widget-carfax.php | 2 +-
inventory-presser.php | 2 +-
6 files changed, 95 insertions(+), 95 deletions(-)
diff --git a/includes/admin/class-admin-options.php b/includes/admin/class-admin-options.php
index 208e9a1..3567f18 100644
--- a/includes/admin/class-admin-options.php
+++ b/includes/admin/class-admin-options.php
@@ -644,7 +644,7 @@ public function callback_singles_contact_form() {
'',
esc_attr( $gform['id'] ),
selected( 'GF_' . $gform['id'], $current_value, false ),
- esc_html__( 'Gravity Forms', 'event-milestones' ),
+ esc_html__( 'Gravity Forms', 'inventory-presser' ),
esc_attr( $gform['title'] )
);
}
diff --git a/includes/class-invp.php b/includes/class-invp.php
index 29a6443..1260d4a 100644
--- a/includes/class-invp.php
+++ b/includes/class-invp.php
@@ -433,81 +433,81 @@ public static function keys_and_types() {
'invp_meta_fields',
array(
array(
- 'label' => __( 'Availability', 'inventory_presser' ),
+ 'label' => __( 'Availability', 'inventory-presser' ),
'name' => 'availability',
'sample' => __( 'For Sale', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Beam', 'inventory_presser' ),
+ 'label' => __( 'Beam', 'inventory-presser' ),
'name' => 'beam', // for boats.
'type' => 'string',
),
array(
- 'label' => __( 'Body Style', 'inventory_presser' ),
+ 'label' => __( 'Body Style', 'inventory-presser' ),
'name' => 'body_style',
'sample' => __( 'EXTENDED CAB PICKUP', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'KBB Book Value', 'inventory_presser' ), // Kelley Blue Book.
+ 'label' => __( 'KBB Book Value', 'inventory-presser' ), // Kelley Blue Book.
'name' => 'book_value_kbb',
'sample' => 13500,
'type' => 'number',
),
array(
- 'label' => __( 'NADA Book Value', 'inventory_presser' ), // NADA Guides.
+ 'label' => __( 'NADA Book Value', 'inventory-presser' ), // NADA Guides.
'name' => 'book_value_nada',
'sample' => 13500,
'type' => 'number',
),
array(
- 'label' => __( 'Car ID', 'inventory_presser' ),
+ 'label' => __( 'Car ID', 'inventory-presser' ),
'name' => 'car_id', // unique identifier.
'type' => 'integer',
),
array(
- 'label' => __( 'Carfax Accident Free', 'inventory_presser' ),
+ 'label' => __( 'Carfax Accident Free', 'inventory-presser' ),
'name' => 'carfax_accident_free',
'type' => 'boolean',
),
array(
- 'label' => __( 'Carfax Have Report', 'inventory_presser' ),
+ 'label' => __( 'Carfax Have Report', 'inventory-presser' ),
'name' => 'carfax_have_report',
'type' => 'boolean',
),
array(
- 'label' => __( 'Carfax One Owner', 'inventory_presser' ),
+ 'label' => __( 'Carfax One Owner', 'inventory-presser' ),
'name' => 'carfax_one_owner',
'type' => 'boolean',
),
array(
- 'label' => __( 'Carfax Top Condition', 'inventory_presser' ),
+ 'label' => __( 'Carfax Top Condition', 'inventory-presser' ),
'name' => 'carfax_top_condition',
'type' => 'boolean',
),
array(
- 'label' => __( 'Carfax Icon URL', 'inventory_presser' ),
+ 'label' => __( 'Carfax Icon URL', 'inventory-presser' ),
'name' => 'carfax_url_icon',
'type' => 'string',
),
array(
- 'label' => __( 'Carfax Accident-Free Badge URL', 'inventory_presser' ),
+ 'label' => __( 'Carfax Accident-Free Badge URL', 'inventory-presser' ),
'name' => 'carfax_url_icon_accident_free',
'type' => 'string',
),
array(
- 'label' => __( 'Carfax One-Owner Badge URL', 'inventory_presser' ),
+ 'label' => __( 'Carfax One-Owner Badge URL', 'inventory-presser' ),
'name' => 'carfax_url_icon_one_owner',
'type' => 'string',
),
array(
- 'label' => __( 'Carfax Top-Condition Badge URL', 'inventory_presser' ),
+ 'label' => __( 'Carfax Top-Condition Badge URL', 'inventory-presser' ),
'name' => 'carfax_url_icon_top_condition',
'type' => 'string',
),
array(
- 'label' => __( 'Carfax Report URL', 'inventory_presser' ),
+ 'label' => __( 'Carfax Report URL', 'inventory-presser' ),
'name' => 'carfax_url_report',
'type' => 'string',
),
@@ -517,376 +517,376 @@ public static function keys_and_types() {
'type' => 'boolean',
),
array(
- 'label' => __( 'Color', 'inventory_presser' ),
+ 'label' => __( 'Color', 'inventory-presser' ),
'name' => 'color',
'sample' => __( 'Merlot Jewel Metallic', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Base Color', 'inventory_presser' ),
+ 'label' => __( 'Base Color', 'inventory-presser' ),
'name' => 'color_base',
'sample' => __( 'Red', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Boat Condition', 'inventory_presser' ),
+ 'label' => __( 'Boat Condition', 'inventory-presser' ),
'name' => 'condition_boat', // for boats.
'sample' => __( 'Excellent', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Condition', 'inventory_presser' ),
+ 'label' => __( 'Condition', 'inventory-presser' ),
'name' => 'condition',
'sample' => __( 'Used', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Cylinders', 'inventory_presser' ),
+ 'label' => __( 'Cylinders', 'inventory-presser' ),
'name' => 'cylinders',
'sample' => 6,
'type' => 'integer',
),
array(
- 'label' => __( 'Date Entered', 'inventory_presser' ),
+ 'label' => __( 'Date Entered', 'inventory-presser' ),
'name' => 'date_entered',
'sample' => 'Mon, 24 Feb 2020 08:17:37 -0500',
'type' => 'string',
),
array(
- 'label' => __( 'Dealer ID', 'inventory_presser' ),
+ 'label' => __( 'Dealer ID', 'inventory-presser' ),
'name' => 'dealer_id',
'type' => 'integer',
),
array(
- 'label' => __( 'Description', 'inventory_presser' ),
+ 'label' => __( 'Description', 'inventory-presser' ),
'name' => 'description',
'sample' => __( 'Clean, non-smoker, must-see!', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Doors', 'inventory_presser' ),
+ 'label' => __( 'Doors', 'inventory-presser' ),
'name' => 'doors',
'sample' => 4,
'type' => 'integer',
),
array(
- 'label' => __( 'Down Payment', 'inventory_presser' ),
+ 'label' => __( 'Down Payment', 'inventory-presser' ),
'name' => 'down_payment',
'sample' => 2500,
'type' => 'number',
),
array(
- 'label' => __( 'Drive Type', 'inventory_presser' ),
+ 'label' => __( 'Drive Type', 'inventory-presser' ),
'name' => 'drive_type',
'sample' => __( 'Rear Wheel Drive', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Edmunds Style ID', 'inventory_presser' ),
+ 'label' => __( 'Edmunds Style ID', 'inventory-presser' ),
'name' => 'edmunds_style_id',
'type' => 'integer',
),
array(
- 'label' => __( 'Engine', 'inventory_presser' ),
+ 'label' => __( 'Engine', 'inventory-presser' ),
'name' => 'engine',
'sample' => __( '3.7L 5 cylinder', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( '# of Engines', 'inventory_presser' ),
+ 'label' => __( '# of Engines', 'inventory-presser' ),
'name' => 'engine_count', // For boats.
'sample' => 1,
'type' => 'integer',
),
array(
- 'label' => __( 'Engine Make', 'inventory_presser' ),
+ 'label' => __( 'Engine Make', 'inventory-presser' ),
'name' => 'engine_make', // For boats.
'sample' => __( 'Yamaha', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Engine Model', 'inventory_presser' ),
+ 'label' => __( 'Engine Model', 'inventory-presser' ),
'name' => 'engine_model', // For boats.
'sample' => 'F200LB',
'type' => 'string',
),
array(
- 'label' => __( 'Featured', 'inventory_presser' ),
+ 'label' => __( 'Featured', 'inventory-presser' ),
'name' => 'featured',
'type' => 'boolean',
),
array(
- 'label' => __( 'Fuel', 'inventory_presser' ),
+ 'label' => __( 'Fuel', 'inventory-presser' ),
'name' => 'fuel',
'sample' => __( 'Gas', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Fuel Economy Name (fuel type 1)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Name (fuel type 1)', 'inventory-presser' ),
'name' => 'fuel_economy_1_name',
'sample' => __( 'Regular Gasoline', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Fuel Economy Annual Fuel Consumption (fuel type 1)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Annual Fuel Consumption (fuel type 1)', 'inventory-presser' ),
'name' => 'fuel_economy_1_annual_consumption',
'sample' => __( '13.18 barrels', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Fuel Economy Annual Fuel Cost (fuel type 1)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Annual Fuel Cost (fuel type 1)', 'inventory-presser' ),
'name' => 'fuel_economy_1_annual_cost',
'sample' => 1600,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Annual Tailpipe CO2 Emissions (fuel type 1)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Annual Tailpipe CO2 Emissions (fuel type 1)', 'inventory-presser' ),
'name' => 'fuel_economy_1_annual_emissions',
'sample' => __( '355 grams per mile', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Fuel Economy City (fuel type 1)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy City (fuel type 1)', 'inventory-presser' ),
'name' => 'fuel_economy_1_city',
'sample' => 22,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Combined (fuel type 1)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Combined (fuel type 1)', 'inventory-presser' ),
'name' => 'fuel_economy_1_combined',
'sample' => 25,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Highway (fuel type 1)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Highway (fuel type 1)', 'inventory-presser' ),
'name' => 'fuel_economy_1_highway',
'sample' => 31,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Name (fuel type 2)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Name (fuel type 2)', 'inventory-presser' ),
'name' => 'fuel_economy_2_name',
'sample' => __( 'Regular Gasoline', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Fuel Economy Annual Fuel Consumption (fuel type 2)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Annual Fuel Consumption (fuel type 2)', 'inventory-presser' ),
'name' => 'fuel_economy_2_annual_consumption',
'sample' => __( '13.18 barrels', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Fuel Economy Annual Fuel Cost (fuel type 2)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Annual Fuel Cost (fuel type 2)', 'inventory-presser' ),
'name' => 'fuel_economy_2_annual_cost',
'sample' => 1600,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Annual Tailpipe CO2 Emissions (fuel type 2)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Annual Tailpipe CO2 Emissions (fuel type 2)', 'inventory-presser' ),
'name' => 'fuel_economy_2_annual_emissions',
'sample' => __( '355 grams per mile', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Fuel Economy City (fuel type 2)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy City (fuel type 2)', 'inventory-presser' ),
'name' => 'fuel_economy_2_city',
'sample' => 22,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Combined (fuel type 2)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Combined (fuel type 2)', 'inventory-presser' ),
'name' => 'fuel_economy_2_combined',
'sample' => 25,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Highway (fuel type 2)', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Highway (fuel type 2)', 'inventory-presser' ),
'name' => 'fuel_economy_2_highway',
'sample' => 31,
'type' => 'number',
),
array(
- 'label' => __( 'Fuel Economy Five Year Savings', 'inventory_presser' ),
+ 'label' => __( 'Fuel Economy Five Year Savings', 'inventory-presser' ),
'name' => 'fuel_economy_five_year_savings',
'sample' => 2250,
'type' => 'number',
),
array(
- 'label' => __( 'Horsepower', 'inventory_presser' ),
+ 'label' => __( 'Horsepower', 'inventory-presser' ),
'name' => 'horsepower', // for boats.
'type' => 'integer',
),
array(
- 'label' => __( 'Hull Material', 'inventory_presser' ),
+ 'label' => __( 'Hull Material', 'inventory-presser' ),
'name' => 'hull_material', // for boats.
'type' => 'string',
),
array(
- 'label' => __( 'Interior Color', 'inventory_presser' ),
+ 'label' => __( 'Interior Color', 'inventory-presser' ),
'name' => 'interior_color',
'sample' => __( 'Black', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Last Modified', 'inventory_presser' ),
+ 'label' => __( 'Last Modified', 'inventory-presser' ),
'name' => 'last_modified',
'sample' => 'Mon, 24 Feb 2020 08:17:37 -0500',
'type' => 'string',
),
array(
- 'label' => __( 'Leads ID', 'inventory_presser' ),
+ 'label' => __( 'Leads ID', 'inventory-presser' ),
'name' => 'leads_id', // dealer id that receives leads.
'type' => 'integer',
),
array(
- 'label' => __( 'Length', 'inventory_presser' ),
+ 'label' => __( 'Length', 'inventory-presser' ),
'name' => 'length', // for boats.
'type' => 'string',
),
array(
- 'label' => __( 'Location', 'inventory_presser' ),
+ 'label' => __( 'Location', 'inventory-presser' ),
'name' => 'location',
'sample' => __( '120 Mall Blvd', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Make', 'inventory_presser' ),
+ 'label' => __( 'Make', 'inventory-presser' ),
'name' => 'make',
'sample' => __( 'GMC', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Max Draft', 'inventory_presser' ),
+ 'label' => __( 'Max Draft', 'inventory-presser' ),
'name' => 'draft', // for boats.
'sample' => '1\' 0"',
'type' => 'string',
),
array(
- 'label' => __( 'Model', 'inventory_presser' ),
+ 'label' => __( 'Model', 'inventory-presser' ),
'name' => 'model',
'sample' => 'Canyon',
'type' => 'string',
),
array(
- 'label' => __( 'MSRP', 'inventory_presser' ),
+ 'label' => __( 'MSRP', 'inventory-presser' ),
'name' => 'msrp',
'sample' => 23905,
'type' => 'number',
),
array(
- 'label' => __( 'NextGear Inspection URL', 'inventory_presser' ),
+ 'label' => __( 'NextGear Inspection URL', 'inventory-presser' ),
'name' => 'nextgear_inspection_url',
'type' => 'string',
),
array(
- 'label' => __( 'Odometer', 'inventory_presser' ), // Do not filter this one. It causes infinite loops.
+ 'label' => __( 'Odometer', 'inventory-presser' ), // Do not filter this one. It causes infinite loops.
'name' => 'odometer',
'sample' => '102000',
'type' => 'string',
),
array(
- 'label' => __( 'Options', 'inventory_presser' ),
+ 'label' => __( 'Options', 'inventory-presser' ),
'name' => 'options_array',
'sample' => __( 'Heated Seats', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Payment', 'inventory_presser' ),
+ 'label' => __( 'Payment', 'inventory-presser' ),
'name' => 'payment',
'sample' => 200,
'type' => 'number',
),
array(
- 'label' => __( 'Payment Frequency', 'inventory_presser' ),
+ 'label' => __( 'Payment Frequency', 'inventory-presser' ),
'name' => 'payment_frequency',
'sample' => __( 'monthly', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Price', 'inventory_presser' ),
+ 'label' => __( 'Price', 'inventory-presser' ),
'name' => 'price',
'sample' => 13499,
'type' => 'number',
),
array(
- 'label' => __( 'Propulsion Type', 'inventory_presser' ),
+ 'label' => __( 'Propulsion Type', 'inventory-presser' ),
'name' => 'propulsion_type',
'sample' => __( 'Outboard', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Rate', 'inventory_presser' ),
+ 'label' => __( 'Rate', 'inventory-presser' ),
'name' => 'rate',
'sample' => 6.99,
'type' => 'number',
),
array(
- 'label' => __( 'Stock Number', 'inventory_presser' ),
+ 'label' => __( 'Stock Number', 'inventory-presser' ),
'name' => 'stock_number',
'sample' => '147907',
'type' => 'string',
),
array(
- 'label' => __( 'Term', 'inventory_presser' ),
+ 'label' => __( 'Term', 'inventory-presser' ),
'name' => 'term',
'sample' => 72,
'type' => 'integer',
),
array(
- 'label' => __( 'Title Status', 'inventory_presser' ),
+ 'label' => __( 'Title Status', 'inventory-presser' ),
'name' => 'title_status',
'sample' => __( 'Clean', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Transmission', 'inventory_presser' ),
+ 'label' => __( 'Transmission', 'inventory-presser' ),
'name' => 'transmission',
'sample' => __( 'Automatic', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Transmission Speeds', 'inventory_presser' ),
+ 'label' => __( 'Transmission Speeds', 'inventory-presser' ),
'name' => 'transmission_speeds',
'sample' => '4',
'type' => 'string',
),
array(
- 'label' => __( 'Trim Level', 'inventory_presser' ),
+ 'label' => __( 'Trim Level', 'inventory-presser' ),
'name' => 'trim',
'sample' => __( 'SLE-1 Ext. Cab 4WD', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'Type', 'inventory_presser' ),
+ 'label' => __( 'Type', 'inventory-presser' ),
'name' => 'type',
'sample' => __( 'Passenger Car', 'inventory-presser' ),
'type' => 'string',
),
array(
- 'label' => __( 'VIN', 'inventory_presser' ),
+ 'label' => __( 'VIN', 'inventory-presser' ),
'name' => 'vin',
'sample' => '1GTKTCDE1A8147907',
'type' => 'string',
),
array(
- 'label' => __( 'Is Wholesale', 'inventory_presser' ),
+ 'label' => __( 'Is Wholesale', 'inventory-presser' ),
'name' => 'wholesale',
'type' => 'boolean',
),
array(
- 'label' => __( 'Year', 'inventory_presser' ),
+ 'label' => __( 'Year', 'inventory-presser' ),
'name' => 'year',
'sample' => 2010,
'type' => 'integer',
),
array(
- 'label' => __( 'YouTube Video ID', 'inventory_presser' ),
+ 'label' => __( 'YouTube Video ID', 'inventory-presser' ),
'name' => 'youtube',
'sample' => '9pBPgt4VOzM',
'type' => 'string',
),
array(
- 'label' => __( 'YouTube Embed HTML', 'inventory_presser' ),
+ 'label' => __( 'YouTube Embed HTML', 'inventory-presser' ),
'name' => 'youtube_embed',
'sample' => '',
'type' => 'string',
diff --git a/includes/shortcode/class-shortcode-attribute-table.php b/includes/shortcode/class-shortcode-attribute-table.php
index 42081e4..1bef713 100644
--- a/includes/shortcode/class-shortcode-attribute-table.php
+++ b/includes/shortcode/class-shortcode-attribute-table.php
@@ -101,7 +101,7 @@ public function content( $atts ) {
// Exterior Color.
$table_items[] = array(
'member' => 'color',
- 'label' => __( 'Color', 'inventory_presser' ),
+ 'label' => __( 'Color', 'inventory-presser' ),
'value' => invp_get_the_color( $post_ID ),
);
@@ -115,7 +115,7 @@ public function content( $atts ) {
// Interior Color.
$table_items[] = array(
'member' => 'interior_color',
- 'label' => __( 'Interior', 'inventory_presser' ),
+ 'label' => __( 'Interior', 'inventory-presser' ),
'value' => invp_get_the_interior_color( $post_ID ),
);
diff --git a/includes/shortcode/class-shortcode-sort-by.php b/includes/shortcode/class-shortcode-sort-by.php
index 062fc0e..1c14eb2 100644
--- a/includes/shortcode/class-shortcode-sort-by.php
+++ b/includes/shortcode/class-shortcode-sort-by.php
@@ -62,7 +62,7 @@ public function change_price_field_when_sorting( $query ) {
public function content( $atts ) {
$atts = shortcode_atts(
array(
- 'label' => __( 'SORT', 'inventory_presser' ),
+ 'label' => __( 'SORT', 'inventory-presser' ),
),
$atts,
'invp_sort_by'
@@ -89,31 +89,31 @@ public function content( $atts ) {
'invp_sort_dropdown_options',
array(
'make' => array(
- 'ASC' => __( 'Make A-Z', '_dealer' ),
- 'DESC' => __( 'Make Z-A', '_dealer' ),
+ 'ASC' => __( 'Make A-Z', 'inventory-presser' ),
+ 'DESC' => __( 'Make Z-A', 'inventory-presser' ),
),
'price' => array(
- 'ASC' => __( 'Price Low', '_dealer' ),
- 'DESC' => __( 'Price High', '_dealer' ),
+ 'ASC' => __( 'Price Low', 'inventory-presser' ),
+ 'DESC' => __( 'Price High', 'inventory-presser' ),
),
'odometer' => array(
'ASC' => sprintf(
'%s %s',
apply_filters( 'invp_odometer_word', 'Mileage' ),
- __( 'Low', '_dealer' )
+ __( 'Low', 'inventory-presser' )
),
'DESC' => sprintf(
'%s %s',
apply_filters( 'invp_odometer_word', 'Mileage' ),
- __( 'High', '_dealer' )
+ __( 'High', 'inventory-presser' )
),
),
'year' => array(
- 'ASC' => __( 'Year Oldest', '_dealer' ),
- 'DESC' => __( 'Year Newest', '_dealer' ),
+ 'ASC' => __( 'Year Oldest', 'inventory-presser' ),
+ 'DESC' => __( 'Year Newest', 'inventory-presser' ),
),
)
);
@@ -214,8 +214,8 @@ public function remove_price_from_sort_dropdown( $options ) {
*/
public function add_down_payment_to_sort_dropdown( $options ) {
$options['down_payment'] = array(
- 'ASC' => __( 'Down Payment Low', '_dealer' ),
- 'DESC' => __( 'Down Payment High', '_dealer' ),
+ 'ASC' => __( 'Down Payment Low', 'inventory-presser' ),
+ 'DESC' => __( 'Down Payment High', 'inventory-presser' ),
);
return $options;
}
diff --git a/includes/widget/class-widget-carfax.php b/includes/widget/class-widget-carfax.php
index ca3f2c0..8531421 100644
--- a/includes/widget/class-widget-carfax.php
+++ b/includes/widget/class-widget-carfax.php
@@ -106,7 +106,7 @@ public function widget( $args, $instance ) {
$svg = file_get_contents( $path );
printf(
'%s',
- get_post_type_archive_link( INVP::POST_TYPE ),
+ esc_url( get_post_type_archive_link( INVP::POST_TYPE ) ),
$svg
);
} else {
diff --git a/inventory-presser.php b/inventory-presser.php
index d052ba9..6091952 100644
--- a/inventory-presser.php
+++ b/inventory-presser.php
@@ -947,7 +947,7 @@ public function change_archive_title_tags( $title_parts ) {
$title_parts['title'] .= __( 'Vehicles', 'inventory-presser' ) . ' ';
}
- $title_parts['title'] .= __( 'For Sale', 'inventory_presser' );
+ $title_parts['title'] .= __( 'For Sale', 'inventory-presser' );
return $title_parts;
}