2,006 reputation
1845
bio website tomauger.com
location Toronto, Canada
age
visits member for 3 years, 6 months
seen Aug 21 at 18:35

WordPress developer. Always learning. Hoping to contribute.


Aug
23
revised How safe / sanitized is wp_insert_posts()?
added 206 characters in body
Aug
23
comment How safe / sanitized is wp_insert_posts()?
Updated the Codex to show an example of data validation and wp_insert_posts().
Aug
18
awarded  Tumbleweed
Aug
16
comment add_role() run only once?
Thanks for the update - I like the simplicity of the update_option solution
Aug
16
accepted add_role() run only once?
Aug
11
comment add_role() run only once?
Aw crap. I even knew about that too from some earlier rooting about the WP_Roles class. Can you think of any downside to NOT using the database for roles? And is there a WP best practice for doing something only once?
Aug
11
comment Making a theme multilingual by adding a custom taxonomy to posts and pages called “Languages”?
To add to that if you want a language switch button at the top of a page (for example 'show this page in French') then you have to find a way to associate that particular post (in English) with a corresponding post (in French). One method would be scribu's Posts 2 Posts as toscho mentions. Consider using a custom non-hierarchical (ie 'tags') taxo as an alternative way to relate posts, where each tag has a unique slug that would correspond to some 'universal' language-independent identifier for that particular content.
Aug
11
revised add_role() run only once?
edited title
Aug
11
asked add_role() run only once?
Aug
4
answered Can't login after my site was moved to a new server
Aug
2
comment Why is that gdsr_sort=thumbs (GD start rating plugin) only works with query_posts and not with WP_Query?
Still not fixed as of latest version 1.9.10. Thanks for the info, Jan.
Aug
1
comment Public posts - preventing duplicate form submissions
+ 1 for great form! This won't work in my case but only because the user is not inputting the post title. Great suggestion though. I wish WP had something built-in to handle this: seems to me it ought to. On the admin side, duplicate prevention is handled through redirects (ie: refreshing after a post has been submitted only refreshes the redirected edit page.
Aug
1
comment How safe / sanitized is wp_insert_posts()?
Okay, good to know. wp_kses_post() on everything then and wp_kses_title() on the title!
Jul
29
asked How safe / sanitized is wp_insert_posts()?
Jul
29
asked Public posts - preventing duplicate form submissions
Jul
6
revised Read-only taxonomy (user can assign term but can't create or edit existing terms)
Figured out that custom tax caps can help, but how to prevent admins?
Jul
6
asked Read-only taxonomy (user can assign term but can't create or edit existing terms)
Jul
5
accepted WordPress built-in method to extract array of term IDs?
Jul
4
comment Alternative to query_posts for main loop?
Done: codex.wordpress.org/Plugin_API/Filter_Reference/request and major cleanup codex.wordpress.org/Function_Reference/query_posts. I would appreciate if you might check to make sure I haven't made any blunders.
Jun
30
comment As soon as I add a custom query_var using the filter, my pages point to an archive page - why?
Okay, will do. If I get a solution that I can document, I'll follow up here for anyone else that might run into the situation. It's got to be SOMETHING.