Changeset 55881
- Timestamp:
- 06/05/2023 09:03:38 PM (16 months ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-custom-background.php
r55412 r55881 64 64 */ 65 65 public function init() { 66 $page = add_theme_page( __( 'Background' ), __( 'Background' ), 'edit_theme_options', 'custom-background', array( $this, 'admin_page' ) ); 66 $page = add_theme_page( 67 _x( 'Background', 'custom background' ), 68 _x( 'Background', 'custom background' ), 69 'edit_theme_options', 70 'custom-background', 71 array( $this, 'admin_page' ) 72 ); 73 67 74 if ( ! $page ) { 68 75 return; -
trunk/src/wp-admin/includes/class-custom-image-header.php
r55412 r55881 72 72 */ 73 73 public function init() { 74 $page = add_theme_page( __( 'Header' ), __( 'Header' ), 'edit_theme_options', 'custom-header', array( $this, 'admin_page' ) ); 74 $page = add_theme_page( 75 _x( 'Header', 'custom image header' ), 76 _x( 'Header', 'custom image header' ), 77 'edit_theme_options', 78 'custom-header', 79 array( $this, 'admin_page' ) 80 ); 75 81 76 82 if ( ! $page ) { -
trunk/src/wp-admin/menu.php
r55703 r55881 231 231 if ( current_theme_supports( 'custom-header' ) && current_user_can( 'customize' ) ) { 232 232 $customize_header_url = add_query_arg( array( 'autofocus' => array( 'control' => 'header_image' ) ), $customize_url ); 233 $submenu['themes.php'][15] = array( _ _( 'Header' ), $appearance_cap, esc_url( $customize_header_url ), '', 'hide-if-no-customize' );233 $submenu['themes.php'][15] = array( _x( 'Header', 'custom image header' ), $appearance_cap, esc_url( $customize_header_url ), '', 'hide-if-no-customize' ); 234 234 } 235 235 236 236 if ( current_theme_supports( 'custom-background' ) && current_user_can( 'customize' ) ) { 237 237 $customize_background_url = add_query_arg( array( 'autofocus' => array( 'control' => 'background_image' ) ), $customize_url ); 238 $submenu['themes.php'][20] = array( _ _( 'Background' ), $appearance_cap, esc_url( $customize_background_url ), '', 'hide-if-no-customize' );238 $submenu['themes.php'][20] = array( _x( 'Background', 'custom background' ), $appearance_cap, esc_url( $customize_background_url ), '', 'hide-if-no-customize' ); 239 239 } 240 240 -
trunk/src/wp-includes/admin-bar.php
r55416 r55881 1053 1053 'parent' => 'appearance', 1054 1054 'id' => 'background', 1055 'title' => _ _( 'Background' ),1055 'title' => _x( 'Background', 'custom background' ), 1056 1056 'href' => admin_url( 'themes.php?page=custom-background' ), 1057 1057 'meta' => array( … … 1067 1067 'parent' => 'appearance', 1068 1068 'id' => 'header', 1069 'title' => _ _( 'Header' ),1069 'title' => _x( 'Header', 'custom image header' ), 1070 1070 'href' => admin_url( 'themes.php?page=custom-header' ), 1071 1071 'meta' => array( -
trunk/src/wp-includes/block-template-utils.php
r55817 r55881 66 66 array( 67 67 'area' => WP_TEMPLATE_PART_AREA_UNCATEGORIZED, 68 'label' => _ _( 'General' ),68 'label' => _x( 'General', 'template part area' ), 69 69 'description' => __( 70 70 'General templates often perform a specific role like displaying post content, and are not tied to any particular area.' … … 75 75 array( 76 76 'area' => WP_TEMPLATE_PART_AREA_HEADER, 77 'label' => _ _( 'Header' ),77 'label' => _x( 'Header', 'template part area' ), 78 78 'description' => __( 79 79 'The Header template defines a page area that typically contains a title, logo, and main navigation.' … … 84 84 array( 85 85 'area' => WP_TEMPLATE_PART_AREA_FOOTER, 86 'label' => _ _( 'Footer' ),86 'label' => _x( 'Footer', 'template part area' ), 87 87 'description' => __( 88 88 'The Footer template defines a page area that typically contains site credits, social links, or any other combination of blocks.'
Note: See TracChangeset
for help on using the changeset viewer.