jtsternberg / DsgnWrks-Instagram-Importer

Backup your instagram photos & display your instagram archive. Supports importing to custom post-types & adding custom taxonomies.
http://wordpress.org/extend/plugins/dsgnwrks-instagram-importer/
33 stars 17 forks source link

Possible Fix for Local URL bug #1

Closed UltraNurd closed 11 years ago

UltraNurd commented 11 years ago

Justin,

Following up on our discussion on Twitter yesterday, I have a patch using wp_update_post that replaces the link fields with the locally cached URLs if the image is "featured". I've tested this on my WordPress install, but I don't know if my attempt at a minimal change breaks any other assumptions.

--Nick

UltraNurd commented 11 years ago

Whoops, a bit careless about branches - I didn't realize it would update the pull request. I added some basic inclusion of likes and comments, which I wanted to keep in my Instagram fleeing. Take whatever you need.

jtsternberg commented 11 years ago

Ok, This is incorporated with my last push. I didn't want to merge your pull because of the changes I had made locally. You can see the diff here..

UltraNurd commented 11 years ago

Never developed WP plugins, so I'm not familiar with the filter paradigm. I know just enough PHP to be dangerous, but at this point, I've got my Instagram imported, which is what I needed.

jtsternberg commented 11 years ago

Fair enough. For future reference, you could drop this code into your own plugin or your theme's functions.php file and have it do the same thing without modifying the plugin itself.