Skip to content

Commit 100c5e3

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 512f031 commit 100c5e3

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
@@ -1857,7 +1857,7 @@ private function get_itemized_tax_rates( $taxes, $taxjar_taxes, $options ): arra
18571857
* @return string Normalized city, safe for `_update_tax_rate_cities` and `find_rates`.
18581858
*/
18591859
protected static function normalize_city( $city ) {
1860-
wc_deprecated_function( __METHOD__, '3.6.11', '\Automattic\WCServices\Tax\Address::normalize_city()' );
1860+
wc_deprecated_function( __METHOD__, '3.6.12', '\Automattic\WCServices\Tax\Address::normalize_city()' );
18611861

18621862
if ( ! is_string( $city ) ) {
18631863
return $city;

0 commit comments

Comments
 (0)