196 reputation
1110
bio website jasonleeashby.com
location Wilmington, NC
age
visits member for 3 years, 8 months
seen Jun 19 at 19:50

DevOps. Linux, Puppet, Python, Ruby, SAS, R, js.


Apr
24
comment Uploading Images to Media Library via wp_handle_sideload() fails
You can use wp_check_filetype to get the type. $mime_type = wp_check_filetype($image);. Available since WP 2.0.4.
Aug
25
comment How to avoid infinite loop in save_post callback
Wow thanks! I was going nuts trying to figure out why I was still getting the infinite loop, even when adding remove_action/add_action.
Aug
19
comment wp_trim_words is trimming by character instead of by words
My wp-config.php file has define('WPLANG', '');, which means I'm defaulting to English, as desired.
Jan
9
comment Create custom thumbnail size on existing posts
That worked, thanks. I found Ajax Thumbnail Rebuild to be a little more user friendly and better performance-wise: wordpress.org/extend/plugins/ajax-thumbnail-rebuild
Dec
11
comment posts_per_page no limit
Thanks Rutwick!
Dec
11
comment posts_per_page no limit
Also, thanks for the answer. You should post it as an answer and not a comment, so I can accept it.
Dec
11
comment posts_per_page no limit
I've been Googling for awhile and searching the WP codex, but I just can't find a direct answer to this simple question. I believe my question is worded clearly with example code, and what my attempt was (setting a high value for the argument). I'm not a WP expert, so thats why I came here to ask the question. Even providing answers to questions that seem trivial to you are helpful in growing these Stack Exchange communities. I personally love seeing a Stack Overflow link in my search results, as opposed to a link to a crappy forum.