Wróć do Cartdock Prov1.0.13 (17 wydań)

Historia zmian Cartdock Pro

Historia zmian dostępnej wtyczki Cartdock Pro: aktualizacje, poprawki i rozwój funkcji dla WooCommerce.

v1.0.13
  • Renamed to Cartdock Pro, following the free plugin, and it now declares the free plugin under its new wordpress.org slug, cartdock. Settings and licence are unchanged.
v1.0.12
  • The plugin description, the readme and the admin strings still named the free plugin by its old name in places the rename missed. They now all read Cartdock.
  • The Polish translation is complete again. Regenerating the template exposed strings that had never been translated, because the old template did not contain them at all.
v1.0.11
  • Renamed to Ankro Pro. The free plugin it extends was renamed to Ankro for the WordPress.org directory, which asks a plugin name to lead with a distinctive coined word rather than a generic one, and the paid add-on now carries the same name. The text domain, the stored options and every hook are unchanged, so nothing on an existing install moves.
v1.0.10
  • Fixed: a copy of the pre-1.0.8 counts that stopped part of the way through was recorded as done. The version was stamped whether or not the copy finished, and that stamp is the first thing every later request checks, so a refused chunk was never retried and the counts in it were lost rather than repeated. Driven against a real database with the second chunk of 1510 hits refused: 1000 counted and the migration called applied, where the next request now finishes the copy and lands on 1510. A shop whose copy failed under 1.0.9 gets the rest of its counts on the first load after this update, the old option was kept.
v1.0.9
  • Fixed: the copy of the counts recorded before 1.0.8 added the stored figure to whatever the row already held, so running the copy twice counted everything twice. Two requests arriving together both ran it, and a copy that failed part of the way through kept the option and ran again on the next request. Either way every count from before the update was multiplied, permanently, with no way to tell afterwards what the true figure had been. Each row is now written as the larger of the stored value and the copied one, which is what makes repeating the copy free. Measured in the harness: a copy interrupted after 1000 of 1510 hits reached 2510 on the retry and 9060 with six copies running at once, and now lands on 1510 in both cases.
  • Fixed: the statistics table was created with dbDelta(), which lives in the wp-admin include stack. The first request after the update is usually a storefront one, and that stack reads the locale and loads the default translations at plugins_loaded, before init, on a request that asked for neither. Measured on WordPress 7.1 with the site language set to German, on a front page request: 1091 files included at the point of the call, 1124 after it, 33 of them pulled in by the include alone. It also leaves the $locale global filled in before init, so every later get_locale() in that request returns that global instead of reading the site language option. The table is now created with a plain CREATE TABLE IF NOT EXISTS, on the same requests as before but without reaching into wp-admin.
v1.0.8
  • Fixed: every bar event rewrote the whole statistics option. Each beacon read one option holding all counts for all products, rebuilt it in PHP and wrote it back, so two visitors arriving in the same moment overwrote each other's increment, and nothing capped how large that option could grow. Counts now live in their own table, one row per product, day and metric, and each event is a single atomic increment of that row.
  • Fixed: analytics beacons sent with navigator.sendBeacon were rejected with 403. The handler read the nonce only from the X-WP-Nonce header, which a beacon cannot set, so in every browser that supports sendBeacon, which is every current one, nothing was recorded. Expect the numbers to start rising after this update, from real traffic that was being dropped.
  • Changed: an event is recorded only for an id that really is a product, and only while the sticky bar is enabled. Both were accepted before, so a forged request could open a row for any id.
  • Changed: the product table on WooCommerce > Cartdock Analytics lists the 100 most viewed products instead of every product ever seen. The totals above it still count everything.
  • Changed: the analytics screen states how long daily counts are kept. The retention period is unchanged at 90 days.
  • Upgrade: counts recorded by 1.0.7 and earlier are copied into the new table on the first load after the update, for the days inside the 90 day retention window. Older days are dropped, as they already were on every write. Deleting the plugin now removes the new table as well.
v1.0.7
  • Fixed: arrow glyphs in the admin menu paths, and in the strings handed to translators. An arrow inside a translatable string makes the glyph every translator's problem and changes the layout in any locale that drops it.
v1.0.6
  • The translation template was regenerated. 45 strings added to the plugin since the template was last built were missing from it, so no translator could reach them in any language, and 2 strings the plugin no longer uses have been dropped. Nothing you see changes; what a translator can see does.
v1.0.5
  • Fixed: the plugin title label on Freemius notices rendered white on a background measuring 2.37:1, where WCAG AA wants 4.5:1 for text that size. The label now uses the same grey WordPress core uses, at 4.61:1.
  • Fixed: the public key constant was defined inside the guard for the product id constant, so it would have gone undefined if anything had defined the id first. Harmless today, wrong the moment it is not.
v1.0.4
  • Fix: deleting the plugin now removes its options and transients instead of leaving them in the database, on every site of a network. The free plugin's own settings are untouched.
v1.0.2
  • Added bundled Polish, German and Spanish translations for the plugin interface.
v1.0.1
  • First stable release.
v0.4.1
  • Maintenance: plugin slug renamed to plogins-anchor-pro for consistency across the Plogins family. No functional changes.
v0.4.0
  • Conversion analytics: views, taps and add-to-cart counts per product on WooCommerce > Cartdock Analytics (`BarTracker` REST beacon).
v0.3.0
  • Campaign scheduling: show the sticky bar only inside a start/end window on WooCommerce > Cartdock (`BarScheduling`, hooks `anchor/bar_visible`).
v0.2.0
  • Placement rules: include or exclude the sticky bar by product ID and product category (`PlacementRules`, hooks `anchor/bar_visible`).
  • Requires Cartdock FREE 0.1.1 or later.
v0.1.0
  • Initial release: custom bar button colour and label. Boots via the anchor/booted hook.