1,336 reputation
619
bio website moraleida.me
location Rio de Janeiro, Brazil
age 31
visits member for 3 years, 3 months
seen 9 hours ago
/**
* Handyman Developer - WordPress Enthusiast
* Website: http://moraleida.me
* Email: ricardo [ at ] moraleida.me
* Tweet me @moraleida
*
* 
*/

Aug
17
comment Reject upload of wrong-sized images using the Media Uploader
Yes, this is what i am already doing to validate filenames and svg properties. What I need right now is a way to pass another parameter to that ( or another ) filter, indicating which field is being populated by that upload so that I can apply different restrictions for different fields. This is actually on hold right now. I'll update the question later on with my findings.
Aug
6
comment Reject upload of wrong-sized images using the Media Uploader
I was working on it yesterday, exploring the (rather poorly documented) core js but didn't go much further. Will probably get back to it tomorrow, then I can paste some code. Would love to get this done :)
Aug
6
comment Unattaching unlinked images
@Arkuen what do you mean by "some images are taken out" ? Is that a gallery that you manage? Or are they loose links on the editor textarea that you manually delete?
Aug
6
comment Unattaching unlinked images
have you seen this: wordpress.stackexchange.com/a/88104/7890 ? Should get you going.
Aug
6
comment Unattaching unlinked images
can't you upload the images using the Media -> Add New menu? This way they'll never be attached.
Aug
5
comment wp-admin/admin-ajax.php returns 404
are you accessing those URLs directly? they're not meant for that
Aug
4
comment Reject upload of wrong-sized images using the Media Uploader
Yeah, I've done something like this before, in the days of the Flash Uploader. I was going for a cleaner way this time, but it just might not be possible. Will look into that, thanks!
Jul
30
comment infinite scroll not working when logged out
hadn't even seen that. Good catch :)
Jul
30
comment Items By Group added to custom post type
have a go at it and come back to tell us if it worked out
Jul
30
comment Is there a way for a plugin to add an attribute to the <html> tag of a theme?
glad to help out!
Jul
30
comment Items By Group added to custom post type
It's not really clear where you're having difficulties. Is it the ajax call?
Jul
29
comment Getting a peer review for my new plugin?
4 years later... did you ever get to release those plugins? The gists suggest they're still half-way, but it still seems like a good idea.
Dec
4
comment Upload images from one site to another in Multisite
Hum... this is an old question, from before the media upload change in 3.5, so I'm not sure this answer works on the new HTML5 uploader. Anyway, the uploader variable there was actually the base url for media-upload.php, so that would translate to "example.com/wp-admin/media-upload.php"
Feb
25
comment Default Image Link Removal
Sorry about that, I completely misread your answer...
Feb
21
comment Default Image Link Removal
Don't ever edit core files. The changes will be lost the minute you update WordPress.
Nov
27
comment wp_update_post() doesn't update post_status?
Right you are, brother @brasofilo. I'll post it here shortly. :)
Oct
9
comment wp_update_post() doesn't update post_status?
Yes, i'm doing it as an network admin, and also as a "custom" user role.
Oct
8
comment wp_update_post() doesn't update post_status?
Ok, this just in: if I strip out the post_status before updating the post, it then gets reverted to draft and still appears in the admin panel as scheduled. So it works, but that still doesn't answer why I can't revert it to future.
Oct
8
comment wp_update_post() doesn't update post_status?
post date gets updated, but post status doesn't. So if I publish a post today, and then set it to future with a date three days from today, the date gets changed, but post_status is still publish, instead of future
Aug
30
comment Search ONLY by meta key / meta values
The str_replace idea worked with some adjustments, will post on the question. As a follow up on performance: do you think altering the main query with posts_where is really slower than doing a direct SQL Query + a regular WP_Query as you suggested in A)?