Make WordPress Core


Ignore:
Timestamp:
09/24/2015 03:21:11 AM (9 years ago)
Author:
wonderboymusic
Message:

Media Modal: move the translation strings for insertIntoPost and uploadedToThisPost to the get_post_type_labels() array as insert_into_item and uploaded_to_this_item.

Props flixos90.
Fixes #33616.

File:
1 edited

Legend:

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

    r34470 r34472  
    30673067    }
    30683068
    3069     $hier = $post && is_post_type_hierarchical( $post->post_type );
    3070 
    30713069    if ( $post ) {
    30723070        $post_type_object = get_post_type_object( $post->post_type );
     
    31073105        'allDates'               => __( 'All dates' ),
    31083106        'noItemsFound'           => __( 'No items found.' ),
    3109         'insertIntoPost'         => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
     3107        'insertIntoPost'         => $post_type_object->labels->insert_into_item,
    31103108        'unattached'             => __( 'Unattached' ),
    31113109        'trash'                  => _x( 'Trash', 'noun' ),
    3112         'uploadedToThisPost'     => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ),
     3110        'uploadedToThisPost'     => $post_type_object->labels->uploaded_to_this_item,
    31133111        'warnDelete'             => __( "You are about to permanently delete this item.\n  'Cancel' to stop, 'OK' to delete." ),
    31143112        'warnBulkDelete'         => __( "You are about to permanently delete these items.\n  'Cancel' to stop, 'OK' to delete." ),
Note: See TracChangeset for help on using the changeset viewer.