Make WordPress Core


Ignore:
Timestamp:
04/12/2022 03:38:42 PM (3 years ago)
Author:
audrasjb
Message:

Widgets: Avoid 27 duplicate translations in Media Widgets constructor.

This changeset rationalizes the declaration of translation strings in the Media Widgets constructor.

Props Chouby, audrasjb, peterwilsoncc, costdev.
Fixes #54561.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-filters.php

    r53011 r53158  
    631631add_action( 'after_setup_theme', 'wp_setup_widgets_block_editor', 1 );
    632632add_action( 'init', 'wp_widgets_init', 1 );
     633add_action( 'change_locale', array( 'WP_Widget_Media', 'reset_default_labels' ) );
    633634
    634635// Admin Bar.
Note: See TracChangeset for help on using the changeset viewer.