WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#11476 closed defect (bug) (fixed)

Missing percent sign in string passed to sprintf

Reported by: 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 5 years ago.

Download all attachments as: .zip

Change History (5)

@sirzooro5 years ago

comment:1 @Denis-de-Bernardy5 years ago

  • Keywords commit added

comment:2 @Denis-de-Bernardy5 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.

comment:3 @ryan5 years ago

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

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

comment:4 @ryan5 years ago

[12441] for 2.9.

Output was busted for me without the escaping.

Note: See TracTickets for help on using tickets.