Make WordPress Core


Ignore:
Timestamp:
11/21/2012 10:18:59 AM (11 years ago)
Author:
koopersmith
Message:

Media: Dynamically generate attachment filters using get_post_mime_types().

Moves get_post_mime_types() from wp-admin/includes/post.php to wp-includes/post.php.

fixes #22514, see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r22653 r22743  
    877877
    878878/**
    879  * Get default post mime types
    880  *
    881  * @since 2.9.0
    882  *
    883  * @return array
    884  */
    885 function get_post_mime_types() {
    886     $post_mime_types = array(   //  array( adj, noun )
    887         'image' => array(__('Images'), __('Manage Images'), _n_noop('Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>')),
    888         'audio' => array(__('Audio'), __('Manage Audio'), _n_noop('Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>')),
    889         'video' => array(__('Video'), __('Manage Video'), _n_noop('Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>')),
    890     );
    891 
    892     return apply_filters('post_mime_types', $post_mime_types);
    893 }
    894 
    895 /**
    896879 * {@internal Missing Short Description}}
    897880 *
Note: See TracChangeset for help on using the changeset viewer.