Releases: ControlZetaDigital/polylang-tcopro
Releases · ControlZetaDigital/polylang-tcopro
Release list
1.5.1
1.5.1
Fixed
- Components (cs_global_block) now appear in the builder document list across all language views.
- "Copy from" dropdown in the builder translate popup no longer appears empty for CS layout types not yet linked in Polylang.
1.5.0
1.5.0
Added
- Full Cornerstone builder language UI support, replicating CS's native WPML integration for Polylang sites.
- Language picker in the builder (language switcher and document list filter).
- Create translations of pages, posts and CS layouts directly from the builder UI.
- CS layout types (headers, footers, archives, singles) visible in all language views in the builder document list.
- Global block (Component) language resolution: Components resolve to their Polylang translation for the current language.
- WooCommerce Archive layout builder preview now loads the correct language shop page.
- Preview frame fix for Polylang directory mode: prevents canonical redirect from breaking the builder preview.
- App URL fix for directory mode: bypasses Polylang's home_url() filter so the builder URL is always reachable.
- Polylang Pro compatibility: excludes language assignment meta from Pro's copy/sync to prevent cross-language overwrites.
1.4.0
1.4.0
Added
- WooCommerce Single and Archive layout support
(cs_layout_single_wc / cs_layout_archive_wc via cs_match_layout-single-wc_assignment
and cs_match_layout-archive-wc_assignment).
1.3.1
1.3.1
Auto-updates from GitHub
- From this version, the plugin integrates plugin-update-checker v5.6. Update notifications will appear directly in the WordPress admin panel whenever a new release is published on this repository — no manual download needed.
1.3.0
1.3.0
Refactor
- Replace WordPress Plugin Boilerplate with namespaced PSR-4 classes.
- Add
spl_autoload_registerautoloader forPolylangTcoPro\namespace. - Extract dependency checks and admin notices to
Bootstrapclass. - Move integration logic, admin UI and plugin bootstrap to
src/. - Rename and reorganize admin views, remove boilerplate docblocks.
Improved
- Optimize DB query in
getItems()to select only required columns. - Add null check for
json_decode()result ingetItems(). - Use spaceship operator in priority sorting.
- Deduplicate admin hook string via class constant.
- Add
defined('WPINC')guard to all view partials.
1.2.0
1.2.0
Security
- Fix SQL injection vulnerability in
get_items()using$wpdb->prepare(). - Add
current_user_can()check and sanitize POST input inupdate(). - Escape all output in admin views to prevent XSS.
Fixed
- Sync internal version constant with plugin header.
- Replace always-true
isset($_POST)with!empty($_POST). - Remove deprecated
&$thissyntax. - Remove dead AJAX hook registration.
Cleanup
- Implement post_meta cleanup on plugin uninstall.
- Remove unused options property and
settings()method.
1.1.5
1.1.5
Fixed
- Fixed Pro theme detection when using child themes.
- Improved activation notice with diagnostic information.
1.1.4
1.1.4
Fixed
- Fixed SQL query to exclude trashed records by enforcing
post_status = tco-data.
1.1.3
1.1.3
Fixed
- Fixed plugin header version (1.1.2 incorrectly showed as 1.1.1).
- Update readmes and tested up to 6.9
No functional changes.
v1.1.2 stable
v1.1.2 stable release
Changelog
- Fix: The use of 'prepare' in the SQL query within 'get_items' has been discontinued as placeholders were not being used.
- Added a box in the sidebar with the link to the support page on GitHub.