Toro-Unit/custom-post-type-permalinks — pull request #3 by jarednova (2013-05-21 16:58:23+00:00)
Title: Added sanity check to prevent error with Advanced Custom Fields

Advanced Custom Fields, a very popular plugin for adding custom fields, sometimes uses attachments to store things in the wp_options table. This causes an error now that my sanity check corrects

http://wordpress.org/plugins/advanced-custom-fields/