[wp-trac] [WordPress Trac] #47989: Must escape `%` in `printf`

WordPress Trac noreply at wordpress.org
Fri Sep 6 04:28:45 UTC 2019


#47989: Must escape `%` in `printf`
-----------------------------+-----------------------------
 Reporter:  afragen          |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:
 Severity:  major            |   Keywords:  needs-patch
  Focuses:                   |
-----------------------------+-----------------------------
 There's an error in
 [https://core.trac.wordpress.org/changeset/45926/trunk/src/wp-
 admin/includes/class-plugin-upgrader-skin.php r45926].

 `after()` was changed to use a `printf()` statement, but the string must
 escape the `%` in `width="100%"` to be `width="100%%"`.

 Pinging @SergeyBiryukov

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47989>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list