Skip to content

Commit 77107d4

Browse files
committed
Tweak - Stamp the normalize_city() runtime notice with 3.6.12, not 3.6.11.
3.6.11 shipped on 2026-08-05 while this stack was open, so the version passed to wc_deprecated_function() names a release that went out without the deprecation in it. This PR's changelog entries land in the unreleased 3.6.12 block, which is the release that will actually raise the notice. The audience is the reason this matters. normalize_city() is protected static and retained solely so an out-of-repo subclass does not break on load; the notice is the only signal those consumers get, and it tells them which release to check their migration against. Pointing at 3.6.11 sends them to a release where nothing changed. Matches the @deprecated tag, corrected on the base branch when it was added. Tests are unaffected: setExpectedDeprecated() matches on the function name, not the version string.
1 parent b184afd commit 77107d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

classes/class-wc-connect-taxjar-integration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,7 @@ private function get_itemized_tax_rates( $taxes, $taxjar_taxes, $options ): arra
18671867
* @return string Normalized city, safe for `_update_tax_rate_cities` and `find_rates`.
18681868
*/
18691869
protected static function normalize_city( $city ) {
1870-
wc_deprecated_function( __METHOD__, '3.6.11', '\Automattic\WCServices\Tax\Address::normalize_city()' );
1870+
wc_deprecated_function( __METHOD__, '3.6.12', '\Automattic\WCServices\Tax\Address::normalize_city()' );
18711871

18721872
if ( ! is_string( $city ) ) {
18731873
return $city;

0 commit comments

Comments
 (0)