Here is a quick shortcut I used to combine a series of comma separated values into a single list of unique entries. In my case I was trying to get a unique list of tags that came from several different lists of tags. If list A had “apples, oranges, bananas” and list b had “apples,grapes,watermelons” I wanted to get “apples, bananas,grapes,oranges,watermelons” back.
There is the shortcut I used:
Paste each comma-separated list into a file named “x”, separate lines are OK.
Run this Linux command on the file to create a file named “Y” that has my sorted unique list of tags:
# tr ‘,’ ‘\n’ < x | sort -u | tr ‘\n’ ‘,’ > y
This is a quick and efficient way to sort comma-separated lists on Linux, which likely includes OS/X as well.
Store Locator Plus 4.2.41 focuses on speeding up the performance of location import processing for comma separated files of 50,000 locations or more.
CSV Import in Add Mode
Some of the updates include reduce execution time when setting the CSV import duplicates processing to ‘add’ mode. Add mode is useful when importing to a “clean” list of locations. This mode eliminated extra processing when you know you are not updating existing locations during a Pro Pack CSV Import.
Improved Import Error Reporting
The CSV Import processing system has been updated to provide better reporting when CSV imports of location data via Pro Pack or category data via Tagalong fails the import process. Various file processing issues as well as memory restriction errors are reported with details including hints as to how to manage the issue.
Memory consumption is reduced on per-process system calls. This reduction can be significant on systems that are running large location lists, saving up to 1k per location processing request.
Dropped slpplus.initOptions() support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Dropped slpplus.is_Extended() support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Dropped slplus.register_addon support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Dropped slplus.versionCheck() support. Some older SLP add ons may be deactivated and require an upgrade to a newer version.
Added query_slug to slp_location_filters_for_AJAX filter. Default slug is 'standard_location_search'.
Added query_slug to slp_location_having_filters_for_AJAX filter. Default slug is 'standard_location_search'.
Added query_slug to slp_ajaxsql_fullquery filter. Default slug is 'standard_location_search'.
Added query_slug to slp_ajaxsql_queryparams filter. Default slug is 'standard_location_search'.
Added query_slug to slp_ajaxsql_results filter. Default slug is 'standard_location_search'.
Add slp_ajax_execute_location_query_start and slp_ajax_execute_location_query_end actions for AJAX query handling.
Updated symlink path testing.
Add layout support for 3rd party buttons for UML/GFI add on.
Improved WPML support.
The Google Map now responds to changes in the WPML selected language on the user interface.
Drop find label button support for legacy Enhanced Search versions prior to 4.3. Will need to upgrade ES to 4.4+ or use MySLP.
Drop defunct getWPMLText() function, may require legacy add ons to be updated to latest version.
Drop the unused slp_generalsettings_modify_adminpanel filter.
Drop the slplus->addons property. Make break older legacy add on packs. Upgrade the add on packs to version 4.5+.
Drop CSVImport base class. Pro Add On and Tagalong Add On will need to be updated to version 4.5.07.
Search Form Radius selector label is assigned a class of 'empty' or 'text length_<#>' where <#> is the number of characters in the radius label for easier CSS formatting.
Search Form Input boxes now have a class assigned based on whether or not the label is empty. label_empty and label_text make it easier to change the input width based on whether or not a label is present.
Updated Twenty Sixteen Plugin Style to Rev 05. Leverages the new label and input CSS rules.
Restore Store Pages to sidebar menu when active.
Add on framework no longer preloads csl-script (slp.js) when loading the userinterface.js files.
Add a slp_radius_selections filter for Experience add on to augment radius selector drop down with a first entry.
Reduced overhead on admin pages.
Extended Data display on add/edit locations addressed for older extended data manager installations.
Fix blog switching error on multisite installs using Network Activate.
Note: Network Activated Multisite installs using paid add ons should have an active Premier Subscription for proper multisite licensing.
Turn off SSL validation of peers on the update server. If your server's SSL cert is expired/invalid the version check on add on packs will now run anyway.
Save changed to default country conversion to the CCTLD as the slug.
Delete location fully on first attempt when Pages add on is active.
Do not run upgrade of settings overhead when deactivating the plugin.
Multisite installs with Network Activation on the SLPLUS plugin properly migrates all subsite options to the latest release.
Add support for add on pack Apply To All actions
Fix private property warning on upgrade.
New filter slp_extended_data_update to be triggered any time extended location data is being updated.
Eliminate duplicate data save call when updating locations with extended data.
Add a popup notice when the reset manage locations button finishes processing.
Locations / Manage display drop down now warns if you select more than 500 locations at one time.
Locations / Manage display is now an instant-action drop down.
SLP records the active version of jQuery running on the UI on the page with the [slplus] shortcode.
Manage Locations Apply To All button allows actions to run on all locations for addons that are SLP 4.5 aware.
No country index 'unitedstates' on Country Manager when installing in some languages.
Fix Italy CCTLD to 'it' was incorrectly set to 'il'.
If the language translation file for the 'km' setting was not done consistently the km distance calculations would be incorrect.
The 'miles' and 'km' setting for the search form radius setting has moved to the Text Manager class for consistency. Non-English installs will need to update their translations at the MySLP site.
If you create a new translation set for Store Locator Plus for the following languages, please notify email@example.com: de_DE, es_ES, fr_FR, it_IT, ja_JP, lt_LT, pt_BR, sr_RS, zh_CN, zh_TW.
The PHP Maximum Execution time setting, included in Store Locator Plus version 4.2.30, is used for bulk import processing as well as volume AJAX queries such as bulk geocoding of locations. If the hosting provider allows for the execution time to be specified by a WordPress application, the new setting can be used to override the typical default of 30-seconds of maximum processing time before the web application terminates. This can be especially useful for large lists of locations where processing 10,000+ locations can take more than 30 seconds on a low-end server. Some hosting companies, especially those on shared hosting plans, do not allow for the maximum PHP execution time to be managed from within WordPress. Contact your hosting company for details.
The latest version of the Pro Pack now uses the Store Locator Plus 4.2 framework for AJAX requests. This increases security and stability while performing background AJAX functions such as report downloads with the Pro Pack.
Pro Pack Changelog
Search Pages & Posts
Like what you are reading? Consider making a donation today. Most people donate $5 to $25, but any amount is appreciated!
Or send something on my Amazon Wish List!