diff --git a/photographers-galleries.php b/photographers-galleries.php
index c743e62..31ee55e 100644
--- a/photographers-galleries.php
+++ b/photographers-galleries.php
@@ -14,7 +14,7 @@
* Plugin Name: Photographers galleries
* Plugin URI: https://wordpress.org/plugins/photographers-galleries/
* Description: Enhance your galleries with HTML5, metadata, dynamic galleries and add a lightweight carousel to display a sequence of pictures without distractions.
- * Version: 1.0.2
+ * Version: 1.0.3
* Author: Aurélien PIERRE
* Author URI: https://photo.aurelienpierre.com
* Text Domain: photographers-galleries
@@ -106,51 +106,9 @@ function pg_add_attachment_support() {
*/
include_once('admin/media-admin.php');
-
-function remove_post_custom_fields() {
- remove_meta_box( 'attachment-compat' , 'attachment' , 'normal' );
-}
-add_action( 'admin_menu' , 'remove_post_custom_fields' );
-
-function add_media_categories($fields, $post) {
- $categories = get_categories(array('taxonomy' => 'model', 'hide_empty' => 0));
- $post_categories = wp_get_object_terms($post->ID, 'model', array('fields' => 'ids'));
- $all_cats .= '
';
-
- $categories = array('all_categories' => array (
- 'label' => __('Models'),
- 'input' => 'html',
- 'html' => $all_cats
- ));
- return array_merge($fields, $categories);
-}
-add_filter('attachment_fields_to_edit', 'add_media_categories', null, 2);
-
-function add_image_attachment_fields_to_save($post, $attachment) {
- $categories = get_categories(array('taxonomy' => 'model', 'hide_empty' => 0));
- $terms = array();
- foreach($categories as $category) {
- if (isset($_POST[$post['ID'].'-'.$category->category_nicename])) {
- $terms[] = $_POST[$post['ID'].'-'.$category->category_nicename];
- }
- }
- wp_set_object_terms( $post['ID'], $terms, 'model' );
- return $post;
-}
-add_filter('attachment_fields_to_save', 'add_image_attachment_fields_to_save', null , 2);
-
+/*
+ * Add custom sizes for responsive images
+ */
add_action( 'after_setup_theme', 'pg_custom_add_image_sizes' );
function pg_custom_add_image_sizes() {
diff --git a/readme.txt b/readme.txt
index aa18151..2d85a85 100644
--- a/readme.txt
+++ b/readme.txt
@@ -231,6 +231,10 @@ All the same as carousels, plus a `look` argument to choose the styling :
== Changelog ==
+= 1.0.3 =
+
+Remove legacy code to display custom media taxinomies on media pages. This feature is now in WordPress core.
+
= 1.0.2 =
Fix minor CSS issues, improve carousel arrows legibility and make them smaller.