Files
wp-multi-city/CHANGELOG.md
T
2026-05-19 02:23:52 +05:00

1.7 KiB
Raw Permalink Blame History

Changelog

All notable changes to wp-multi-city. Format follows Keep a Changelog.

[1.1.0] — 2026-05-19

Changed

  • BREAKING (internal): Redirect::handle() переписан на washanyanya-style. Триггер: template_redirect @ priority 1 + is_404(). Reverse slug lookup: get_posts(name=$slug, post_type=page, status=[private,publish]), затем match в page_unic[i].page_new. 301 на /{city}/{orig-canonical-path}/.
  • Удалена старая семантика (триггер по $post->ID === page_new).
  • Hook переехал с wp priority 9998 на template_redirect priority 1.

Closes Gitea issue #1.

[1.0.1] — 2026-05-17

Added

  • Процедурный wrapper wpmc_main_town_slug() (документирован в README, отсутствовал в коде).

Fixed

  • WP 6.7+ notice _load_textdomain_just_in_time: убраны __() из labels CPT/таксономии/ACF field group.
  • ACF acf_get_value "called too early": did_action('acf/init') guard в 5 Helpers методах.

[1.0.0] — 2026-05-17

Added

  • Первый релиз. MVP-ядро завершено (S1–S7 эпика cp-cw4).
  • taxonomy town + CPT shortcode-town + ACF list_shortcode repeater.
  • [shortcode_dmr id=N] для подстановок по городу.
  • URL-роутер /{city}/{path}/ (page_unic, main_page_alt, page_no_rep).
  • Глобальные фильтры (the_title, home_url, post_link, acf/load_value, rest_url).
  • Self-hosted updates через Gitea + plugin-update-checker v5.6.