2,091 reputation
22048
bio website tomauger.com
location Toronto, Canada
age
visits member for 3 years, 8 months
seen Sep 10 at 18:14

WordPress developer. Always learning. Hoping to contribute.


Aug
23
asked Why do some core functions get wp_ while others do not? What's the rule?
Aug
23
accepted How safe / sanitized is wp_insert_posts()?
Aug
23
comment How safe / sanitized is wp_insert_posts()?
Thanks Scribu for that correction - definitely a better way to go! Though I wish you hadn't scrapped that entire code snippet, because it was also a good illustration of other aspects of using wp_insert_post() that the main example doesn't cover.
Aug
23
accepted Is $object_type truly required with register_taxonomy()?
Aug
23
comment WordPress built-in method to extract array of term IDs?
Wow, very cool. More WP Goodness that's buried in there! Thanks for posting - I just learned something new! For the record, the solution I gave (and accepted) is the more idiomatic WP way of extracting a list of IDs from the taxonomy in question, however, if you need a more complex tax query, or sorting, then the method @tollmanz suggests is far more versatile. Nice one!
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