Make WordPress Core

Changeset 47126


Ignore:
Timestamp:
01/29/2020 04:08:13 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Media: After [46375], enable JavaScript translations for the media-views script.

Props ocean90, audrasjb.
Merges [47040] to the 5.3 branch.
Fixes #49134.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-includes/script-loader.php

    r46875 r47126  
    16221622    // Both rely on numerous settings, styles, and templates to operate correctly.
    16231623    $scripts->add( 'media-views', "/wp-includes/js/media-views$suffix.js", array( 'utils', 'media-models', 'wp-plupload', 'jquery-ui-sortable', 'wp-mediaelement', 'wp-api-request', 'wp-a11y', 'wp-i18n' ), false, 1 );
     1624    $scripts->set_translations( 'media-views' );
    16241625    $scripts->add( 'media-editor', "/wp-includes/js/media-editor$suffix.js", array( 'shortcode', 'media-views' ), false, 1 );
    16251626    $scripts->add( 'media-audiovideo', "/wp-includes/js/media-audiovideo$suffix.js", array( 'media-editor' ), false, 1 );
Note: See TracChangeset for help on using the changeset viewer.