WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/08/2016 05:42:45 PM (3 years ago)
Author:
ocean90
Message:

Media: Change wording for media files which aren't attached.

The media library can contain files which aren't attached yet. When attaching a file you currently get "Media attachment reattached.", or the opposite "Media attachment detached.". That's redundant and can be inaccurate. It's also not easy to translate in some languages.

This change generalizes the strings to refer to a "media file" instead.

Props SergeyBiryukov, ocean90, netweb.
Fixes #36089.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-advanced.php

    r36659 r36887  
    161161    10 => __( 'Page draft updated.' ) . $preview_page_link_html,
    162162);
    163 $messages['attachment'] = array_fill( 1, 10, __( 'Media attachment updated.' ) ); // Hack, for now.
     163$messages['attachment'] = array_fill( 1, 10, __( 'Media file updated.' ) ); // Hack, for now.
    164164
    165165/**
Note: See TracChangeset for help on using the changeset viewer.