Skip to content

Create a shortcode for WP_MARKET_SHARE #10

Closed
@ryelle

Description

@ryelle

This is a single defined constant that provides the current WP market share (ex, 43%). In wporg-main, this is used to build strings, so that they don't need to be re-translated every time the percentage changes. It also keeps the value defined in one place, so we don't end up with 40% in one place, and 43% in another.

printf(
	/* translators: WordPress market share: 39 - Note: The following percent sign is '%%' for escaping purposes; */
	esc_html__( 'Use the software that powers over %s%% of the web.', 'wporg' ),
	esc_html( number_format_i18n( WP_MARKET_SHARE ) )
);

How should we handle this for content entered in the block editor?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

  • Status

    ✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions