[wp-trac] [WordPress Trac] #48446: Fix typo in compatibility message in update core
WordPress Trac
noreply at wordpress.org
Mon Oct 28 11:23:03 UTC 2019
#48446: Fix typo in compatibility message in update core
-----------------------------+-------------------------
Reporter: man4toman | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Upgrade/Install | Version:
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
-----------------------------+-------------------------
Changes (by swissspidy):
* status: new => closed
* resolution: => worksforme
* component: General => Upgrade/Install
* milestone: Awaiting Review =>
Comment:
Thanks for your report, but the double `%%` is correct.
The string is passed through `sprintf()`, where `%` has a special meaning
as a placeholder. When needing to use an actual percentage sign and not a
placeholder, you need to use two to escape it.
See https://www.php.net/manual/en/function.sprintf.php
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48446#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list