Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11476 closed defect (bug) (fixed)

Missing percent sign in string passed to sprintf

Reported by: sirzooro's profile sirzooro Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.9
Component: Upgrade/Install Keywords: has-patch commit
Focuses: Cc:

Description

When you open wp-admin/update-core.php, you may see

Compatibility with WordPress 2.9: 100(according to its author)

instead of:

Compatibility with WordPress 2.9: 100% (according to its author)

Attached patch adds fixes this.

Attachments (1)

update-core.php.diff (986 bytes) - added by sirzooro 15 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Denis-de-Bernardy
15 years ago

  • Keywords commit added

#2 @Denis-de-Bernardy
15 years ago

see:

http://php.net/manual/en/function.sprintf.php

A type specifier that says what type the argument data should be treated as. Possible types:

% - a literal percent character. No argument is required.

#3 @ryan
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12440]) Escape percent sign. Props sirzooro. fixes #11476

#4 @ryan
15 years ago

[12441] for 2.9.

Output was busted for me without the escaping.

Note: See TracTickets for help on using tickets.