Plugin Directory

Changeset 631347


Ignore:
Timestamp:
11/28/2012 03:59:57 PM (13 years ago)
Author:
PeterHudec
Message:

Commited version 1.2

Location:
image-metadata-cruncher
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • image-metadata-cruncher/tags/1.2/README.txt

    r627803 r631347  
    55Requires at least: 2.7
    66Tested up to: 3.4
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838== Changelog ==
    3939
     40= 1.2 =
     41* Fixed a bug when the plugin extracted only the first item of an IPTC metadata of type array like IPTC:Keywords and IPTC:SupplementalCategories
     42
    4043= 1.1 =
    4144* Fixed several bugs
  • image-metadata-cruncher/tags/1.2/image-metadata-cruncher.php

    r627891 r631347  
    33Plugin Name: Image Metadata Cruncher
    44Description: Gives you ultimate controll over which image metadata (EXIF or IPTC) WordPress extracts from an uploaded image and where and in what form it then goes. You can even specify unlimited custom post meta tags as the target of the extracted image metadata.
    5 Version: 1.1
     5Version: 1.2
    66Author: Peter Hudec
    77Author URI: http://peterhudec.com
     
    151151            // symplify array structure
    152152            foreach ( $iptc as &$i ) {
    153                 $i = $i[0];
     153                // if the array has only one item
     154                if ( count( $i ) <= 1 ) {
     155                    $i = $i[0];
     156                }
    154157            }
    155158           
     
    367370        } else {
    368371            // try to find anything that is provided (handles IPTC too)
    369             $value = $this->get_metadata( $metadata, $category, $pieces[1] );
     372            $key = $path[0];
     373            $value = $this->get_metadata( $metadata, $category, $key );
    370374        }
    371375       
  • image-metadata-cruncher/trunk/README.txt

    r627803 r631347  
    55Requires at least: 2.7
    66Tested up to: 3.4
    7 Stable tag: 1.1
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838== Changelog ==
    3939
     40= 1.2 =
     41* Fixed a bug when the plugin extracted only the first item of an IPTC metadata of type array like IPTC:Keywords and IPTC:SupplementalCategories
     42
    4043= 1.1 =
    4144* Fixed several bugs
  • image-metadata-cruncher/trunk/image-metadata-cruncher.php

    r627891 r631347  
    33Plugin Name: Image Metadata Cruncher
    44Description: Gives you ultimate controll over which image metadata (EXIF or IPTC) WordPress extracts from an uploaded image and where and in what form it then goes. You can even specify unlimited custom post meta tags as the target of the extracted image metadata.
    5 Version: 1.1
     5Version: 1.2
    66Author: Peter Hudec
    77Author URI: http://peterhudec.com
     
    151151            // symplify array structure
    152152            foreach ( $iptc as &$i ) {
    153                 $i = $i[0];
     153                // if the array has only one item
     154                if ( count( $i ) <= 1 ) {
     155                    $i = $i[0];
     156                }
    154157            }
    155158           
     
    367370        } else {
    368371            // try to find anything that is provided (handles IPTC too)
    369             $value = $this->get_metadata( $metadata, $category, $pieces[1] );
     372            $key = $path[0];
     373            $value = $this->get_metadata( $metadata, $category, $key );
    370374        }
    371375       
Note: See TracChangeset for help on using the changeset viewer.