woocommerce / projects

38 stars 24 forks source link

Add crop to image size options #63

Closed helgatheviking closed 10 years ago

helgatheviking commented 10 years ago

and clean up some if isset checks for saving meta fields. for #62

jameskoster commented 10 years ago

Marvellous :)

helgatheviking commented 10 years ago

Great! I wasn't 100% sure

<?php $crop = isset( $options['project-archive']['crop'] ) ? $options['project-archive']['crop'] : 'no'; ?>

was the most elegant way to do it, but I was getting PHP notices about $options['project-archives']['crop'] being unset.... but this doesn't require an upgrade routine, so that seemed like a good trade off.