mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-14 13:50:24 +00:00
I18N: Provide gettext context to disambiguate various translation strings.
This changeset adds context to various strings: - `'Background'` string when referring to Custom Background appearance screens - `'Header'` string when referring to Custom Header appearance screens - `'General'`, `'Header'` and `'Footer'` strings when referring to template part areas Props gonzomir, SergeyBiryukov, mukesh27, costdev, ankitmaru. Fixes #58424. git-svn-id: https://develop.svn.wordpress.org/trunk@55881 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -63,7 +63,14 @@ class Custom_Background {
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public function init() {
|
||||
$page = add_theme_page( __( 'Background' ), __( 'Background' ), 'edit_theme_options', 'custom-background', array( $this, 'admin_page' ) );
|
||||
$page = add_theme_page(
|
||||
_x( 'Background', 'custom background' ),
|
||||
_x( 'Background', 'custom background' ),
|
||||
'edit_theme_options',
|
||||
'custom-background',
|
||||
array( $this, 'admin_page' )
|
||||
);
|
||||
|
||||
if ( ! $page ) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user