WordPress.org

Make WordPress Core

Ticket #33616: 33616.diff

File 33616.diff, 2.3 KB (added by flixos90, 6 years ago)

Patch with the minor changes implemented

  • src/wp-includes/media.php

     
    30223022                }
    30233023        }
    30243024
    3025         $hier = $post && is_post_type_hierarchical( $post->post_type );
    3026 
    30273025        if ( $post ) {
    30283026                $post_type_object = get_post_type_object( $post->post_type );
    30293027        } else {
     
    30623060                'allMediaItems'          => __( 'All media items' ),
    30633061                'allDates'               => __( 'All dates' ),
    30643062                'noItemsFound'           => __( 'No items found.' ),
    3065                 'insertIntoPost'         => $hier ? __( 'Insert into page' ) : __( 'Insert into post' ),
     3063                'insertIntoPost'         => $post_type_object->labels->insert_into_item,
    30663064                'unattached'             => __( 'Unattached' ),
    30673065                'trash'                  => _x( 'Trash', 'noun' ),
    3068                 'uploadedToThisPost'     => $hier ? __( 'Uploaded to this page' ) : __( 'Uploaded to this post' ),
     3066                'uploadedToThisPost'     => $post_type_object->labels->uploaded_to_this_item,
    30693067                'warnDelete'             => __( "You are about to permanently delete this item.\n  'Cancel' to stop, 'OK' to delete." ),
    30703068                'warnBulkDelete'         => __( "You are about to permanently delete these items.\n  'Cancel' to stop, 'OK' to delete." ),
    30713069                'warnBulkTrash'          => __( "You are about to trash these items.\n  'Cancel' to stop, 'OK' to delete." ),
  • src/wp-includes/post-functions.php

     
    13261326                'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
    13271327                'parent_item_colon' => array( null, __('Parent Page:') ),
    13281328                'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ),
     1329                'insert_into_item' => array( __( 'Insert into post' ), __( 'Insert into page' ) ),
     1330                'uploaded_to_this_item' => array( __( 'Uploaded to this post' ), __( 'Uploaded to this page' ) ),
    13291331                'featured_image' => array( __( 'Featured Image' ), __( 'Featured Image' ) ),
    13301332                'set_featured_image' => array( __( 'Set featured image' ), __( 'Set featured image' ) ),
    13311333                'remove_featured_image' => array( __( 'Remove featured image' ), __( 'Remove featured image' ) ),