[Plugin: Simple Portfolio] Fixed media uploads for WP 3.3
-
I had some issues with the media uploading in WordPress 3.3, in combination with the 1.8 SimplePortfolio plugin.
Since the Automattic guys decided to go with Plupload the code to add the ‘add to project’ button did not appear anymore.I did a fix for this in the
js/simple-portfolio-media-upload.js
file. Replace all the code in the file with the part down below and it should get you going.Code
If anybody knows how to post code-blocks in this forum let me know.
Here is a pastie: https://pastie.org/3036189Changes
- Remove code insertion that replaces the
uploadComplete
event withuploadCompletePortfolio
- Add new
uploader.bind
- Removed check for
swfu queue
for this is handled by Plupload
Only the first two functions were changed.
I am sure there are some optimizations possible on a few lines, but it works for now and I felt like sharing it!Cheers,
Rutger - Remove code insertion that replaces the
- The topic ‘[Plugin: Simple Portfolio] Fixed media uploads for WP 3.3’ is closed to new replies.