Changelog
Format based on Keep a Changelog, versioning follows Semantic Versioning.
2.6.0
Release on GitHubAdded
- Proof of work on the enquiry form, in the format of ALTCHA: the visitor's browser solves a small puzzle while they type, and a submission without the answer is refused. No external service, no cookie, nothing to click. Scripts that post the form directly no longer get through. Can be switched off on the Enquiries tab; the form then works without JavaScript again.
- Spam status for enquiries. An enquiry containing a spam word
(
unsubscribe,seo, … plus the dealer's own), three or more links, or from a blocked sender is stored as spam and mailed to nobody. Spam has its own view in the list and is deleted after 30 days. - Mark as spam / Not spam, per enquiry and as bulk actions. Marking as spam puts the sender on the blocklist — the domain for a company, the address for gmail.com, web.de and the like — and "Not spam" takes them off. The blocklist can be edited on the Enquiries tab.
- Enquiries that were not mailed are counted in a notice on the dashboard, the plugin screen and the enquiry list, which has a view of its own for them.
- Filters
wmds_spam_wordsandwmds_enquiry_spam.
2.5.1
Release on GitHubFixed
- Make logos stay centred in their circle inside page-builder columns.
Themes such as Salient give every image in a WPBakery column an automatic
width, an automatic height and a bottom margin of 15px. Those rules
outranked the plugin's, so in a
[vehicles]list placed in such a column the logo filled the whole circle and sat 7.5px too high. The vehicle overview and the vehicle page were not affected.
2.5.0
Release on GitHubAdded
- Vehicles taken off mobile.de leave the site with the next scheduled run. Each changes-only run asks for the size of the whole inventory in one small request. When the site would not hold the same number, the run reads the full listing and removes what is gone, instead of waiting for the daily full sync.
- The address of a removed vehicle leads to the overview - filtered by its make while that make is in stock - with a note that the vehicle is no longer available, instead of "page not found".
- Similar vehicles at the end of a vehicle page: the same make first, then the closest in price. Can be switched off under Settings → Website.
- Enquiry status: new until marked answered, in the list and in the enquiry. The number of unanswered enquiries is shown next to the menu entry and on the Enquiries tab. Reply by e-mail opens the mail program with the address, a subject naming the vehicle and the message quoted.
- Opel and Hyundai logos.
- A tool to delete pictures of vehicles that are no longer on the site.
Changed
- Five tabs instead of nine: Overview (the new start page with status, sync button, newest enquiries and log entries), Settings, Enquiries, Embedding, Tools & system. Mail delivery and the test mail moved to Enquiries.
- Pictures of a removed vehicle are deleted right away, not when the trash is emptied 30 days later.
- Log entries carry a level, so "problems only" works whatever language the lines are written in.
- Code structure: the plugin file only boots
WMDS_Plugin; every setting is described once inWMDS_Settings::fields(); the log (WMDS_Log) and the pictures (WMDS_Images) left the importer; enquiries are split into the stored records (WMDS_Leads), the form (WMDS_Lead_Form) and the mails (WMDS_Lead_Mail).
Removed
- The separate tabs Connection, Schedule, Integrations, Usage, Status & log, System and About; their content lives in the five tabs above.
2.4.6
Release on GitHubChanged
- The sync log is written in the site's language. Its lines were fixed English text, the only English on an otherwise German screen and in the alert mails. Each line is now translated when it is written; entries from before the update stay as they are until they roll out of the log.
- The kind of run reads "Changes sync" instead of "Incremental sync", in English and in the German translation.
2.4.5
Release on GitHubAdded
- Each enquiry records what became of its mail: handed over to the mailer and for which addresses, or not sent and why. An enquiry on the screen but not in the inbox now says whether it was sent at all.
Changed
- One test mail instead of two. The test button on the Integrations tab sends a single mail to every address the plugin writes to - the enquiry address and, when alerts are on, the alert address - and lists both. The separate test alert on the Status tab is gone. Enquiries and alerts keep their own addresses.
- Texts revised in English and German for a neutral, professional tone throughout the admin screens, the enquiry form and the mails.
Fixed
- The consent notice on a stored enquiry showed its link as raw markup; it is shown as text now. The enquiry text is labelled as the message the visitor wrote rather than with the word the sync log uses.
2.4.4
Release on GitHub2.4.3
Release on GitHubChanged
- Sold vehicles are removed in the first pass of a full sync, as soon as the whole listing has been read, instead of after the last batch. Whether a vehicle is sold is settled by the listing; the batches after it only rewrite text and pictures. On a large backlog the old order kept sold vehicles published for hours next to the new ones already added - 203 published against 167 at mobile.de. The guards are unchanged: a listing cut short or past the pagination cap removes nothing, nor does one with no vehicle at all, nor one that would take more than 30 percent.
2.4.2
Release on GitHubFixed
- A backlog showed as "in sync". Between two passes of a run that still
had vehicles to process nothing holds the lock, and the status read "The
inventory is in sync" with dozens left and sold vehicles not yet removed.
It now reads "Sync in progress" with the number still to go, in the admin,
the admin bar and
wp wmds status. - A backlog moved one batch every fifteen minutes. A pass that leaves
vehicles books the next one in a minute, on the regular event's hook.
WordPress refuses a single event within ten minutes of an identical one,
so whenever the regular run was that close the follow-up was dropped. It
has a hook of its own now,
wmds_import_followup, and the next-run time shown is whichever of the two comes first.
2.4.1
Release on GitHubFixed
- A lost sync schedule now comes back by itself. The sync was only scheduled on activation and when the schedule was saved. WordPress drops a recurring event for good when it comes due in a request that does not know its interval - one in which the plugin is not loaded, during an update for instance - and from then on nothing was imported until someone saved the schedule by hand. The plugin now looks for its events in wp-admin and in WordPress's own cron requests and puts back whichever is missing.
2.4.0
Release on GitHubChanged
- The archive and the detail page are redesigned. Cards with the photo on top, the make's logo beside the title, the key figures as icons and the price at the foot. A detail page with a gallery that has arrows, a counter and the arrow keys, a price box that stays in view with the key figures and the buttons to enquire or call, and the description, the specifications and the features as sections below.
- The filter bar shows search and dropdowns and folds everything else away behind "More filters"; it opens by itself when one of those is in use. Checkboxes and radios are toggles, ranges show their values beside the label.
- The templates bring their own sizes, spacing and controls and undo what a
theme does to content inside them, so they look the same in any theme.
Colours and radii are custom properties on
.wmds-scope. WMDS_Vehicle::facts()returns the key figures keyed by what they are, so a template can put an icon to each.WMDS_Templates::icon()draws them.
Fixed
- Under Salient the footer covered the vehicles: it is revealed from below,
and only Salient's content container pushes it away. The templates open
that container now (
wmds_theme_wrapperfor other themes that need one). - Under Salient 18 the page shrank to the width of its text.
- Picking a sort order did not reload the list in themes that replace selects with select2, which reports the change through jQuery only.
- The first-registration range read "2,015 – 2,025".
2.3.1
Release on GitHubChanged
- The post type is
fahrzeugeagain, and so are the address and the page templates:/fahrzeuge/,single-fahrzeuge.php,archive-fahrzeuge.php. 2.3.0 renamed them tovehicles, which left every vehicle of an existing install under a post type nobody registered. Updating from 2.1 or 2.2 now keeps the vehicles, their addresses and any theme templates.
Added
- The address of the archive and the vehicles can be changed under
Settings → Usage → Address, or with the
wmds_slugfilter. It defaults tofahrzeuge.
2.3.0
Release on GitHubTested end to end against a real WordPress, a real database and a mock of the mobile.de API, in a browser, under a block theme and a classic one. Most of what is listed under Fixed was found that way.
Changed
- The custom post type, rewrite slug and templates are English throughout:
vehicles,/vehicles/,single-vehicles.php,archive-vehicles.phpandvehicle-list.php. There is no migration and no redirect from the earlier names. (Reverted for the post type, the address and the page templates in 2.3.1.) - German shortcode aliases and attributes, the
more_fields()andcustom_taxonomies_terms_links()shims and the unusedWMDS_ICONSconstant are gone. - A full or forced sync is a stored state, not a flag on one pass. It holds until a pass completes, whoever starts the passes in between.
- A failed detail call leaves the vehicle untouched and counts as a failure. It used to write the listing on its own, which emptied the description and every field only the detail call carries.
- Pictures are kept by the hash mobile.de names them with. An ad that gained one photo costs one download instead of fifteen, and nothing is deleted before its replacement is in place.
- Vehicles open in the classic editor, where the importer's fields and its warning are visible.
- The dark palette is opt-in through the class
wmds-dark. It no longer followsprefers-color-scheme, which describes the visitor's system rather than the theme. - The archive shows twelve vehicles a page (
wmds_archive_per_page). - A confirmation mail no longer quotes the visitor's message back to an address nobody verified.
- The meta key for unrepaired damage is
damageUnrepaired, which is what it holds; the duplicateroadworthybesideroadWorthyis gone.
Fixed
- Block themes. The bundled templates called
get_header(), which a block theme answers with a deprecation notice and a bare document — no theme header, no styles, no content width. They now render inside the theme's own header and footer parts. Classic themes get a page width and gutter. - The card picture. The manufacturer logo was sized by the rule meant for the photo and covered it on every card.
- The filter bar, the vehicle list and the vehicle archive died with "call to
undefined method" on every page that rendered them. Splitting the facet
engine in 2.2.0 left
selection()on neither half. - A full sync ended after its first batch: the follow-up passes ran
incrementally, found nothing and stopped, and nothing was ever removed.
wp wmds sync --force --allre-read the same twenty vehicles two hundred times. - Vehicles in the bin counted as inventory, so every sold vehicle was a removal candidate again on each full sync and enough of them tripped the safety guard. One that returns to the feed gets its post back.
- A run that died between writing a vehicle and its pictures left half a gallery that was never retried: the modification date is now written last.
- An aborted run — wrong password, API down — left no record. The status stayed "Up to date" and later blamed the cron setup. It has a status of its own now, and alerts cover it.
- The alert check that runs when a sync finishes always saw the import lock and did nothing. It fires after the lock is released.
- "Sync overdue" was a fixed six hours, so a site that syncs once a day was overdue for eighteen of every twenty-four.
- Fields and features a dealer removed from an ad stayed on the vehicle.
- Past the API's pagination cap, vehicles outside the window looked sold and were removed.
- An update put a vehicle somebody had set to draft back on the site.
- Labels and number formats were stored in the language of whoever pressed "Sync now" instead of the site's.
- A reference key without a label was printed raw:
MERCEDES-BENZ,AUTOMATIC_GEAR. It is shown in readable form. - An ad that does not mention roadworthiness was labelled "Not roadworthy".
- A VAT rate of 20 was printed as 2.
- Range filters: the slider stopped short of the dearest vehicle, and number
fields refused ordinary figures because they carried
min,maxandstep. [vehicles make="BMW" filters="yes"]offered every make with the counts of the whole inventory. An attribute that names a facet is now the starting selection.- The filter form lost the query string of its action, which with plain permalinks sent every search to the front page. It also sent every empty field; only what was chosen is in the address now.
- Facet counts stayed stale on sites with an object cache, and for ten minutes after every sync on all others.
- A standalone
[vehicle-filter]or[vehicle-enquiry]had no styling scope, and nothing setbox-sizing, which pushed fields out of their boxes. - The enquiry form bounced the first submission from any page-cached vehicle page, lost the visitor's text after a validation error on sites with an object cache, and stored whole submissions for requests it refused.
- An archive that fits on one page raised a deprecation in
wp_kses_post(). - The logo index used
GLOB_BRACE, which does not exist on Alpine and is a fatal error there on PHP 8. - Admin: a save without a tab emptied the username; actions that change
something were accepted as links; "Reload from mobile.de" showed its answer
on the wrong screen; a dismissed notice never came back; the progress bar
reported "could not reach WordPress" for every unexpected answer and
"finished" with vehicles pending; the admin bar announced an overdue run as
upcoming;
wp plugin listasked GitHub once per plugin row. - The structure test only checked static properties, which is how a missing method shipped. It checks methods and constants too.
Added
- The integration test renders pages over HTTP — archive, filtered archive, vehicle, shortcodes and blocks, under a block theme and a classic one — and fails on any PHP notice. Everything before went through WP-CLI, which never renders a page.
- Enquiries take part in WordPress's personal data export and erasure.
wmds_client_ipfor sites behind a proxy,wmds_archive_per_page.- 128 strings that had no German translation have one.
- Contact Form 7. A form of the site's own can ask about the vehicle the
visitor is looking at:
[_wmds_vehicle_title],[_wmds_vehicle_price],[_wmds_vehicle_listing]and ten more go straight into the mail template and need no field in the form, and[wmds_vehicle car field:price]puts the same value into the submission where it should travel with it. - A submission sent from a vehicle page is filed under Vehicles → Enquiries like any other, so a mail that is never delivered is not simply gone. The fields are read under whatever names the form uses — the conventional ones first, then by substring, and an address is recognised by being one. Optionally the address the feed carries for that vehicle is added as a recipient of the mail to the dealer, never of the confirmation the visitor receives.
- Mail delivery is named rather than assumed. The Integrations and System tabs
report which mailer plugin is installed — WP Mail SMTP, FluentSMTP, Post
SMTP, Easy WP SMTP, WP Offload SES, Mailgun, Brevo — and, where it can be
read, what it is set to send through. One installed but left on PHP
mail()is called out, because that is the setting that looks solved and is not. - The last delivery failure WordPress reported is kept, with the time it happened, for every message the site sends rather than only ours. It clears itself as soon as the plugin sends one successfully.
- FacetWP, for the sites that were built on it. The meta keys appear in the
facet source list under "mobile.de" with readable labels instead of having
to be typed as
cf/price_raw, and the sort orders the filter bar offers are offered to a FacetWP template too. - A vehicle is re-indexed once the import has finished writing it. FacetWP
indexes on
save_post, the import saves the post first and writes the meta afterwards, so what FacetWP indexed on its own was the state before the update — the stale counts nobody could explain. - An Integrations tab for the three of them, and
wmds_vehicle_storedandwmds_mail_sentfor anything else that needs the same two moments. - Four blocks under mobile.de Sync: Vehicles, Vehicle filter, Vehicle count and Vehicle enquiry. Each renders the matching shortcode.
- A Usage settings tab for blocks, shortcodes and the dashboard widget. The widget Configure panel links to it.
2.2.0
Release on GitHubAdded
-
Filtering of its own, so an inventory can be searched without a second plugin.
[vehicle-filter]renders a bar of components over the fields the feed already fills: dropdowns for make, model and body type, radio buttons for the condition, checkboxes for fuel, transmission and colour, and two-handle sliders for price, mileage, power and first registration. A search box and eight sort orders sit alongside them, and every active filter becomes a chip that removes itself when clicked. -
The vehicle archive reads those filters directly, so the bundled archive template needs no shortcode, and
[vehicles]acceptsfilters="yes"to carry them anywhere else. -
Every option states how many vehicles are behind it, counted against the rest of the selection rather than against the whole inventory — so an option that would leave nothing says so instead of promising a result it cannot keep. The counts and the slider bounds are cached and dropped whenever a vehicle changes.
-
The whole thing works without JavaScript: the bar is a GET form, the sliders fall back to the number fields they mirror, and the filters live in the URL, so a filtered list can be linked, bookmarked and paginated.
-
[vehicle-count]prints how many vehicles the current filters leave. -
[vehicles]learnedcolumns,layout="list",paginationandheading. -
Two filters for themes:
wmds_facetsto add, remove or reorder the components,wmds_facet_sortsfor the sort orders. -
An enquiry form on the vehicle page. It reaches the dealer by e-mail with the vehicle it is about — title, listing number, price and a link back — and answers to the enquirer rather than to the site. Optionally it also copies the address the feed carries for that vehicle, and sends the enquirer a confirmation of what they wrote.
-
Every enquiry is filed under Vehicles → Enquiries as well, so one that fails to be delivered is not simply gone. What was asked, by whom, about which vehicle and under which privacy notice is on the record.
-
Three guards a person never notices: a honeypot field, a form that was submitted faster than anyone could type it, and a limit of five enquiries per visitor per hour. A submission that fails validation comes back with what was typed still in the fields.
-
A Enquiries tab with the recipients, the copy to the seller, the confirmation, whether to keep a record, and the privacy notice the visitor has to agree to.
-
[vehicle-enquiry]puts the form anywhere else; a filterwmds_enquiry_recipientshas the last word on where an enquiry goes. -
Structured data. A vehicle page carries a complete
Carnode in JSON-LD — make as a brand, model, body type, colour, fuel, transmission, doors, seats, previous owners, first registration as a date, CO₂, engine power and displacement as quantities with their unit codes, and anOfferwith the price, the currency, the availability and the dealer. The archive carries anItemListof what is on the page. What the feed does not state is left out rather than guessed. -
Open Graph and Twitter cards, so a link to a vehicle shared anywhere shows its photo, its title and its price instead of the site's name. They are suppressed when Yoast, Rank Math, SEOPress, AIOSEO or The SEO Framework is active, because two sets of
og:tags on one page are worse than none. -
condition_keyis stored alongside the localised condition label, so "new" and "used" can be told apart without reading a translated string. A vehicle imported before this falls back to its mileage. -
Three filters:
wmds_jsonld,wmds_social_metaandwmds_seo_output. -
Notification by e-mail when the sync needs attention. A failed or an overdue run is reported once and then not again until a cooldown has passed — a sync that fails every fifteen minutes should produce one mail, not ninety-six a day. A different problem, and the recovery, are sent straight away: "it is fixed" is the one message nobody wants to wait six hours for.
-
A test alert, so an installation that cannot send mail at all fails on the settings screen rather than on the day it matters.
-
An optional weekly summary that goes out even when nothing is wrong, so silence stays evidence rather than an assumption.
-
A
wmds_run_finishedaction, fired with the statistics of a completed run.
Changed
- The detail page no longer carries microdata. It described the same vehicle
a second time and less completely than the JSON-LD now does, and a price
marked up as
itempropon formatted text is a worse answer than the number in theOffer. - The bundled templates were reworked. Colour, spacing and radii come from
custom properties on
.wmds-scope, which a theme can override in one place instead of selector by selector; the dark variant followsprefers-color-scheme. Cards carry badges for condition, availability and warnings along with the manufacturer logo, the summary on the detail page stays in view while the specifications scroll past, and the gallery swaps the main image in place rather than leaving the page — with every thumbnail still a plain link to the full image when JavaScript is off. - The gallery moved into
parts/vehicle-gallery.php, so a theme can restyle it without copying the detail page around it.
Changed
- Classes load themselves.
WMDS_Autoloaderfinds a class in the file named after it, so the plugin header no longer carries a list of twenty-fiverequire_oncelines to keep in step, and adding a class means adding a file. Four files stay required outright because they do something when they load —class-wmds-compat.phpholds functions, and the logo, sticker and WP-CLI files each register something at file level. A file with a side effect cannot be loaded lazily: nothing would mentionWMDS_Logoson a page that only writes[vehicle-logo], so the shortcode would never exist. Two tests hold that line. - The facet engine was one class of 935 lines doing four jobs. It is four
now:
WMDS_Facet_Requestreads a request and writes it back out as a URL,WMDS_Facet_Queryturns a selection intoWP_Queryarguments,WMDS_Facet_Storeowns the database and the cache, andWMDS_Facetsstays the one class templates and themes address. Every existing call site and both filters are untouched. - The settings screen was one class of 1686 lines holding the menu, the
request handler, three AJAX endpoints, the notice store, the shared markup
helpers and seven tab renderers. It is twelve classes now, the largest 393
lines:
WMDS_Adminroutes,WMDS_Admin_Actionshandles the request,WMDS_Admin_Ajax,WMDS_Admin_NoticesandWMDS_Admin_Uihold what their names say, and each tab is a class of its own underincludes/tabs/. Nothing about the screen changed — the hook names, the actions, the fields and the markup are the same, and the 51 checks from the previous release say so. - Four support classes now hold what six others had each grown their own
copy of.
WMDS_Strmeasures, cuts and scrubs multibyte-safely,WMDS_Datereads the shapes a date arrives in,WMDS_Mailturns a settings field into a recipient list and sends plain text, andWMDS_Numreads a number. The callers lost 146 lines and gained 34. WMDS_Numkeeps two readings of a number apart, because they were never the same one. A person typing12.500into a price filter means twelve and a half thousand; the API sending12.500means twelve and a half. The two rules lived in two classes that looked interchangeable and were not, so they are now named for what they read:from_input()andfrom_feed().- A name typed into the enquiry form can no longer put a second header into
the mail it produces. The escaping existed before; it is now the only way
a
Reply-Togets built, so the next mail this plugin sends cannot forget it.
Fixed
- Saving one settings tab emptied the settings the other tabs own. Each tab is a form of its own and posts only its own fields, but the handler read every setting out of whatever was submitted — so saving the schedule cleared the username and the seller ID, and saving the connection reset the interval to fifteen minutes. Each tab saves its own fields now.
2.1.1
Release on GitHubFixed
- The German translation never applied — not on the front end, not in the
admin.
bin/po2mo.phpwrote the compiled catalogue with a hash-table address of zero, and WordPress derives the length of the translation table fromhash_addr - translations_addr. That subtraction came out negative, the file was rejected, and every string fell back to its English source. The address now points at the end of the translation table, where an empty hash table would begin. Every release since the translation was added carried this. - Strings with a context were compiled without one, so
_x()could never find them.msgctxtis read now and stored under thecontext \4 msgidkey gettext expects.
Added
tests/test-i18n.phpreads the compiled catalogue the way WordPress does, including the two table-length checks that made the file unreadable, and verifies context and both plural forms resolve. It also fails when the.mohas fallen behind its.po.
2.1.0
Release on GitHubAdded
- A "System" tab that checks what the plugin needs from the server: PHP and WordPress version, the extensions it uses, GD or Imagick for the images, execution time and memory limit, a writable uploads folder, permalinks and mod_rewrite, WP-Cron, and whether outbound requests to mobile.de and GitHub are allowed at all. Each entry says what it found and what to do about it.
- An "About" tab with the installed version, the vehicles published, the post type and shortcodes the plugin registers, and links to the source, the issue tracker and the API documentation.
Fixed
- A sync run was killed by PHP's execution limit. A batch is twenty vehicles with up to fifteen images each, every one of them downloaded and resized, which does not fit into the sixty seconds a lot of hosting allows — the run died in the middle of resizing an image and took the rest of that WP-Cron run with it. A pass now lifts the limit where the host permits it and, where it does not, stops on its own clock with time to spare and leaves the rest pending for the next run.
- A run killed by a fatal error left its lock behind, so every run for the next fifteen minutes gave up with "an import is already running". The lock is released on shutdown now and a retry is queued for a minute later.
- A vehicle lost its images when the run was killed while they were being imported: the old ones were deleted before the first new one arrived. The existing gallery is now kept until at least one new image is in, so an interrupted import leaves the vehicle as it was rather than empty.
- Vehicles could come out as changed on every single run. The modification date was stored as the detail call worded it while the sync plan compares it against the search result, and the two need not word the same moment the same way. The date the plan compares against is the one stored.
- Updates are written into WordPress's update transient as well. The
Update URIheader is the documented route, but core only evaluates it after its own call to api.wordpress.org has succeeded, and takes every self-hosted update down with it when that call fails.
2.0.1
Release on GitHubFixed
- 2.0.0 never showed up as an update. The lookup against GitHub was cached for
six hours and nothing could get past that cache — not the plugins screen, not
"Check again" on Dashboard → Updates. A site that had looked while 1.0.2 was
the newest release kept being told 1.0.2 was the newest release, and 2.0.0
came out under two hours later. The cache lives an hour now, is dropped as
soon as the installed version changes, and "Check again", WP-CLI and the new
wmds_force_update_checkfilter go straight past it. - The update check told WordPress the PHP version a release needs but not the WordPress version, so the compatibility line on the updates screen had nothing to go on.
Added
- "Check for updates" next to "Settings" on the plugins screen. It discards both caches and takes you to the updates screen with a forced check.
- A failed check states its reason under the plugin on the plugins screen. A used-up GitHub rate limit, a blocked outbound request and a release without a ZIP were all indistinguishable from "you are up to date".
2.0.0
Release on GitHubChanged
- The shortcodes are English:
[vehicles]and[vehicle-logo]. The German names stay registered as aliases, so no page content has to be touched. [vehicles]filters on any meta key. Attributes that are not one ofposts_per_page,orderby,orderandmeta_keybecome a meta query, so[vehicles fuel="Diesel" interior_type="Teilleder"]works without the plugin knowing those fields. The five German filter attributes still map onto their English keys.- Equipment is no longer a fixed list of 28 features. Every boolean the feed
sets is taken as a feature and stored under the upper-case form of its field
name — the naming the feed itself uses, which
alloyWheelsin the fixtures confirms. Curated labels stay for translation; anything unknown gets a readable fallback.feature_keysrecords what a vehicle actually carries.
Fixed
- The shortcode rendered as an unstyled list on ordinary pages. The stylesheet
was enqueued for
is_singular( 'fahrzeuge' )and the post type archive only, and a page carrying the shortcode is neither. The decision now follows the templates: a post whose content contains the shortcode counts, and the shortcode enqueues the file when it runs, which also covers a widget, a page builder or a template part the main query knows nothing about. - "Test the connection" never turned green on the getting-started checklist. It read the last sync run, and a connection test recorded nothing — so the step only completed once an import had gone through. The outcome is stored now.
- An import cut short by a PHP time limit left its lock behind, and every run for the next fifteen minutes aborted with "An import is already running". The lock is refreshed as the run works, so a live import holds it and a dead one does not, and Tools offers to release it with the age of the run stated.
- Three meta keys never matched what the templates of the earlier solution
read:
cubicCapacity,roadworthyandseller_company_name. They are written alongside the existing names.
Added
- Vehicle class, climatisation, airbag, country version, axles, height, length and the parking assistants, plus the seller's ID, street, postcode, city, country, homepage and the date they started selling. All of it was in the feed and none of it was stored.
- A template hierarchy. All templates resolve through
WMDS_Templates::locate(), which looks inwp-mobile-de-sync/in the stylesheet directory, then the template directory, then the theme root — the place an earlier solution expectedmob_vehicle-list.php, which therefore keeps working — and falls back to the bundled file. The newwmds_templatefilter has the last word. templates/parts/vehicle-card.php. The archive and the shortcode rendered the same card twice, in two copies that had already begun to drift.- The three German emission stickers, as SVG under
assets/emission-stickers/, named after the colour the feed reports.[emission-sticker]renders one,WMDS_Stickers::url()and$vehicle->emission_sticker_url()resolve it for a template, and the bundled detail page shows it. Templates carried over from an earlier solution loaded these images out of that plugin's directory and lost them when it went.emissionSticker_keykeeps the raw key beside the resolved label, because a label reads differently in every language.
Upgrading
- The new fields are written at import time. One full sync fills them in:
wp wmds sync --full --all.
1.0.2
Release on GitHubAdded
- An icon, in mobile.de's colours with the plugin's own mark. The updates
screen showed the grey placeholder plug, because
update-core.phpreads the icon from the update response and ours carried none.WMDS_Updatersupplies it for the update list and for the details modal alike.
Changed
- Tested up to WordPress 7.0, in
readme.txtand in the release notes the updater reads that value from. The end-to-end suite installs the current WordPress on every run, so the claim is the one CI has been checking.
1.0.1
Release on GitHubFixed
- Every incremental run failed with HTTP 400.
add_query_arg()leaves the values it adds unencoded, so the+of the timezone offset reached mobile.de as a space andmodificationTime.minwas rejected as atypeMismatch. The search URL is now built with each value encoded, and the test harness no longer encodes on the client's behalf: the stub and the mock server decode the way a real server does, so the same mistake fails in CI instead of in production. - No logo for Volkswagen. The feed calls the make
VW, the bundled file isVolkswagen.png, and the lookup matched neither against the other. Equivalent names now resolve to the same file, in both directions and for uploaded logos too.
Changed
- Dates and times follow the site's own date and time format instead of the
storage format
2026-07-31 11:38:12. The last run reads as "12 mins ago" with the exact time in the tooltip; the log keeps its precise stamp there. Both are<time>elements with a machine-readable attribute. - "Once a day" joins the sync schedule, for inventories that change rarely and hosts that would rather not run a job every 15 minutes.
- The English strings call the watermark a change marker, which is what the German catalogue has been calling it all along. The stored option keeps its name.
- README badges for release, downloads, CI, requirements and licence.
1.0.0
Release on GitHubFirst release.
Added
- A German translation ships with the plugin. Until now a plugin written for
German dealerships presented itself in English on every screen.
bin/po2mo.phpcompiles the catalogue, because the project has no build step andmsgfmtis not installed everywhere. - An admin bar item carries the sync state and the inventory size — on the front end as well, which is where a stale inventory is actually noticed. Its menu holds the last result, the time to the next run, "Sync now", and on a vehicle page a link to the source ad plus a reload for that one vehicle.
- A dashboard widget with the newest vehicles, configurable in count and sort order, plus an entry in "At a Glance".
- The vehicle list shows photo, make and model, price, mileage, first registration and the ad ID. Price, mileage and first registration sort; vehicles missing the sorted-on value stay in the list rather than dropping out of it. A filter by make and the row actions "Reload from mobile.de" and "View on mobile.de" come with it.
- The edit form states that the importer owns the record, and a meta box shows the ad ID, the modification date, the photo count and a reload button. The importer used to overwrite manual edits without ever having said so.
- A full sync can be forced from the settings screen. The capability existed —
wmds_force_full_syncdiscards the watermark — but hung off the daily cron event only, with no way to reach it. - A notice on every admin screen when the sync needs attention, dismissible per user and re-armed when the state changes to something else. A broken sync was previously invisible from anywhere but its own settings page.
- A "Settings" link on the plugins screen, a checklist that carries a fresh install through setup, a log that filters down to problems and can be downloaded or cleared, and a button that deletes the stored credentials.
WMDS_Importer::refresh()re-reads a single ad. Unlike a scheduled run it fails loudly: a manual repair that silently writes a half-mapped record would be worse than one that does nothing.
Changed
- The settings screen is split into Connection, Schedule, Status & log and Tools, with the health state above the tabs.
- Actions on the settings screen now go through
admin-post.phpand leave through a redirect. Previously every action hung offadmin_initon a plain POST, so reloading the page after "Sync now" ran the sync again. - "Test connection" and "Sync now" run over AJAX. The sync drives one batch per request and reports real progress, instead of holding a single request open across the whole inventory and hoping it finishes before the PHP timeout.
- Seller ID and dealer name are an explicit either/or now, and saving clears the unused one. Two equal-looking fields, only one of which the client ever sends, invited exactly the wrong guess.
- The label language is a list of the languages the reference data actually comes in, not a free-text field.
- An integration test that runs the plugin inside a real WordPress on a real
database, driven through WP-CLI, with a local mock server answering as
mobile.de. It covers what stubs cannot: that the custom post type, the media
sideload, the featured image, the transient cache, the trash, the health
state, the German catalogue and the uninstall behave the way the plugin
claims. The plugin is untouched by it — the harness swaps the transport at
pre_http_request, so the samewp_remote_get()anddownload_url()calls run, over real HTTP, against fixtures instead of a dealer's live inventory. CI runs it on every push.
Fixed
- A partial image failure was recorded as a complete import. As soon as one image of a vehicle arrived, the hashes of all of them were stored, so a vehicle that lost image 7 of 15 to a timeout never got it back — the run reported success and the gap became permanent. Only the images that actually landed are recorded now, which leaves the difference visible and repairs it on the next run.
- A vehicle's images stayed in the media library forever once the vehicle was gone. Deleting a vehicle for good now deletes its images with it. Trashing deliberately does not: a vehicle in the trash can be restored, and restoring it has to bring the gallery back — that recovery window is why removal uses the trash in the first place. WordPress empties the trash on its own schedule, so the images do go eventually.
Changed
- The per-vehicle image cap is applied before the hash comparison rather than inside the import. With more images in the feed than the cap allows, the stored list would otherwise differ from the feed on every run and every run would re-download the whole gallery.
Import
- Fetches a dealer's inventory through the mobile.de Search API in the current
data format (New JSON) and stores it in the
fahrzeugecustom post type. - Addressing through the documented
customerIdparameter with the numeric seller ID. The undocumenteddealer=remains available as a fallback. - Incremental sync via
modificationTime.min: a run fetches only what changed. The per-ad detail call happens only for new and changed vehicles, because the description and the seller's phone numbers exist nowhere else. - A run processes at most 20 vehicles and reschedules itself, which keeps the runtime independent of the PHP timeout.
- One database query for the whole inventory instead of one per vehicle.
- Meta fields are written only on an actual change, detected via a content fingerprint.
- Swapped photos are detected through the image checksums in the feed.
- Labels such as the transmission type come from mobile.de's reference data and are cached for 30 days.
Removal safety
Three independent guards, because an import that removes vehicles can wipe out half a live inventory and still report success:
- Nothing is removed after a partial pass.
- A run that saw no vehicle at all removes nothing — the case that occurs with a wrong seller ID, where the API answers HTTP 200 with an empty result rather than an error.
- More than 30 percent at once aborts with a reason. Below that sits an absolute floor of three vehicles, so small inventories are not permanently blocked.
Removed vehicles go to the trash. An aborted API call ends the run without removing anything.
Front end
- Templates for the detail, archive and list views: no CSS framework, using
get_header()/get_footer(), escaped throughout and annotated with schema.org. A theme's own templates take precedence. WMDS_Vehicleas a read model over post meta, supplying formatted values and handling the special cases: the inspection falls back tonewHuAu, and a missing VAT rate means margin-scheme taxation rather than "not stated".- Manufacturer logos plus the
[fahrzeug-logo]shortcode. Files underuploads/wmds-logos/take precedence, so a missing make can be added without a plugin update. - A restrained stylesheet, loaded only on vehicle pages and switchable via the
wmds_enqueue_stylesfilter.
Operations
- WP-CLI:
wp wmds sync|status|test|flush-cache. - A lock against overlapping runs.
- A log of the last 50 messages in the database, visible on the settings screen.
- A notice on the settings screen when the schedule is not being triggered.
- A warning when an inventory exceeds the 2000 vehicles the API hands out across paginated pages.
- Updates through GitHub releases using the WordPress
update_plugins_*filter, with no third-party update library. uninstall.phpremoves the plugin's data and leaves the vehicles in place.
Internationalisation
Source strings are English and translatable through the wp-mobile-de-sync
text domain. Reference-data labels follow the configured language, defaulting
to the site language. Numbers are formatted through number_format_i18n().
Labels are resolved at import time and stored in post meta, so a language change takes effect after the next full sync.
Development
- Tests run without WordPress, PHPUnit or Composer. The import run is covered end to end against a WordPress stubbed in process memory.
- Fixtures are anonymised but structurally real API responses.
- CI checks syntax and tests on PHP 7.0, 7.4 and 8.3, runs phpcs against the WordPress standards, and fails the build on credentials in the tree.