Make WordPress Core

Changeset 57864


Ignore:
Timestamp:
03/22/2024 01:56:55 PM (4 months ago)
Author:
audrasjb
Message:

I18n: Ensure "Patterns" menu item is translatable.

This changeset updates a translation string to ensure the "Patterns" menu item introduced in [57543] is translatable.
This quickfix simply removes the erroneous context parameter so no new string is introduced during WP 6.5 string freeze period. A follow-up changeset will be needed to replace the current __() function with _x() and put back the context parameter.

Follow-up to [57543].

Props jdy68, audrasjb, kebbet, swissspidy.
Fixes #60825.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/menu.php

    r57543 r57864  
    207207    $submenu['themes.php'][6] = array( _x( 'Editor', 'site editor menu item' ), 'edit_theme_options', 'site-editor.php' );
    208208} else {
    209     $submenu['themes.php'][6] = array( __( 'Patterns', 'site editor menu item' ), 'edit_theme_options', 'edit.php?post_type=wp_block' );
     209    $submenu['themes.php'][6] = array( __( 'Patterns' ), 'edit_theme_options', 'edit.php?post_type=wp_block' );
    210210}
    211211
Note: See TracChangeset for help on using the changeset viewer.