[wp-meta] [Making WordPress.org] #3542: Incorrectly escaped percent sign in "about security"

Making WordPress.org noreply at wordpress.org
Sun Apr 1 00:30:24 UTC 2018


#3542: Incorrectly escaped percent sign in "about security"
-------------------------------------------+--------------------
 Reporter:  tobifjellner                   |      Owner:  (none)
     Type:  defect                         |     Status:  new
 Priority:  normal                         |  Milestone:
Component:  International Sites (Rosetta)  |   Keywords:
-------------------------------------------+--------------------
 Location:
 https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html
 /wp-content/themes/pub/wporg-main/page-about-security.php around line 77


 {{{
 printf(
 /* translators: 1: WordPress Market share - 30. Note the following % sign
 is escaped as %%. 2: Footnote 3: Market Penetration - 60.  Note the
 following % sign is escaped as %%. */
 __( 'WordPress is a free and open source content management system (CMS).
 It is the most widely-used CMS software in the world and it powers more
 than %1$s%% of the top 10 million websites%2$s, giving it an estimated 58%
 market share of all sites
 using a CMS.', 'wporg' ),
 WP_MARKET_SHARE,
 '<sup id="ref1"><a href="#footnote1">1</a></a></sup>',
 60
 );
 }}}

 The problem here is with "58%", and it's twofold:
 1. "58" would better be a parameter.
 2. The percent sign needs to be escaped into %%

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3542>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list