Make WordPress Core

Ticket #58424: 58424.diff

File 58424.diff, 4.7 KB (added by SergeyBiryukov, 6 months ago)
  • src/wp-admin/includes/class-custom-background.php

     
    6363         * @since 3.0.0
    6464         */
    6565        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
    6774                if ( ! $page ) {
    6875                        return;
    6976                }
  • src/wp-admin/includes/class-custom-image-header.php

     
    7171         * @since 2.1.0
    7272         */
    7373        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                );
    7581
    7682                if ( ! $page ) {
    7783                        return;
  • src/wp-admin/menu.php

     
    230230
    231231if ( current_theme_supports( 'custom-header' ) && current_user_can( 'customize' ) ) {
    232232        $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' );
    234234}
    235235
    236236if ( current_theme_supports( 'custom-background' ) && current_user_can( 'customize' ) ) {
    237237        $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' );
    239239}
    240240
    241241unset( $customize_url );
  • src/wp-includes/admin-bar.php

     
    10521052                        array(
    10531053                                'parent' => 'appearance',
    10541054                                'id'     => 'background',
    1055                                 'title'  => __( 'Background' ),
     1055                                'title'  => _x( 'Background', 'custom background' ),
    10561056                                'href'   => admin_url( 'themes.php?page=custom-background' ),
    10571057                                'meta'   => array(
    10581058                                        'class' => 'hide-if-customize',
     
    10661066                        array(
    10671067                                'parent' => 'appearance',
    10681068                                'id'     => 'header',
    1069                                 'title'  => __( 'Header' ),
     1069                                'title'  => _x( 'Header', 'custom image header' ),
    10701070                                'href'   => admin_url( 'themes.php?page=custom-header' ),
    10711071                                'meta'   => array(
    10721072                                        'class' => 'hide-if-customize',
  • src/wp-includes/block-template-utils.php

     
    6565        $default_area_definitions = array(
    6666                array(
    6767                        'area'        => WP_TEMPLATE_PART_AREA_UNCATEGORIZED,
    68                         'label'       => __( 'General' ),
     68                        'label'       => _x( 'General', 'template part area' ),
    6969                        'description' => __(
    7070                                'General templates often perform a specific role like displaying post content, and are not tied to any particular area.'
    7171                        ),
     
    7474                ),
    7575                array(
    7676                        'area'        => WP_TEMPLATE_PART_AREA_HEADER,
    77                         'label'       => __( 'Header' ),
     77                        'label'       => _x( 'Header', 'template part area' ),
    7878                        'description' => __(
    7979                                'The Header template defines a page area that typically contains a title, logo, and main navigation.'
    8080                        ),
     
    8383                ),
    8484                array(
    8585                        'area'        => WP_TEMPLATE_PART_AREA_FOOTER,
    86                         'label'       => __( 'Footer' ),
     86                        'label'       => _x( 'Footer', 'template part area' ),
    8787                        'description' => __(
    8888                                'The Footer template defines a page area that typically contains site credits, social links, or any other combination of blocks.'
    8989                        ),