diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index ef732407de..dc341bf9f3 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -1184,23 +1184,6 @@ function wp_edit_posts_query( $q = false ) { return $avail_post_stati; } -/** - * Get all available post MIME types for a given post type. - * - * @since 2.5.0 - * - * @global wpdb $wpdb WordPress database abstraction object. - * - * @param string $type - * @return mixed - */ -function get_available_post_mime_types( $type = 'attachment' ) { - global $wpdb; - - $types = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT post_mime_type FROM $wpdb->posts WHERE post_type = %s", $type ) ); - return $types; -} - /** * Get the query variables for the current attachments request. * diff --git a/wp-includes/post.php b/wp-includes/post.php index eb69ac727b..ac29d9628f 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -6891,3 +6891,20 @@ function _filter_query_attachment_filenames( $clauses ) { function wp_cache_set_posts_last_changed() { wp_cache_set( 'last_changed', microtime(), 'posts' ); } + +/** + * Get all available post MIME types for a given post type. + * + * @since 2.5.0 + * + * @global wpdb $wpdb WordPress database abstraction object. + * + * @param string $type + * @return mixed + */ +function get_available_post_mime_types( $type = 'attachment' ) { + global $wpdb; + + $types = $wpdb->get_col( $wpdb->prepare( "SELECT DISTINCT post_mime_type FROM $wpdb->posts WHERE post_type = %s", $type ) ); + return $types; +} diff --git a/wp-includes/version.php b/wp-includes/version.php index 98a14a4ecb..3b50732fb8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta3-45218'; +$wp_version = '5.2-beta3-45219'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.